summaryrefslogtreecommitdiff
path: root/security/cops/Makefile
blob: 9a7991330f507b31fac0eab46934e7e809ceae7d (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
# New ports collection makefile for:	cops
# Version required:			1.04
# Date created:				29 August 1996
# Whom:					oly
#
# $Id: Makefile,v 1.4 1998/06/04 04:11:55 vanilla Exp $
#

DISTNAME=	cops.1.04
PKGNAME=	cops-1.04
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.cert.org/pub/tools/cops/

MAINTAINER=	oly@world.std.com

WRKSRC=		${WRKDIR}/cops_104
EXECUTABLE=	home.chk user.chk is_writable crc crc_check \
		addto clearfiles filewriters members tilde is_able
C_SRC=		home.chk.c user.chk.c is_able.c is_something.c \
		addto.c clearfiles.c filewriters.c members.c tilde.c \
		crc.c crc_check.c

pre-build:
	(cd ${WRKSRC} ; ./reconfig)
	(cd ${WRKSRC} ; \
	${SED} 's,^SECURE=/usr/foo/bar,SECURE=${PREFIX}/cops,g' < cops | ${SED} '/^$$SECURE\/passwd\.chk.*/d' | ${SED} 's,SECURE_USERS="foo@bar\.edu",SECURE_USERS="root@localhost",g' | ${SED} 's/passwd\.chk pass.chk //g' > cops.out ; \
	${MV} cops.out cops ; ${CHMOD} u+x cops)

do-build:
	(cd ${WRKSRC} ; make EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}")

do-install:
	(cd ${WRKSRC} ; ${RM} -rf ${PREFIX}/cops ; ${MKDIR} ${PREFIX}/cops ; \
	${CP} -R * ${PREFIX}/cops ; \
	${CHMOD} -R go-rwx ${PREFIX}/cops ; \
	${RM} -rf ${PREFIX}/cops/*.old ${PREFIX}/cops/src)

.include <bsd.port.mk>