Add staging support

This commit is contained in:
Pawel Pekala 2014-05-02 16:21:42 +00:00
parent 5c1b1684de
commit ba5a55d38b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352823
2 changed files with 13 additions and 8 deletions

View file

@ -11,9 +11,6 @@ COMMENT= Hybrid2 IRC Services
LICENSE= GPLv2
OPTIONS_DEFINE= DAEMONTOOLS
DAEMONTOOLS_DESC= Daemontools support
USE_GITHUB= yes
GH_ACCOUNT= dkorunic
GH_PROJECT= hybserv2
@ -26,17 +23,23 @@ GNU_CONFIGURE= yes
USERS= ${PORTNAME}
GROUPS= ${USERS}
OPTIONS_DEFINE= DAEMONTOOLS
DAEMONTOOLS_DESC= Daemontools support
DAEMONTOOLS_RUN_DEPENDS= supervise:${PORTSDIR}/sysutils/daemontools
DAEMONTOOLS_CONFIGURE_ENABLE= daemontools
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -E -e '/(LN)/ s,BINDIR),DESTDIR)$$(&,2' \
-e '/(LN)/! s,(BIN|CONF|DOC|HELP|LOG)DIR),DESTDIR)$$(&,' \
${WRKSRC}/Makefile.in
post-install:
@${SED} -e "s#%PREFIX%#${PREFIX}#" ${FILESDIR}/hybserv.sh \
> ${WRKDIR}/hybserv.sh
@${INSTALL_SCRIPT} ${WRKDIR}/hybserv.sh ${PREFIX}/etc/rc.d
${CHOWN} -R hybserv:hybserv ${PREFIX}/hybserv
${CHMOD} 700 ${PREFIX}/hybserv
${INSTALL_SCRIPT} ${WRKDIR}/hybserv.sh ${STAGEDIR}${PREFIX}/etc/rc.d
${CHMOD} 700 ${STAGEDIR}${PREFIX}/hybserv
(cd ${STAGEDIR}${PREFIX}/hybserv && ${STRIP_CMD} hybserv mkpasswd \
encryptconf encryptdb)
.include <bsd.port.mk>

View file

@ -1,4 +1,6 @@
etc/rc.d/hybserv.sh
@owner hybserv
@group hybserv
hybserv/cleandb
hybserv/doc/COPYING
hybserv/doc/INSTALL