diff options
author | vs <vs@FreeBSD.org> | 2004-07-15 18:46:00 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-07-15 18:46:00 +0800 |
commit | ffd7de606c8c56cad26ceac49e218bddd4257044 (patch) | |
tree | 423be9ea8468d83bc3459ad97f52425ea60785ca /net | |
parent | e4df56bd15685bbba1b84e316f6db8d947b7d992 (diff) | |
download | freebsd-ports-gnome-ffd7de606c8c56cad26ceac49e218bddd4257044.tar.gz freebsd-ports-gnome-ffd7de606c8c56cad26ceac49e218bddd4257044.tar.zst freebsd-ports-gnome-ffd7de606c8c56cad26ceac49e218bddd4257044.zip |
Fix hardcoded paths.
PR: ports/69082
Submitted by: Kirk Strauser (maintainer)
Diffstat (limited to 'net')
-rw-r--r-- | net/jabberd/Makefile | 8 | ||||
-rw-r--r-- | net/jabberd/files/jabberd.sh | 11 |
2 files changed, 12 insertions, 7 deletions
diff --git a/net/jabberd/Makefile b/net/jabberd/Makefile index 711cd9fb15f1..352e6ff810e1 100644 --- a/net/jabberd/Makefile +++ b/net/jabberd/Makefile @@ -28,6 +28,8 @@ CONFIGURE_ARGS= --localstatedir=/var \ CONFIGURE_ARGS+=--enable-fs +RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} + .if !defined(WITHOUT_DEBUG) CONFIGURE_ARGS+=--enable-debug .endif @@ -82,12 +84,16 @@ pre-everything:: @${ECHO} "WITH_PAM use PAM for authentication" @${ECHO} +post-patch: + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/jabberd.sh > ${WRKDIR}/jabberd.sh + pre-install: PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: ${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file." - ${INSTALL_SCRIPT} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh + ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh @${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd @${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750 @${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660 diff --git a/net/jabberd/files/jabberd.sh b/net/jabberd/files/jabberd.sh index 6cf62ccb1b3f..7dff2f2898d2 100644 --- a/net/jabberd/files/jabberd.sh +++ b/net/jabberd/files/jabberd.sh @@ -1,19 +1,18 @@ #!/bin/sh # Start or stop jabberd -# $FreeBSD: /tmp/pcvs/ports/net/jabberd/files/Attic/jabberd.sh,v 1.3 2004-07-13 02:38:15 edwin Exp $ +# $FreeBSD: /tmp/pcvs/ports/net/jabberd/files/Attic/jabberd.sh,v 1.4 2004-07-15 10:46:00 vs Exp $ # PROVIDE: jabberd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: FreeBSD shutdown # -prefix=/usr/local +prefix=%%PREFIX%% # Define these jabberd_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local -# /etc/rc.conf.d/gkrellmd # # DO NOT CHANGE THESE DEFAULT VALUES HERE # @@ -22,13 +21,13 @@ jabberd_enable="NO" jabberd_flags="" jabberd_user="jabber" -. /etc/rc.subr +. %%RC_SUBR%% name="jabberd" rcvar=`set_rcvar` -command="/usr/local/bin/jabberd" +command="${prefix}/bin/jabberd" command_args="&" -procname="/usr/local/bin/router" +procname="${prefix}/bin/router" load_rc_config $name |