mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
Create a /usr/local/etc/rc.d/conserver.sh script for starting up.
This commit is contained in:
parent
05de5b58c5
commit
16961431cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=8761
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user