aboutsummaryrefslogtreecommitdiff
path: root/comms/conserver/Makefile
blob: 028139848b63470a989b16a689e832e30fc0e84a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Ports collection makefile for:    conserver
# Version required:     5.21-Beta
# Date created:         22 November 1997
# Whom:                 Peter Wemm <peter@netplex.com.au>
#
# $Id: Makefile,v 1.4 1998/03/22 10:54:36 asami Exp $
#

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
NO_CONFIGURE=	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 /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>