1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

OPTIONSify [1]

use new RC_SUBR style (old start file removed, no real history to preserve)
Bump PORTREVISION

PR:		122054 [1]
Submitted by:	Jase Thew <bazerka@beardz.net> [1]
This commit is contained in:
Oliver Lehmann 2008-03-25 16:43:13 +00:00
parent 91a33e79ae
commit b096773969
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209798
2 changed files with 19 additions and 9 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= oidentd
PORTVERSION= 2.0.8
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ojnk
@ -14,27 +15,36 @@ MASTER_SITE_SUBDIR= ojnk
MAINTAINER= oliver@FreeBSD.org
COMMENT= Ident server that supports user-defined ident strings
USE_RC_SUBR= yes
USE_RC_SUBR= oidentd
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
MAN5= oidentd.conf.5 oidentd_masq.conf.5
MAN8= oidentd.8
PLIST_FILES= sbin/oidentd etc/rc.d/oidentd.sh etc/oidentd.conf.sample \
PLIST_FILES= sbin/oidentd etc/oidentd.conf.sample \
etc/oidentd_masq.conf.sample
OPTIONS= IPV6 "Enable IPv6 support" on \
MASQ "Enable NAT/IP masq support" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.else
CATEGORIES+= ipv6
.endif
.if defined(WITHOUT_MASQ)
CONFIGURE_ARGS+=--disable-masq
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,g' ${WRKSRC}/src/oidentd.h
post-build:
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \
<${FILESDIR}/oidentd.sh >${WRKDIR}/oidentd.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/oidentd ${PREFIX}/sbin
${INSTALL_DATA} ${MAN5:S,^,${FILESDIR}/,:S,5$,sample,} ${PREFIX}/etc
${INSTALL_SCRIPT} ${WRKDIR}/oidentd.sh ${PREFIX}/etc/rc.d
.if !defined(NO_INSTALL_MANPAGES)
.for MANFILE in ${MAN5} ${MAN8}
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/doc/${MANFILE}
@ -43,4 +53,4 @@ do-install:
${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/doc/,} ${PREFIX}/man/man8
.endif
.include <bsd.port.mk>
.include <bsd.port.post.mk>