diff options
author | vs <vs@FreeBSD.org> | 2005-04-08 19:48:38 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-04-08 19:48:38 +0800 |
commit | b5097847e3b2b4b25620deb555ac2287d7519305 (patch) | |
tree | 605c5fa102cf5cc07e8ef7d85f0a045d9dc8c59c /net | |
parent | 4f940df4b14be599e33e5e44474d5ca4dc752e4b (diff) | |
download | freebsd-ports-gnome-b5097847e3b2b4b25620deb555ac2287d7519305.tar.gz freebsd-ports-gnome-b5097847e3b2b4b25620deb555ac2287d7519305.tar.zst freebsd-ports-gnome-b5097847e3b2b4b25620deb555ac2287d7519305.zip |
Use SUB_{FILES,LIST} to make rc.subr-script PREFIX-aware
(Somebody might also want to move the pid-file to /var/run in a future update)
Diffstat (limited to 'net')
-rw-r--r-- | net/jabber/Makefile | 4 | ||||
-rw-r--r-- | net/jabber/files/jabberd.sh.in (renamed from net/jabber/files/jabberd.sh) | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/net/jabber/Makefile b/net/jabber/Makefile index 16dfbd722d0b..65a96b3c098f 100644 --- a/net/jabber/Makefile +++ b/net/jabber/Makefile @@ -20,6 +20,8 @@ LIB_DEPENDS= pth.20:${PORTSDIR}/devel/pth \ expat.5:${PORTSDIR}/textproc/expat2 USE_RC_SUBR= yes +SUB_FILES= jabberd.sh +SUB_LIST= RC_SUBR=${RC_SUBR} USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes @@ -46,6 +48,6 @@ post-configure: post-install: PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - ${INSTALL_SCRIPT} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/ + ${INSTALL_SCRIPT} ${WRKDIR}/jabberd.sh ${PREFIX}/etc/rc.d/ .include <bsd.port.mk> diff --git a/net/jabber/files/jabberd.sh b/net/jabber/files/jabberd.sh.in index d0facc8f5257..f606118cbdac 100644 --- a/net/jabber/files/jabberd.sh +++ b/net/jabber/files/jabberd.sh.in @@ -11,13 +11,13 @@ #jabber_enable="YES" # -. /usr/local/etc/rc.subr +. %%RC_SUBR%% name=jabber rcvar=`set_rcvar` -command=/usr/local/sbin/jabberd -required_files=/usr/local/etc/${name}.xml +command=%%PREFIX%%/sbin/jabberd +required_files=%%PREFIX%%/etc/${name}.xml HOSTNAME=`/bin/hostname` |