aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comms/conserver/Makefile12
-rw-r--r--comms/conserver/pkg-plist1
2 files changed, 12 insertions, 1 deletions
diff --git a/comms/conserver/Makefile b/comms/conserver/Makefile
index 91cbdf1744e7..b26fefb05653 100644
--- a/comms/conserver/Makefile
+++ b/comms/conserver/Makefile
@@ -3,7 +3,7 @@
# Date created: 22 November 1997
# Whom: Peter Wemm <peter@netplex.com.au>
#
-# $Id: Makefile,v 1.1 1997/11/22 14:56:02 peter Exp $
+# $Id: Makefile,v 1.2 1997/11/22 15:25:01 peter Exp $
#
DISTNAME= conserver-5.21-Beta
@@ -31,4 +31,14 @@ MAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}"
post-extract:
cp ${FILESDIR}/Makefile ${WRKSRC}
+post-install:
+ @if [ ! -f ${PREFIX}/etc/rc.d/conserver.sh ]; then \
+ echo "Installing ${PREFIX}/etc/rc.d/conserver.sh startup file."; \
+ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/conserver.sh; \
+ echo "if [ -x /usr/local/sbin/conserver -a -f /usr/local/etc/conserver.cf ]; then" >> ${PREFIX}/etc/rc.d/conserver.sh; \
+ echo " /usr/local/sbin/conserver -d -n ; echo -n ' conserver'" >> ${PREFIX}/etc/rc.d/conserver.sh; \
+ echo "fi" >> ${PREFIX}/etc/rc.d/conserver.sh; \
+ chmod 751 ${PREFIX}/etc/rc.d/conserver.sh; \
+ fi
+
.include <bsd.port.mk>
diff --git a/comms/conserver/pkg-plist b/comms/conserver/pkg-plist
index 54ddc3910dec..d7d52f6ed184 100644
--- a/comms/conserver/pkg-plist
+++ b/comms/conserver/pkg-plist
@@ -1,4 +1,5 @@
etc/conserver.cf.eg
+etc/rc.d/conserver.sh
man/man5/conserver.cf.5.gz
man/man8/conserver.8.gz
man/man8/console.8.gz