aboutsummaryrefslogtreecommitdiffstats
path: root/security/cops/Makefile
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-07-16 01:35:29 +0800
committerwill <will@FreeBSD.org>2000-07-16 01:35:29 +0800
commit80bce4cba76a5c5ced02ca891ed4ff27913fb324 (patch)
tree0daeb3f6ff0232d7c490695809e2931a7786faf4 /security/cops/Makefile
parent793ac1b4ebd12bb6488ca0330946e812a8c86619 (diff)
downloadfreebsd-ports-gnome-80bce4cba76a5c5ced02ca891ed4ff27913fb324.tar.gz
freebsd-ports-gnome-80bce4cba76a5c5ced02ca891ed4ff27913fb324.tar.zst
freebsd-ports-gnome-80bce4cba76a5c5ced02ca891ed4ff27913fb324.zip
Fix MASTER_SITES; add WWW. Add MAINTAINER while I'm here.
PR: 19932 Submitted by: Ports Fury
Diffstat (limited to 'security/cops/Makefile')
-rw-r--r--security/cops/Makefile36
1 files changed, 22 insertions, 14 deletions
diff --git a/security/cops/Makefile b/security/cops/Makefile
index c79429a8d248..d4f7f27ba89b 100644
--- a/security/cops/Makefile
+++ b/security/cops/Makefile
@@ -8,10 +8,17 @@
PORTNAME= cops
PORTVERSION= 1.04
CATEGORIES= security
-MASTER_SITES= ftp://coast.cs.purdue.edu/pub/tools/unix/cops/
-DISTNAME= ${PORTNAME}.${PORTVERSION}
+MASTER_SITES= http://www.fish.com/cops/
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}+
+
+MAINTAINER= ports@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/.//g}+
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= reconfig
+MAKEFILE= makefile
+MAKE_ARGS= EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}"
-WRKSRC= ${WRKDIR}/cops_104
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 \
@@ -19,18 +26,19 @@ C_SRC= home.chk.c user.chk.c is_able.c is_something.c \
crc.c crc_check.c
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:
- (cd ${WRKSRC} ; make EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}")
+ ${SED} \
+ -e 's,^SECURE=/usr/foo/bar,SECURE=${PREFIX}/cops,g' \
+ -e '/^$$SECURE\/passwd\.chk.*/d' \
+ -e 's,SECURE_USERS="foo@bar\.edu",SECURE_USERS="root@localhost",g' \
+ -e 's/passwd\.chk pass.chk //g' \
+ ${WRKSRC}/cops > ${WRKSRC}/cops.out
+ ${MV} ${WRKSRC}/cops.out ${WRKSRC}/cops
do-install:
- (cd ${WRKSRC} ; ${RM} -rf ${PREFIX}/cops ; ${MKDIR} ${PREFIX}/cops ; \
- ${CP} -R * ${PREFIX}/cops ; \
- ${CHMOD} -R go-rwx ${PREFIX}/cops ; \
- ${RM} -rf ${PREFIX}/cops/*.old ${PREFIX}/cops/src)
+ ${MKDIR} ${PREFIX}/cops
+ ${TAR} -C ${WRKSRC} --exclude "*.old" -cf - . | \
+ ${TAR} -C ${PREFIX}/cops --unlink -xf -
+ ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/cops
+ ${CHMOD} -R go-rwx ${PREFIX}/cops
.include <bsd.port.mk>