summaryrefslogtreecommitdiff
path: root/security/xinetd/Makefile
blob: 5adc2711dd5e1a37e963c3af1b54dfa5ed31a268 (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
# New ports collection makefile for:	xinetd
# Version required:	2.2.1
# Date created:		28 June 1996
# Whom:			markm
#
# $Id: Makefile,v 1.5 1998/07/11 00:37:00 steve Exp $
#

DISTNAME=	xinetd-2.2.1
CATEGORIES=	security
MASTER_SITES=	ftp://coast.cs.purdue.edu/pub/tools/unix/xinetd/

MAINTAINER=	markm@FreeBSD.ORG

MAN1=		xinetd.1
MAN5=		xinetd.conf.5 xinetd.log.5

do-build:
	cd ${WRKSRC} ; ./compile-src -os freebsd2

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xinetd/xinetd ${PREFIX}/sbin
	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.man ${PREFIX}/man/man1/xinetd.1
	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.conf.man ${PREFIX}/man/man5/xinetd.conf.5
	${INSTALL_MAN} ${WRKSRC}/xinetd/xinetd.log.man ${PREFIX}/man/man5/xinetd.log.5

post-install:
	@if [ ! -f ${PREFIX}/etc/rc.d/xinetd.sh ]; then \
		${ECHO} "Install ${PREFIX}/etc/rc.d/xinetd.sh startup file."; \
		${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/xinetd.sh; \
		${ECHO} "[ -x ${PREFIX}/sbin/xinetd ] && ${PREFIX}/sbin/xinetd && echo -n ' xinetd'" >> ${PREFIX}/etc/rc.d/xinetd.sh; \
		chmod 751 ${PREFIX}/etc/rc.d/xinetd.sh; \
	fi

.include <bsd.port.mk>