mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
cp -> ${CP}
mv -> ${MV} echo -> ${ECHO} PR: 13181 Submitted by: Oleg V. Volkov <rover@fly.lglobus.ru>
This commit is contained in:
parent
53ccfcb2eb
commit
8feeccf62b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20795
@ -3,7 +3,7 @@
|
||||
# Date created: 22 November 1997
|
||||
# Whom: Peter Wemm <peter@netplex.com.au>
|
||||
#
|
||||
# $Id: Makefile,v 1.6 1998/06/27 05:18:47 asami Exp $
|
||||
# $Id: Makefile,v 1.7 1999/06/05 19:49:48 mharo Exp $
|
||||
#
|
||||
|
||||
DISTNAME= conserver-5.21-Beta
|
||||
@ -29,18 +29,18 @@ MAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}"
|
||||
|
||||
# XXX we also have to work around ``new'' uudecode behavior, thanks guys!
|
||||
post-extract:
|
||||
cp ${FILESDIR}/Makefile ${WRKSRC}
|
||||
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
||||
if [ -f ${WRKSRC}/group.c ]; then \
|
||||
mv ${WRKSRC}/group.c ${WRKSRC}/conserver/group.c ; \
|
||||
${MV} ${WRKSRC}/group.c ${WRKSRC}/conserver/group.c ; \
|
||||
fi
|
||||
|
||||
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 ${PREFIX}/sbin/conserver -a -f ${PREFiX}/etc/conserver.cf ]; then" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
echo " ${PREFIX}/sbin/conserver -d -n ; echo -n ' conserver'" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
echo "fi" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} "Installing ${PREFIX}/etc/rc.d/conserver.sh startup file."; \
|
||||
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} "if [ -x ${PREFIX}/sbin/conserver -a -f ${PREFiX}/etc/conserver.cf ]; then" >> ${PREFIX}/etc/rc.d/conserver.sh; \
|
||||
${ECHO} " ${PREFIX}/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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user