diff options
author | peter <peter@FreeBSD.org> | 1997-11-22 23:37:11 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-11-22 23:37:11 +0800 |
commit | b75b26e3b8813ce57f4640ea104ed0a9b542b57b (patch) | |
tree | ecc136373287b339e4b99fa8c6b531853bfc9de3 /comms/conserver | |
parent | 65d38b7d61dd1b6f0836f5113134b3c3fcd0b50d (diff) | |
download | freebsd-ports-gnome-b75b26e3b8813ce57f4640ea104ed0a9b542b57b.tar.gz freebsd-ports-gnome-b75b26e3b8813ce57f4640ea104ed0a9b542b57b.tar.zst freebsd-ports-gnome-b75b26e3b8813ce57f4640ea104ed0a9b542b57b.zip |
Create a /usr/local/etc/rc.d/conserver.sh script for starting up.
Diffstat (limited to 'comms/conserver')
-rw-r--r-- | comms/conserver/Makefile | 12 | ||||
-rw-r--r-- | comms/conserver/pkg-plist | 1 |
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 |