2011-05-11 04:24:40 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2011/05/11 08:24:41 ajacoutot Exp $
|
2003-01-24 18:29:17 -05:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= logfile auditing tool
|
2003-01-24 18:29:17 -05:00
|
|
|
|
|
|
|
DISTNAME= logsentry-1.1.1
|
2011-05-11 04:24:40 -04:00
|
|
|
REVISION = 3
|
2003-01-24 18:29:17 -05:00
|
|
|
CATEGORIES= security
|
|
|
|
|
|
|
|
MAINTAINER= Srebrenko Sehic <haver@insecure.dk>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-02 16:18:37 -05:00
|
|
|
WANTLIB= c
|
2003-01-24 18:29:17 -05:00
|
|
|
|
2003-04-20 13:36:40 -04:00
|
|
|
MASTER_SITES= http://www.insecure.dk/distfiles/ \
|
|
|
|
ftp://sensimilia.eu.org/pub/software/sys/
|
2003-01-24 18:29:17 -05:00
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/logsentry/logcheck/}
|
|
|
|
|
|
|
|
DOC_DIR= ${PREFIX}/share/doc/logsentry
|
|
|
|
DOC_FILES= CREDITS INSTALL README README.how.to.interpret README.keywords
|
|
|
|
CFG_DIR= ${PREFIX}/share/examples/logsentry
|
|
|
|
CFG_FILES= logcheck.sh logcheck.hacking logcheck.ignore \
|
2003-04-20 13:36:40 -04:00
|
|
|
logcheck.violations logcheck.violations.ignore
|
|
|
|
|
|
|
|
SUBST_VARS+= DOC_DIR
|
2003-01-24 18:29:17 -05:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
${CC} ${CFLAGS} -o ${WRKSRC}/src/logtail ${WRKSRC}/src/logtail.c
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
|
|
|
.for i in ${DOC_FILES}
|
2003-04-20 13:36:40 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOC_DIR}
|
2003-01-24 18:29:17 -05:00
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${CFG_DIR}
|
|
|
|
.for i in ${CFG_FILES}
|
2003-04-20 13:36:40 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/systems/generic/${i} \
|
|
|
|
${CFG_DIR}/${i:S/logcheck/logsentry/}
|
2003-01-24 18:29:17 -05:00
|
|
|
.endfor
|
|
|
|
@perl -pi -e 's,%%LOCALBASE%%,${LOCALBASE},;' \
|
2003-04-20 13:36:40 -04:00
|
|
|
-e 's,%%LOGSENTRY_TMP%%,/var/tmp/logsentry,;' \
|
|
|
|
-e 's,%%SYSCONFDIR%%,${SYSCONFDIR},;' ${CFG_DIR}/logsentry.sh
|
2003-01-24 18:29:17 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|