openbsd-ports/security/cops/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

2002-10-28 12:35:01 -05:00
# $OpenBSD: Makefile,v 1.16 2002/10/28 17:35:01 naddy Exp $
1997-11-19 19:24:56 -05:00
COMMENT= "system secureness checker"
DISTNAME= cops.1.04
1997-11-19 19:24:56 -05:00
PKGNAME= cops-1.04
CATEGORIES= security
2002-10-28 12:35:01 -05:00
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
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
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-10-28 12:35:01 -05:00
MAKE_FILE= makefile
MAKE_FLAGS= EXECUTABLE="${EXECUTABLE}" C_SRC="${C_SRC}" \
CC="${CC}" CFLAGS="${CFLAGS}"
NO_REGRESS= Yes
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>