From 1f0160b41c3e99c883a03cd8b8bd967665150d5a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 24 Jan 2006 11:20:03 +0000 Subject: - Rewrite rc.d/jabber.sh script - Fix rc.d installation [1] - Remove obsolete USE_REINPLACE Reported by: krismail [1] --- net-im/jabber/Makefile | 6 +++--- net-im/jabber/files/jabberd.sh.in | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 18 deletions(-) (limited to 'net-im') 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 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" -- cgit v1.2.3