Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 46 lines (34 sloc) 1.396 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# $NetBSD: Makefile,v 1.33 2012/02/16 19:43:14 hans Exp $
#

DISTNAME= tripwire-1.2
PKGREVISION= 3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_BACKUP}

PKG_DESTDIR_SUPPORT= user-destdir

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cerias.purdue.edu/about/history/coast/coast-library.html
COMMENT= File and directory integrity checker

USE_TOOLS+= pax
MAKE_JOBS_SAFE= NO

ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-* SunOS-*-*

PKG_SYSCONFSUBDIR= tripwire
OWN_DIRS= ${PKG_SYSCONFDIR}/databases
EGDIR= ${PREFIX}/share/examples/tripwire
CONF_FILES= ${EGDIR}/tripwire.conf ${PKG_SYSCONFDIR}/tripwire.conf
MAKE_ENV+= INSTALL=${TOOLS_PATH.install:Q}

AUTO_MKDIRS= yes

post-extract:
cd ${WRKDIR} && pax -O -rf T1.2.tar
${CP} ${FILESDIR}/conf-${LOWER_OPSYS}.h ${WRKSRC}/configs

pre-configure:
${MV} ${WRKSRC}/include/config.h ${WRKSRC}/include/config.h.in
${SED} -e 's|@localbase@|${LOCALBASE}|g' \
-e 's|@LOWER_OPSYS@|${LOWER_OPSYS}|g' \
-e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
${WRKSRC}/include/config.h.in > ${WRKSRC}/include/config.h

PRE_ROOT_CMD= ${CHMOD} -R go+rwx ${WRKSRC}

post-install:
${INSTALL_DATA} ${WRKSRC}/docs/designdoc.ps ${DESTDIR}${PREFIX}/share/doc/tripwire
${SED} -e 's|@localbase@|${LOCALBASE}|g' -e 's|@x11base@|${X11BASE}|g' \
${FILESDIR}/tw.conf.${LOWER_OPSYS} > ${DESTDIR}${EGDIR}/tripwire.conf

.include "../../mk/bsd.pkg.mk"
Something went wrong with that request. Please try again.