- fix plist with -DNOPORTDOCS

- modernize rc.d and pkg-message handling
- bump PORTREVISION

Prompted by:	QAT QA run
This commit is contained in:
Ion-Mihai Tetcu 2009-04-05 18:14:58 +00:00
parent d15fa87766
commit 2741bc6d91
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231655
3 changed files with 5 additions and 11 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= netustad
PORTVERSION= 0.3.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-mgmt security
MASTER_SITES= http://www.enderunix.org/netustad/
@ -17,7 +17,7 @@ COMMENT= A Web based admin tool that manages network services
#MAN8= netustad.8 netustadpasswd.8
#MAN5= netustad.conf.5
USE_RC_SUBR= yes
USE_RC_SUBR= ${PORTNAME}
USE_GETTEXT= yes
GNU_CONFIGURE= yes
OPTIONS= SSL "Use netUstad with SSL support" on
@ -41,16 +41,11 @@ CONFIGURE_ARGS+= --without-nls
.endif
.if defined(NOPORTDOCS)
#make portlint happy :)
post-patch:
${REINPLACE_CMD} "s/^install-data-am:.*/install-data-am:/" ${WRKSRC}/Makefile.in
.endif
SED_SCRIPT+= -e '{ s,%%PREFIX%%,${PREFIX},g; }'
post-build:
@${SED} ${SED_SCRIPT} ${FILESDIR}/netustad.sh >${WRKDIR}/netustad.sh
post-install:
@${CAT} ${PKGMESSAGE} | ${SED} ${SED_SCRIPT}
${INSTALL_SCRIPT} ${WRKDIR}/netustad.sh ${PREFIX}/etc/rc.d/
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -1,7 +1,6 @@
bin/netustadctl
bin/netustadpasswd
sbin/netustad
etc/rc.d/netustad.sh
@unexec if cmp -s %D/etc/netustad/netustad.conf %D/etc/netustad/netustad.conf-dist; then rm -f %D/etc/netustad/netustad.conf; fi
etc/netustad/netustad.conf-dist
@exec [ -f %B/netustad/netustad.conf ] || cp %B/%f %B/netustad/netustad.conf