Changeset View
Changeset View
Standalone View
Standalone View
head/security/oidentd/Makefile
Show All 17 Lines | |||||
PLIST_FILES= sbin/oidentd etc/oidentd.conf.sample \ | PLIST_FILES= sbin/oidentd etc/oidentd.conf.sample \ | ||||
etc/oidentd_masq.conf.sample | etc/oidentd_masq.conf.sample | ||||
MANPAGES= oidentd.conf.5 oidentd_masq.conf.5 oidentd.8 | MANPAGES= oidentd.conf.5 oidentd_masq.conf.5 oidentd.8 | ||||
.for man in ${MANPAGES} | .for man in ${MANPAGES} | ||||
PLIST_FILES+= man/man${man:E}/${man}.gz | PLIST_FILES+= man/man${man:E}/${man}.gz | ||||
.endfor | .endfor | ||||
USE_CSTD= gnu89 | USE_CSTD= gnu89 | ||||
OPTIONS_DEFINE= IPV6 MASQ | OPTIONS_DEFINE= IPV6 | ||||
OPTIONS_DEFAULT= MASQ | |||||
MASQ_DESC= Enable NAT/IP masq support | |||||
CONFIGURE_ARGS=--disable-masq | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ! ${PORT_OPTIONS:MIPV6} | .if ! ${PORT_OPTIONS:MIPV6} | ||||
CONFIGURE_ARGS+=--disable-ipv6 | CONFIGURE_ARGS+=--disable-ipv6 | ||||
.else | .else | ||||
CATEGORIES+= ipv6 | CATEGORIES+= ipv6 | ||||
.endif | |||||
.if ! ${PORT_OPTIONS:MMASQ} || ${OSVERSION} >= 800000 | |||||
CONFIGURE_ARGS+=--disable-masq | |||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,g' ${WRKSRC}/src/oidentd.h | @${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,g' ${WRKSRC}/src/oidentd.h | ||||
@${REINPLACE_CMD} -e 's|\[5-9\]||g;s|\[4-9\]||g' ${WRKSRC}/configure | @${REINPLACE_CMD} -e 's|\[5-9\]||g;s|\[4-9\]||g' ${WRKSRC}/configure | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${STAGEDIR}${PREFIX}/sbin | ${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${STAGEDIR}${PREFIX}/sbin | ||||
${INSTALL_DATA} ${FILESDIR}/oidentd.conf.sample ${STAGEDIR}${PREFIX}/etc | ${INSTALL_DATA} ${FILESDIR}/oidentd.conf.sample ${STAGEDIR}${PREFIX}/etc | ||||
${INSTALL_DATA} ${FILESDIR}/oidentd_masq.conf.sample ${STAGEDIR}${PREFIX}/etc | ${INSTALL_DATA} ${FILESDIR}/oidentd_masq.conf.sample ${STAGEDIR}${PREFIX}/etc | ||||
.for MANFILE in ${MANPAGES} | .for MANFILE in ${MANPAGES} | ||||
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/doc/${MANFILE} | @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/doc/${MANFILE} | ||||
${INSTALL_MAN} ${WRKSRC}/doc/${MANFILE} ${STAGEDIR}${PREFIX}/man/man${MANFILE:E} | ${INSTALL_MAN} ${WRKSRC}/doc/${MANFILE} ${STAGEDIR}${PREFIX}/man/man${MANFILE:E} | ||||
.endfor | .endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |