summaryrefslogtreecommitdiff
path: root/security/cops/Makefile
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1996-11-17 18:29:57 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1996-11-17 18:29:57 +0000
commit2edb6649ef465bda80d7410c7cc1a1180199cc2c (patch)
tree80a23b60ad340ff4cf3addb187d6f98ab10e24c0 /security/cops/Makefile
parentImport of a Win95-like X11 window manager. (diff)
Import of the COPS system security checker.
Reviewed by: jfitz@FreeBSD.ORG Submitted by: Oliver Oberdorf <oly@world.std.com>
Notes
Notes: svn path=/head/; revision=4552
Diffstat (limited to 'security/cops/Makefile')
-rw-r--r--security/cops/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/cops/Makefile b/security/cops/Makefile
new file mode 100644
index 000000000000..a0ade646c2c4
--- /dev/null
+++ b/security/cops/Makefile
@@ -0,0 +1,31 @@
+# new ports collection makefile for: cops
+# Version required: 1.04
+# Date created: 29 August 1996
+# Whom: oly
+
+PKGNAME= cops-1.04
+DISTNAME= cops_104
+CATEGORIES+= security
+
+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:
+ (cd work/${DISTNAME} ; ./reconfig)
+ (cd work/${DISTNAME} ; 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 work/${DISTNAME} ; make EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}")
+
+do-install:
+ (cd work ; rm -rf /usr/local/cops ; ${MKDIR} /usr/local/cops ; cp -R ${DISTNAME}/* ${PREFIX}/cops ; chmod -R go-rwx ${PREFIX}/cops ; rm -f ${PREFIX}/cops/*.old ; rm -rf ${PREFIX}/cops/src)
+
+.include <bsd.port.mk>