1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/comms/conserver/Makefile
Peter Wemm f27dc55f8d Typo: s/PREFiX/PREFIX/ *blush*
Submitted by:	 phk
1999-09-10 09:25:31 +00:00

48 lines
1.5 KiB
Makefile

# Ports collection makefile for: conserver
# Version required: 5.21-Beta
# Date created: 22 November 1997
# Whom: Peter Wemm <peter@netplex.com.au>
#
# $FreeBSD$
#
DISTNAME= conserver-5.21-Beta
PKGNAME= conserver-5.21
CATEGORIES= comms
MASTER_SITES= ftp://ftp.uu.net/vendor/bitsko/config-mgmt/ \
ftp://unix.hensa.ac.uk/mirrors/uunet/vendor/bitsko/config-mgmt/
EXTRACT_SUFX= .shar.gz
MAINTAINER= peter@FreeBSD.org
EXTRACT_CMD= zcat
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= |sh
NO_WRKSUBDIR= yes
MAN5= conserver.cf.5
MAN8= console.8 conserver.8
# Set this to where you want console(8) to connect to by default
# or use something like ``make DEFAULTHOST=myserver.mydomain.net''
DEFAULTHOST?= localhost
MAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}"
# XXX we also have to work around ``new'' uudecode behavior, thanks guys!
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
if [ -f ${WRKSRC}/group.c ]; then \
${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; \
${CHMOD} 751 ${PREFIX}/etc/rc.d/conserver.sh; \
fi
.include <bsd.port.mk>