summaryrefslogtreecommitdiffstats
path: root/net-im/jabberd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/jabberd/Makefile')
-rw-r--r--net-im/jabberd/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile
index 654e27f..0701a64 100644
--- a/net-im/jabberd/Makefile
+++ b/net-im/jabberd/Makefile
@@ -61,4 +61,14 @@ pre-everything::
@${ECHO} "WITH_LDAP use LDAP for authentication"
@${ECHO}
+pre-install:
+ PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+post-install:
+ ${INSTALL_DATA} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh-dist
+ @if [ ! -f ${PREFIX}/etc/rc.d/jabberd.sh ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file."; \
+ ${INSTALL_SCRIPT} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh; \
+ fi
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud