From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 17 19:40:23 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE75B16A41F for ; Mon, 17 Oct 2005 19:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAC2343D69 for ; Mon, 17 Oct 2005 19:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9HJeFvS005446 for ; Mon, 17 Oct 2005 19:40:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9HJeFDJ005445; Mon, 17 Oct 2005 19:40:15 GMT (envelope-from gnats) Resent-Date: Mon, 17 Oct 2005 19:40:15 GMT Resent-Message-Id: <200510171940.j9HJeFDJ005445@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Philipp Wuensche Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3295416A41F for ; Mon, 17 Oct 2005 19:30:48 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD65B43D49 for ; Mon, 17 Oct 2005 19:30:47 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9HJUltq086751 for ; Mon, 17 Oct 2005 19:30:47 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9HJUlQZ086750; Mon, 17 Oct 2005 19:30:47 GMT (envelope-from nobody) Message-Id: <200510171930.j9HJUlQZ086750@www.freebsd.org> Date: Mon, 17 Oct 2005 19:30:47 GMT From: Philipp Wuensche To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/87581: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 19:40:24 -0000 >Number: 87581 >Category: ports >Synopsis: [NEW PORT] security/jailaudit: Generate portaudit reports for jails from the hostsystem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 17 19:40:15 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Philipp Wuensche >Release: 6.0-BETA5 >Organization: >Environment: FreeBSD subraum.cy.h3q.com 6.0-RC1 FreeBSD 6.0-RC1 #2: Wed Oct 12 09:12:00 CEST 2005 >Description: 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/ - cryx Philipp Wuensche >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # Makefile # distinfo # pkg-descr # pkg-plist # echo x - Makefile sed 's/^X//' >Makefile << 'END-of-Makefile' X# New ports collection makefile for: jailaudit X# Date created: 17 October 2005 X# Whom: cryx X# X XPORTNAME= jailaudit XPORTVERSION= 1.0 XCATEGORIES= security XMASTER_SITES= http://outpost.h3q.com/software/jailaudit/ X XMAINTAINER= cryx-ports@h3q.com XCOMMENT= Generate portaudit reports for jails from the hostsystem X XUSE_BZIP2= yes X XPERIODICDIR?= ${PREFIX}/etc/periodic XREPORTDIR?= ${PREFIX}/jailaudit/reports XTMPDIR?= ${PREFIX}/jailaudit/tmp X XPLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" \ X REPORTDIR="${REPOTDIR}" \ X TMPDIR="${TMPDIR}" X X.include X X.if ( ${OSVERSION} < 501000 ) XIGNORE= The jls utility was added in FreeBSD 5.1. X.endif X XRUN_DEPENDS= ${LOCALBASE}/sbin/portaudit:${PORTSDIR}/security/portaudit X Xpost-install: X @if [ ! -f ${PREFIX}/etc/jailaudit.conf ]; then \ X ${CP} -p ${PREFIX}/etc/jailaudit.conf.sample ${PREFIX}/etc/jailaudit.conf ; \ X fi X X.include X END-of-Makefile echo x - distinfo sed 's/^X//' >distinfo << 'END-of-distinfo' XMD5 (jailaudit-1.0.tar.bz2) = c15c92274d24a177f2e0525589114e0b XSIZE (jailaudit-1.0.tar.bz2) = 2519 END-of-distinfo echo x - pkg-descr sed 's/^X//' >pkg-descr << 'END-of-pkg-descr' XThis port contains a script for generating portaudit reports for jails running on a FreeBSD system. X XJailaudit runs in the Host-system and uses portaudit to create reports for every jail currently running. X XIt can also be used to send specific report-mails to the owner of a jail by running it as a cronjob. X X/etc/crontab example: X0 4 * * * * root /usr/local/bin/jailaudit mail admin@foo.bar "foo.example.com bar.example.com" X XSends reports-mails of the jails with the hostnames foo.example.com and bar.example.com to the mailaddr. admin@example.com. X XWWW: http://outpost.h3q.org/software/jailaudit/ X X- cryx XPhilipp Wuensche END-of-pkg-descr echo x - pkg-plist sed 's/^X//' >pkg-plist << 'END-of-pkg-plist' Xbin/jailaudit Xetc/jailaudit.conf.sample X%%PERIODICDIR%%/security/410.jailaudit X@unexec rmdir %D/%%PERIODICDIR%%/security 2>/dev/null || true X@unexec rmdir %D/%%PERIODICDIR%% 2>/dev/null || true X@exec mkdir -p %%REPORTDIR%% X@unexec rmdir %%REPORTDIR%% 2>/dev/null || true X@exec mkdir -p %%TMPDIR%% X@unexec rmdir %%TMPDIR%% 2>/dev/null || true X END-of-pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: