diff options
author | obrien <obrien@FreeBSD.org> | 1996-11-18 03:29:55 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1996-11-18 03:29:55 +0800 |
commit | ea9d9bbd2847c6438a1ec09247a09a17d145ae34 (patch) | |
tree | 237651cc20e241d057a55ea9bce0aba9ca6464f0 | |
parent | fd713c791d7edcb223a50ba784825628ff86687e (diff) | |
download | freebsd-ports-graphics-ea9d9bbd2847c6438a1ec09247a09a17d145ae34.tar.gz freebsd-ports-graphics-ea9d9bbd2847c6438a1ec09247a09a17d145ae34.tar.zst freebsd-ports-graphics-ea9d9bbd2847c6438a1ec09247a09a17d145ae34.zip |
Removed the hardcoded paths and used our variables instead (WRKSRC,PREFIX).
CATEGORIES+= --> CATEGORIES=
-rw-r--r-- | security/cops/Makefile | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/security/cops/Makefile b/security/cops/Makefile index a0ade646c2c..16ee4f2331c 100644 --- a/security/cops/Makefile +++ b/security/cops/Makefile @@ -2,11 +2,13 @@ # Version required: 1.04 # Date created: 29 August 1996 # Whom: oly +# +# $Id$ +# PKGNAME= cops-1.04 DISTNAME= cops_104 -CATEGORIES+= security - +CATEGORIES= security MASTER_SITES= ftp://ftp.cert.org/pub/tools/cops/1.04/ EXTRACT_SUFX= .tar.Z @@ -19,13 +21,18 @@ C_SRC = home.chk.c user.chk.c is_able.c is_something.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) + (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 work/${DISTNAME} ; make EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}") + (cd ${WRKSRC} ; 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) + (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) .include <bsd.port.mk> |