1996-11-17 18:29:57 +00:00
# new ports collection makefile for: cops
# Version required: 1.04
# Date created: 29 August 1996
# Whom: oly
1996-11-17 19:29:55 +00:00
#
1996-11-18 07:31:46 +00:00
# $Id: Makefile,v 1.2 1996/11/17 19:29:55 obrien Exp $
1996-11-17 19:29:55 +00:00
#
1996-11-17 18:29:57 +00:00
DISTNAME = cops_104
1996-11-18 07:31:46 +00:00
PKGNAME = cops-1.04
1996-11-17 19:29:55 +00:00
CATEGORIES = security
1996-11-17 18:29:57 +00:00
MASTER_SITES = ftp://ftp.cert.org/pub/tools/cops/1.04/
EXTRACT_SUFX = .tar.Z
MAINTAINER = oly@world.std.com
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 :
1996-11-17 19:29:55 +00:00
( 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)
1996-11-17 18:29:57 +00:00
do-build :
1996-11-17 19:29:55 +00:00
( cd ${ WRKSRC } ; make EXECUTABLE = " ${ EXECUTABLE } " C_SRC = " ${ C_SRC } " )
1996-11-17 18:29:57 +00:00
do-install :
1996-11-17 19:29:55 +00:00
( cd ${ WRKDIR } ; rm -rf ${ PREFIX } /cops ; ${ MKDIR } ${ PREFIX } /cops ; \
${ CP } -R ${ DISTNAME } /* ${ PREFIX } /cops ; \
chmod -R go-rwx ${ PREFIX } /cops ; \
rm -rf ${ PREFIX } /cops/*.old ${ PREFIX } /cops/src)
1996-11-17 18:29:57 +00:00
. i n c l u d e < b s d . p o r t . m k >