2000-08-24 19:45:49 -04:00
|
|
|
# ex:ts=8
|
1997-11-22 09:56:14 -05:00
|
|
|
# Ports collection makefile for: conserver
|
|
|
|
# Date created: 22 November 1997
|
|
|
|
# Whom: Peter Wemm <peter@netplex.com.au>
|
|
|
|
#
|
1999-08-25 01:28:01 -04:00
|
|
|
# $FreeBSD$
|
1997-11-22 09:56:14 -05:00
|
|
|
#
|
|
|
|
|
2000-04-08 19:24:42 -04:00
|
|
|
PORTNAME= conserver
|
2000-11-23 07:03:36 -05:00
|
|
|
PORTVERSION= 8.5
|
1997-11-22 09:56:14 -05:00
|
|
|
CATEGORIES= comms
|
2000-11-23 07:03:36 -05:00
|
|
|
MASTER_SITES= ftp://ftp.physics.purdue.edu/pub/pundits/
|
|
|
|
EXTRACT_SUFX= .tgz
|
1997-11-22 09:56:14 -05:00
|
|
|
|
2000-08-24 19:45:49 -04:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1997-11-22 09:56:14 -05:00
|
|
|
|
2000-11-23 07:03:36 -05:00
|
|
|
BUILD_DEPENDS= makeme:${PORTSDIR}/devel/msrc0 \
|
|
|
|
mkcmd:${PORTSDIR}/devel/mkcmd
|
|
|
|
|
1997-11-22 10:25:01 -05:00
|
|
|
MAN5= conserver.cf.5
|
2000-11-23 07:03:36 -05:00
|
|
|
MAN8= autologin.8 console.8 conserver.8
|
1997-11-22 09:56:14 -05:00
|
|
|
|
|
|
|
# Set this to where you want console(8) to connect to by default
|
1997-11-22 10:25:01 -05:00
|
|
|
# or use something like ``make DEFAULTHOST=myserver.mydomain.net''
|
|
|
|
DEFAULTHOST?= localhost
|
2000-11-23 07:03:36 -05:00
|
|
|
DEFAULTPORT?= 782
|
|
|
|
MAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}" DEFAULTPORT="${DEFAULTPORT}"
|
2001-03-10 19:41:39 -05:00
|
|
|
#PKGMESSAGE= ${WRKDIR}/MESSAGE
|
1997-11-22 09:56:14 -05:00
|
|
|
|
2000-11-23 07:03:36 -05:00
|
|
|
do-build:
|
|
|
|
${PERL} -pi.orig -e 's:/usr/local/lib:${PREFIX}/etc:g' \
|
|
|
|
${WRKSRC}/etc/conserver/cons.h
|
|
|
|
.for d in etc/conserver etc/console etc/autologin
|
|
|
|
(cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \
|
|
|
|
${MAKE_ARGS} ${ALL_TARGET})
|
|
|
|
.endfor
|
2001-02-12 16:11:09 -05:00
|
|
|
#@${SED} -e 's:/usr/local:${PREFIX}:g' \
|
|
|
|
# ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
1997-11-22 09:56:14 -05:00
|
|
|
|
2000-11-23 07:03:36 -05:00
|
|
|
do-install:
|
|
|
|
.for d in etc/conserver etc/console etc/autologin
|
|
|
|
@(cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \
|
|
|
|
${MAKE_ARGS} ${INSTALL_TARGET})
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/conserver.cf/conserver.cf \
|
|
|
|
${PREFIX}/etc/conserver.cf.eg
|
|
|
|
@${SED} -e 's:/usr/local/lib:${PREFIX}/etc:g' \
|
|
|
|
${WRKSRC}/lib/conserver.cf/conserver.cf.man \
|
|
|
|
> ${PREFIX}/man/man5/conserver.cf.5
|
|
|
|
@${SED} -e 's:/usr/local/etc:${PREFIX}/sbin:g' \
|
|
|
|
${WRKSRC}/etc/autologin/autologin.man \
|
|
|
|
> ${PREFIX}/man/man8/autologin.8
|
|
|
|
@${SED} -e 's:/usr/local/lib:${PREFIX}/etc:g' \
|
|
|
|
${WRKSRC}/etc/conserver/conserver.man \
|
|
|
|
> ${PREFIX}/man/man8/conserver.8
|
|
|
|
@${SED} -e 's:console\.itsd\.fedex\.com:${DEFAULTHOST}:g' \
|
|
|
|
${WRKSRC}/etc/console/console.man \
|
|
|
|
> ${PREFIX}/man/man8/console.8
|
|
|
|
@${CHMOD} 0444 ${PREFIX}/man/man5/conserver.cf.5 \
|
|
|
|
${PREFIX}/man/man8/autologin.8 \
|
|
|
|
${PREFIX}/man/man8/conserver.8 \
|
|
|
|
${PREFIX}/man/man8/console.8
|
2000-11-11 01:34:39 -05:00
|
|
|
.if !exists(${PREFIX}/etc/rc.d/conserver.sh)
|
|
|
|
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/conserver.sh startup file."
|
2000-11-23 07:03:36 -05:00
|
|
|
@${INSTALL_SCRIPT} -m 751 ${FILESDIR}/conserver.sh ${PREFIX}/etc/rc.d
|
2000-11-11 01:34:39 -05:00
|
|
|
.endif
|
2001-03-10 19:41:39 -05:00
|
|
|
@# ${CAT} ${PKGMESSAGE}
|
1997-11-22 10:37:11 -05:00
|
|
|
|
1997-11-22 09:56:14 -05:00
|
|
|
.include <bsd.port.mk>
|