diff options
author | garga <garga@FreeBSD.org> | 2006-01-24 19:20:03 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-01-24 19:20:03 +0800 |
commit | e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3 (patch) | |
tree | e0dfd2d6ff184716c7dc0c05a107a284ff3b3c3e | |
parent | fe99954df9a5ee8f21819903e1e17ae787fe45a9 (diff) | |
download | freebsd-ports-gnome-e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3.tar.gz freebsd-ports-gnome-e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3.tar.zst freebsd-ports-gnome-e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3.zip |
- Rewrite rc.d/jabber.sh script
- Fix rc.d installation [1]
- Remove obsolete USE_REINPLACE
Reported by: krismail [1]
-rw-r--r-- | net-im/jabber/Makefile | 6 | ||||
-rw-r--r-- | net-im/jabber/files/jabberd.sh.in | 28 |
2 files changed, 16 insertions, 18 deletions
diff --git a/net-im/jabber/Makefile b/net-im/jabber/Makefile index 203957a7f9e8..ea6e12b15296 100644 --- a/net-im/jabber/Makefile +++ b/net-im/jabber/Makefile @@ -24,7 +24,6 @@ USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes USE_OPENSSL= yes -USE_REINPLACE= yes CONFIGURE_ARGS+= --enable-ssl .if defined(WITH_IPV6) @@ -42,10 +41,11 @@ post-patch: ${ECHO} "${INSTALL_PROGRAM}" > ${WRKSRC}/.install_program-freebsd post-configure: - ${REINPLACE_CMD} -e "s#-I\. -I\.\. #-I\. -I\.\. -I${LOCALBASE}/include #" -e "s#-L/usr/lib#-L/usr/lib -L${LOCALBASE}/lib#" ${WRKSRC}/platform-settings + ${REINPLACE_CMD} -e "s#-I\. -I\.\. #-I\. -I\.\. -I${LOCALBASE}/include #" \ + -e "s#-L/usr/lib#-L/usr/lib -L${LOCALBASE}/lib#" \ + ${WRKSRC}/platform-settings post-install: PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - ${INSTALL_SCRIPT} ${WRKDIR}/jabberd.sh ${PREFIX}/etc/rc.d/ .include <bsd.port.mk> diff --git a/net-im/jabber/files/jabberd.sh.in b/net-im/jabber/files/jabberd.sh.in index f606118cbdac..89e1ae9e4b37 100644 --- a/net-im/jabber/files/jabberd.sh.in +++ b/net-im/jabber/files/jabberd.sh.in @@ -1,35 +1,33 @@ #!/bin/sh # - +# $FreeBSD$ +# # PROVIDE: jabber # REQUIRE: LOGIN # KEYWORD: shutdown - # # Add the following lines to /etc/rc.conf to enable rsyncd: # -#jabber_enable="YES" +# jabber_enable="YES" # . %%RC_SUBR%% -name=jabber +name="jabber" rcvar=`set_rcvar` -command=%%PREFIX%%/sbin/jabberd -required_files=%%PREFIX%%/etc/${name}.xml - -HOSTNAME=`/bin/hostname` +load_rc_config $name -# set defaults +required_files=%%PREFIX%%/etc/${name}.xml -jabber_enable=${jabber_enable:-"NO"} -jabber_pidfile=${jabber_pidfile:-"/var/spool/jabber/${name}.pid"} -jabber_flags=${jabber_flags:-"-B -h ${HOSTNAME} -c ${required_files}"} -jabber_user=${jabber_user:-"jabber"} -jabber_group=${jabber_group:-"jabber"} +: ${jabber_enable="NO"} +: ${jabber_pidfile="/var/spool/jabber/${name}.pid"} +: ${jabber_flags="-B -h `/bin/hostname` -c ${required_files}"} +: ${jabber_user="jabber"} +: ${jabber_group="jabber"} +command=%%PREFIX%%/sbin/jabberd +command_args="${jabber_flags}" pidfile=${jabber_pidfile} -load_rc_config ${name} run_rc_command "$1" |