aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabberd/Makefile
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2003-12-31 00:18:46 +0800
committerdemon <demon@FreeBSD.org>2003-12-31 00:18:46 +0800
commit8b143735231388d06bf78f04e77e3b2f5c41035e (patch)
treea3d40a4ccf1795a7d800b5b831b66d196c85dc19 /net-im/jabberd/Makefile
parentd21660280505d358581c278c4d9a604a658ea845 (diff)
downloadfreebsd-ports-graphics-8b143735231388d06bf78f04e77e3b2f5c41035e.tar.gz
freebsd-ports-graphics-8b143735231388d06bf78f04e77e3b2f5c41035e.tar.zst
freebsd-ports-graphics-8b143735231388d06bf78f04e77e3b2f5c41035e.zip
Install startup script jabberd.sh.
Create user/group for jabberd on install.
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 654e27fd84a..0701a64d3d0 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>