1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

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)
This commit is contained in:
Volker Stolz 2005-04-08 11:48:38 +00:00
parent dde797c0e9
commit 495ccf41a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132750
4 changed files with 12 additions and 8 deletions

View File

@ -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>

View File

@ -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`

View File

@ -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>

View File

@ -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`