freebsd-ports/security/tripwire-131/Makefile
Steve Price 0a9a4b5bd2 - Fix some of the compiler warnings (see patches/patch-warnings)
- Fix the Makefiles to obey the CC and CFLAGS settings
- Fix patches/patch-ab to be PREFIX/LOCALBASE safe
- Fix the post-install to not compress the gunzip and tripwire executables
  that go onto a floppy -- there is no support for the gzip-ed ELF binaries
  at all, and even for the older AOUT ones such support was optional
- Replaces the /kernel with `sysctl -n kern.bootfile` in the tw.conf as the
  tw.conf.freebsd2 is copied into the right place.
- Replace the use of mktemp(3) with tmpfile(3) (see patches/patch-mktemp).
  This also caused a removal of a few buffers (of size MAXPATHLEN+256) and
  quite a few strcpy and sprintf invocations.

PR:		18634
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
2000-05-29 02:27:45 +00:00

57 lines
1.7 KiB
Makefile

# New ports collection makefile for: tripwire
# Date created: 31 Mar 1997
# Whom: Joe Greco <jgreco@ns.sol.net>
#
# $FreeBSD$
#
PORTNAME= tripwire
PORTVERSION= 1.2
CATEGORIES= security net
MASTER_SITES= ftp://ftp.fu-berlin.de/unix/security/tripwire/
EXTRACT_SUFX= .tar.Z
MAINTAINER= jgreco@ns.sol.net
MAN5= tw.config.5
MAN8= siggen.8 tripwire.8
NO_CDROM= "cannot be redistributed for more than the cost of duplication"
NO_PACKAGE= "requires local database to be built"
RESTRICTED= "contains crypto class algorithms"
post-extract:
@ (cd ${WRKDIR}; tar xpf T1.2.tar)
post-patch:
@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
pre-configure:
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
@ ${SED} s%/kernel%`sysctl -bn kern.bootfile`% \
< ${FILESDIR}/tw.conf.freebsd2 \
> ${WRKSRC}/configs/tw.conf.freebsd2
post-install:
@ ${MKDIR} /var/adm/tcheck
@ ${CP} ${FILESDIR}/tw.conf.freebsd2 /var/adm/tcheck/tw.config
# Creating tripwire database
@ (cd /var/adm/tcheck; tripwire -initialize)
.if defined(TRIPWIRE_FLOPPY) && ${TRIPWIRE_FLOPPY} == YES
# preparing the floppy
@ disklabel -w -B /dev/rfd0c fd1440
@ newfs -u 0 -t 0 -i 196608 -m 0 -T minimum -o space /dev/rfd0c
mount /dev/fd0c /mnt
# transferring things to the floppy
@ ${CP} -p /var/adm/tcheck/tw.config /mnt/tw.config
@ ${GZIP_CMD} < /var/adm/tcheck/databases/tw.db_`hostname` \
> /mnt/tw.db_`hostname`.gz
@ ${CP} -p ${FILESDIR}/twcheck /usr/bin/gunzip \
${PREFIX}/bin/tripwire \
/mnt/
@ ${CHMOD} 555 /mnt/tripwire /mnt/gunzip /mnt/twcheck
@ umount /mnt
# Do not forget to remove and write-protect the floppy.
.endif
.include <bsd.port.mk>