Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / tripwire / Makefile
blobfbbe2f859fd561fb725d84c4152220bec356731a
1 # $NetBSD: Makefile,v 1.33 2012/02/16 19:43:14 hans Exp $
4 DISTNAME= tripwire-1.2
5 PKGREVISION= 3
6 CATEGORIES= security
7 MASTER_SITES= ${MASTER_SITE_BACKUP}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://www.cerias.purdue.edu/about/history/coast/coast-library.html
11 COMMENT= File and directory integrity checker
13 USE_TOOLS+= pax
14 MAKE_JOBS_SAFE= NO
16 ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-* SunOS-*-*
18 PKG_SYSCONFSUBDIR= tripwire
19 OWN_DIRS= ${PKG_SYSCONFDIR}/databases
20 EGDIR= ${PREFIX}/share/examples/tripwire
21 CONF_FILES= ${EGDIR}/tripwire.conf ${PKG_SYSCONFDIR}/tripwire.conf
22 MAKE_ENV+= INSTALL=${TOOLS_PATH.install:Q}
24 AUTO_MKDIRS= yes
26 post-extract:
27 cd ${WRKDIR} && pax -O -rf T1.2.tar
28 ${CP} ${FILESDIR}/conf-${LOWER_OPSYS}.h ${WRKSRC}/configs
30 pre-configure:
31 ${MV} ${WRKSRC}/include/config.h ${WRKSRC}/include/config.h.in
32 ${SED} -e 's|@localbase@|${LOCALBASE}|g' \
33 -e 's|@LOWER_OPSYS@|${LOWER_OPSYS}|g' \
34 -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
35 ${WRKSRC}/include/config.h.in > ${WRKSRC}/include/config.h
37 PRE_ROOT_CMD= ${CHMOD} -R go+rwx ${WRKSRC}
39 post-install:
40 ${INSTALL_DATA} ${WRKSRC}/docs/designdoc.ps ${DESTDIR}${PREFIX}/share/doc/tripwire
41 ${SED} -e 's|@localbase@|${LOCALBASE}|g' -e 's|@x11base@|${X11BASE}|g' \
42 ${FILESDIR}/tw.conf.${LOWER_OPSYS} > ${DESTDIR}${EGDIR}/tripwire.conf
44 .include "../../mk/bsd.pkg.mk"