summaryrefslogtreecommitdiffstats
path: root/net-im/jabber
diff options
context:
space:
mode:
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