summaryrefslogtreecommitdiffstats
path: root/net-im/jabber
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-01-24 11:20:03 +0000
committergarga <garga@FreeBSD.org>2006-01-24 11:20:03 +0000
commite400c64183dc6a41c45ee2aa2d2236b62f2fd2b3 (patch)
treee0dfd2d6ff184716c7dc0c05a107a284ff3b3c3e /net-im/jabber
parentfe99954df9a5ee8f21819903e1e17ae787fe45a9 (diff)
downloadFreeBSD-ports-e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3.zip
FreeBSD-ports-e400c64183dc6a41c45ee2aa2d2236b62f2fd2b3.tar.gz
- Rewrite rc.d/jabber.sh script
- Fix rc.d installation [1] - Remove obsolete USE_REINPLACE Reported by: krismail [1]
Diffstat (limited to 'net-im/jabber')
-rw-r--r--net-im/jabber/Makefile6
-rw-r--r--net-im/jabber/files/jabberd.sh.in28
2 files changed, 16 insertions, 18 deletions
diff --git a/net-im/jabber/Makefile b/net-im/jabber/Makefile
index 203957a..ea6e12b 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 f606118..89e1ae9 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"
OpenPOWER on IntegriCloud