From 172444444e7175544cfbf610963c21411fba7eb9 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Fri, 25 Nov 2005 02:31:06 +0000 Subject: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem This port contains a script for generating portaudit reports for jails running on a FreeBSD system. Jailaudit runs in the Host-system and uses portaudit to create reports for every jail currently running. It can also be used to send specific report-mails to the owner of a jail by running it as a cronjob. /etc/crontab example: 0 4 * * * * root /usr/local/bin/jailaudit mail admin@foo.bar "foo.example.com bar.example.com" Sends reports-mails of the jails with the hostnames foo.example.com and bar.example.com to the mailaddr. admin@example.com. WWW: http://outpost.h3q.org/software/jailaudit/ PR: ports/87581 Submitted by: Philipp Wuensche --- ports-mgmt/jailaudit/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ports-mgmt/jailaudit/Makefile (limited to 'ports-mgmt/jailaudit/Makefile') diff --git a/ports-mgmt/jailaudit/Makefile b/ports-mgmt/jailaudit/Makefile new file mode 100644 index 000000000000..fe863b7c342f --- /dev/null +++ b/ports-mgmt/jailaudit/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: jailaudit +# Date created: 21 October 2005 +# Whom: cryx +# +# $FreeBSD$ +# + +PORTNAME= jailaudit +PORTVERSION= 1.1 +CATEGORIES= security +MASTER_SITES= http://outpost.h3q.com/software/jailaudit/ + +MAINTAINER= cryx-ports@h3q.com +COMMENT= Script to generate portaudit reports for jails + +RUN_DEPENDS= ${LOCALBASE}/sbin/portaudit:${PORTSDIR}/security/portaudit + +USE_BZIP2= yes + +PERIODICDIR?= ${PREFIX}/etc/periodic +REPORTDIR?= ${PREFIX}/jailaudit/reports +TMPDIR?= ${PREFIX}/jailaudit/tmp + +PLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" \ + REPORTDIR="${REPORTDIR:S,^${PREFIX}/,,}" \ + TMPDIR="${TMPDIR:S,^${PREFIX}/,,}" + +.include + +.if ( ${OSVERSION} < 501000 ) +IGNORE= needs the jls utility which was added in FreeBSD 5.1 +.endif + +.include -- cgit v1.2.3