opnsense-ports/security/tripwire-131/Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

46 lines
1.3 KiB
Makefile

# Created by: Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
# $FreeBSD$
PORTNAME= tripwire
PORTVERSION= 1.3.1
CATEGORIES= security
MASTER_SITES= ftp://ftp.cc.uoc.gr/system/security/tools/tripwire/ \
ftp://ftp.uni-potsdam.de/pub/unix/tools/
DISTNAME= Tripwire-${PORTVERSION}-1
PKGNAMESUFFIX= -131
MAINTAINER= cy@FreeBSD.org
COMMENT= File system security and verification program
NO_CDROM= Cannot be redistributed for more than the cost of duplication
NO_PACKAGE= requires local database to be built
# XXX should also work on other 32-bit architectures.
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= Unknown BYTEORDER
WRKSRC= ${WRKDIR}/tw_ASR_1.3.1_src
MAKE_JOBS_UNSAFE= yes
.include <bsd.port.pre.mk>
TDATADIR= ${STAGEDIR}/var/local/tcheck
MAKE_ARGS= BINDIR=${STAGEDIR}${PREFIX}/bin \
MANPREFIX=${STAGEDIR}${MANPREFIX}
NO_DB_BUILD= yes
TWCONFIG?= ${FILESDIR}/tw.conf.freebsd2
pre-configure:
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
@ ${CP} ${TWCONFIG} ${WRKSRC}/configs/tw.conf.freebsd2
post-install:
@ ${MKDIR} ${TDATADIR}
@ ${CP} ${TWCONFIG} ${TDATADIR}/tw.config.dist
.ifndef NO_DB_BUILD
# XXX For reference only
@ ${ECHO} Creating tripwire database
@ ${CP} -i ${TWCONFIG} ${TDATADIR}/tw.config
@ (cd /var/adm/tcheck; tripwire -initialize)
.endif
.include <bsd.port.post.mk>