2001-05-20 18:48:54 -04:00
# $OpenBSD: Makefile,v 1.12 2001/05/20 22:48:54 pvalchev Exp $
1999-04-06 15:44:57 -04:00
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
1997-11-19 19:24:56 -05:00
2001-05-05 23:45:31 -04:00
COMMENT = "system secureness checker"
2000-04-30 05:06:40 -04:00
DISTNAME = cops.1.04
1997-11-19 19:24:56 -05:00
PKGNAME = cops-1.04
CATEGORIES = security
2001-05-05 23:45:31 -04:00
NEED_VERSION = 1.402
2001-01-05 11:35:58 -05:00
MASTER_SITES = ftp://ftp.cerias.purdue.edu/pub/tools/unix/scanners/cops/
1998-04-12 17:40:56 -04:00
2001-01-05 11:35:58 -05:00
MAINTAINER = ports@openbsd.org
1997-11-19 19:24:56 -05:00
2001-01-05 11:35:58 -05:00
PERMIT_PACKAGE_CDROM = No
2000-03-04 03:39:37 -05:00
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
1997-11-19 19:24:56 -05:00
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
2000-04-30 05:06:40 -04:00
WRKDIST = ${ WRKDIR } /cops_104
1997-11-19 19:24:56 -05:00
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 :
2001-05-20 18:48:54 -04:00
( cd ${ WRKSRC } ; ${ MAKE_PROGRAM } EXECUTABLE = " ${ EXECUTABLE } " C_SRC = " ${ C_SRC } " )
1997-11-19 19:24:56 -05:00
do-install :
2000-02-10 20:09:59 -05:00
( cd ${ WRKDIR } ; rm -rf ${ PREFIX } /cops ; mkdir -p ${ PREFIX } /cops ; \
2000-04-30 05:06:40 -04:00
cp -R ${ WRKSRC } /* ${ PREFIX } /cops ; \
1997-11-19 19:24:56 -05:00
chmod -R go-rwx ${ PREFIX } /cops ; \
rm -rf ${ PREFIX } /cops/*.old ${ PREFIX } /cops/src)
. i n c l u d e < b s d . p o r t . m k >