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:
parent
dde797c0e9
commit
495ccf41a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132750
@ -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>
|
||||
|
@ -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`
|
||||
|
@ -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>
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user