1998-06-04 04:12:03 +00:00
|
|
|
# New ports collection makefile for: cops
|
1996-11-17 18:29:57 +00:00
|
|
|
# Date created: 29 August 1996
|
|
|
|
# Whom: oly
|
1996-11-17 19:29:55 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1996-11-17 19:29:55 +00:00
|
|
|
#
|
1996-11-17 18:29:57 +00:00
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= cops
|
|
|
|
PORTVERSION= 1.04
|
1996-11-17 19:29:55 +00:00
|
|
|
CATEGORIES= security
|
2000-07-15 17:35:29 +00:00
|
|
|
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}"
|
1996-11-17 18:29:57 +00:00
|
|
|
|
1998-06-04 04:12:03 +00: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
|
1996-11-17 18:29:57 +00:00
|
|
|
|
|
|
|
pre-build:
|
2000-07-15 17:35:29 +00:00
|
|
|
${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
|
1996-11-17 18:29:57 +00:00
|
|
|
|
|
|
|
do-install:
|
2000-07-15 17:35:29 +00:00
|
|
|
${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
|
1996-11-17 18:29:57 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|