summaryrefslogtreecommitdiff
path: root/security/cops/Makefile
blob: d4f7f27ba89ba0d1c963f794bbd5d6606a01f511 (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
# New ports collection makefile for:	cops
# Date created:				29 August 1996
# Whom:					oly
#
# $FreeBSD$
#

PORTNAME=	cops
PORTVERSION=	1.04
CATEGORIES=	security
MASTER_SITES=	http://www.fish.com/cops/
DISTNAME=	${PORTNAME}${PORTVERSION:S/.//g}+

MAINTAINER=	ports@FreeBSD.org

WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION:S/.//g}+
HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	reconfig
MAKEFILE=	makefile
MAKE_ARGS=	EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}"

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:
	${SED} \
	    -e 's,^SECURE=/usr/foo/bar,SECURE=${PREFIX}/cops,g' \
	    -e '/^$$SECURE\/passwd\.chk.*/d' \
	    -e 's,SECURE_USERS="foo@bar\.edu",SECURE_USERS="root@localhost",g' \
	    -e 's/passwd\.chk pass.chk //g' \
		${WRKSRC}/cops > ${WRKSRC}/cops.out
	${MV} ${WRKSRC}/cops.out ${WRKSRC}/cops

do-install:
	${MKDIR} ${PREFIX}/cops
	${TAR} -C ${WRKSRC} --exclude "*.old" -cf - . | \
		${TAR} -C ${PREFIX}/cops --unlink -xf -
	${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/cops
	${CHMOD} -R go-rwx ${PREFIX}/cops

.include <bsd.port.mk>