Removed the hardcoded paths and used our variables instead (WRKSRC,PREFIX).
CATEGORIES+= --> CATEGORIES=
This commit is contained in:
parent
2edb6649ef
commit
2d0b362f21
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4553
1 changed files with 13 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue