# Copyright 2002 Paul Belt # Distributed under the terms of the GNU General Public License v2 # Author: Paul Belt <gaarde at users dot sourceforge dot net> DESCRIPTION="Snorticus is a collection of shell scripts designed to allow easy managment of Snort sensors." HOMEPAGE="http://snorticus.baysoft.net/" SRC_URI="http://snorticus.baysoft.net/snorticus/${P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="x86" RDEPEND="virtual/glibc net-analyzer/snort net-admin/snortsnarf sys-apps/sh-utils net-misc/ssh" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} patch -p0 < ${FILESDIR}/hourly_wrapup.gaarde patch -p0 < ${FILESDIR}/push_rules.gaarde patch -p0 < ${FILESDIR}/retrieve_wrapup.gaarde } src_compile() { einfo 'Nothing to compile.' } src_install () { dodoc COPYING snorticus.html mkdir -p ${D}/etc/snort/addons/ mkdir -p ${D}/usr/lib/snort/addons/snorticus/ cp hourly_wrapup.sh push_rules.sh retrieve_wrapup.sh /usr/lib/snort/addons/snorticus/ mkdir -p ${D}/home/httpd/htdocs/snorticus dosym /home/httpd/htdocs/snorticus /usr/lib/snort/addons/snorticus/LOGS } src_postinst() { einfo 'Add the following into a cronjob somewhere for a sensor box.' einfo '' einfo '01 * * * * /usr/lib/snort/addons/snorticus/hourly_wrapup.sh > /dev/null 2>&1' einfo '' einfo 'Add the following into a cronjob somewhere for an analyst box.' einfo '' einfo '15 * * * * /usr/lib/snort/addons/snorticus/retrieve_wrapup.sh MySite1 mysensor.blah.blah > /dev/null 2>&1' }
The ebuild needs to be copyrighted by Gentoo Technologies, otherwise I can't add it to Portage, sorry.
Bouncing back to bug-wranglers due to time constraints.
You need to attach the patches you apply in the ebuild.
Created attachment 8192 [details, diff] Changes the location of the 'rules' directory
Created attachment 8193 [details, diff] changes the location of several directories
Created attachment 8194 [details, diff] changes several directory locations
Sorry 'bout that. Minor oversight on my part. Please note, I got 'Status: 400 Bad request (malformed multipart POST)' when submitting the patches.
Commited, thanks for the ebuild!