2002-05-07 08:53:39 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2002/05/07 12:53:39 espie Exp $
|
1999-04-06 15:44:57 -04:00
|
|
|
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
1997-11-19 19:24:56 -05:00
|
|
|
|
2001-05-05 23:45:31 -04:00
|
|
|
COMMENT= "system secureness checker"
|
|
|
|
|
2000-04-30 05:06:40 -04:00
|
|
|
DISTNAME= cops.1.04
|
1997-11-19 19:24:56 -05:00
|
|
|
PKGNAME= cops-1.04
|
|
|
|
CATEGORIES= security
|
2002-03-21 16:25:50 -05:00
|
|
|
NEED_VERSION= 1.515
|
2001-01-05 11:35:58 -05:00
|
|
|
MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/unix/scanners/cops/
|
1998-04-12 17:40:56 -04:00
|
|
|
|
2001-01-05 11:35:58 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= No
|
2000-03-04 03:39:37 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
1997-11-19 19:24:56 -05: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
|
|
|
|
|
2000-04-30 05:06:40 -04:00
|
|
|
WRKDIST= ${WRKDIR}/cops_104
|
|
|
|
|
1997-11-19 19:24:56 -05:00
|
|
|
pre-build:
|
2002-05-07 08:53:39 -04:00
|
|
|
cd ${WRKSRC} && ./reconfig
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
sed -e 's,^SECURE=.*,SECURE=${PREFIX}/cops,g' -e '/^$$SECURE\/passwd\.chk.*/d' -e 's,^SECURE_USERS=.*,SECURE_USERS="root@localhost",g' -e 's/passwd\.chk pass.chk //g' cops > cops.out && \
|
|
|
|
mv cops.out cops && chmod u+x cops
|
1997-11-19 19:24:56 -05:00
|
|
|
|
2002-05-07 08:53:39 -04:00
|
|
|
MAKE_FILE=makefile
|
|
|
|
MAKE_FLAGS=EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}" CFLAGS="${CFLAGS}"
|
1997-11-19 19:24:56 -05:00
|
|
|
|
|
|
|
do-install:
|
2002-05-07 08:53:39 -04:00
|
|
|
rm -rf ${PREFIX}/cops
|
|
|
|
mkdir -p ${PREFIX}/cops
|
|
|
|
cp -R ${WRKSRC}/* ${PREFIX}/cops
|
|
|
|
chmod -R go-rwx ${PREFIX}/cops
|
|
|
|
rm -rf ${PREFIX}/cops/*.{old,orig} ${PREFIX}/cops/src \
|
|
|
|
${PREFIX}/cops/docs/{*.ms,makefile*}
|
|
|
|
# move man pages to correct place
|
|
|
|
for i in ${PREFIX}/cops/docs/*.1; do \
|
|
|
|
j=`basename $$i .1`; \
|
|
|
|
${INSTALL_MAN} $$i ${PREFIX}/man/man1/$$j.0; \
|
|
|
|
rm -f ${PREFIX}/cops/docs/$$j $$i; \
|
|
|
|
done
|
1997-11-19 19:24:56 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|