- Switch to @sample, fix stage-qa

- Use options helpers

PR:		203282
Submitted by:	amdmi3
Approved by:	crees (maintainer)
This commit is contained in:
Dmitry Marakasov 2015-09-23 17:02:59 +00:00
parent 4d5d5a9fd2
commit 86677a76fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397626
2 changed files with 4 additions and 8 deletions

View file

@ -17,18 +17,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
OPTIONS_DEFINE= TCPWRAPPERS DOCS
TCPWRAPPERS_DESC= libwrap support
TCPWRAPPERS_CONFIGURE_ON= --with-libwrap
USE_RC_SUBR= ${PORTNAME}
SUB_FILES+= pkg-message
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-client
USE_OPENSSL= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTCPWRAPPERS}
CONFIGURE_ARGS+=--with-libwrap
.endif
post-patch:
@${REINPLACE_CMD} -e 's^#include <utmp.h>^/*utmp.h not for FreeBSD*/^' \
${WRKSRC}/server/main.c \
@ -40,6 +36,7 @@ post-patch:
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MV} ${STAGEDIR}${ETCDIR}/tunnel.conf.default ${STAGEDIR}${ETCDIR}/tunnel.conf.sample
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/server.README
${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI ${STAGEDIR}${DOCSDIR}/server.LISEZ-MOI
${INSTALL_DATA} ${WRKSRC}/server/users.new ${STAGEDIR}${ETCDIR}/users.sample

View file

@ -1,6 +1,5 @@
@unexec if cmp -s %D/%%ETCDIR%%/tunnel.conf %D/%%ETCDIR%%/tunnel.conf.default; then rm -f %D/%%ETCDIR%%/tunnel.conf; fi
@unexec if cmp -s %D/%%ETCDIR%%/users %D/%%ETCDIR%%/users.sample; then rm -f %D/%%ETCDIR%%/users; fi
%%ETCDIR%%/tunnel.conf.default
@sample %%ETCDIR%%/tunnel.conf.sample
%%ETCDIR%%/users.sample
libexec/pppserver
sbin/pppwho