From ba5a55d38b483b2eaf44931ddd08dc09d7fabd4f Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Fri, 2 May 2014 16:21:42 +0000 Subject: [PATCH] Add staging support --- irc/hybserv/Makefile | 19 +++++++++++-------- irc/hybserv/pkg-plist | 2 ++ 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/irc/hybserv/Makefile b/irc/hybserv/Makefile index 8ca3e7bdaf35..07564199bc06 100644 --- a/irc/hybserv/Makefile +++ b/irc/hybserv/Makefile @@ -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 +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 diff --git a/irc/hybserv/pkg-plist b/irc/hybserv/pkg-plist index 145ddd78e800..947512535cc0 100644 --- a/irc/hybserv/pkg-plist +++ b/irc/hybserv/pkg-plist @@ -1,4 +1,6 @@ etc/rc.d/hybserv.sh +@owner hybserv +@group hybserv hybserv/cleandb hybserv/doc/COPYING hybserv/doc/INSTALL