Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8714 - net-admin/snorticus-1.0.4.ebuild (new ebuild)
Summary: net-admin/snorticus-1.0.4.ebuild (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-03 11:19 UTC by Paul Belt
Modified: 2003-02-13 05:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Changes the location of the 'rules' directory (push_rules.gaarde,205 bytes, patch)
2003-02-12 09:32 UTC, Paul Belt
Details | Diff
changes the location of several directories (hourly_wrapup.gaarde,1005 bytes, patch)
2003-02-12 09:34 UTC, Paul Belt
Details | Diff
changes several directory locations (retrieve_wrapup.gaarde,1.43 KB, patch)
2003-02-12 09:35 UTC, Paul Belt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Belt 2002-10-03 11:19:13 UTC
# 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'
}
Comment 1 Maik Schreiber 2003-01-08 14:43:08 UTC
The ebuild needs to be copyrighted by Gentoo Technologies, otherwise I can't add
it to Portage, sorry.
Comment 2 Maik Schreiber 2003-01-17 17:41:30 UTC
Bouncing back to bug-wranglers due to time constraints.
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2003-02-12 05:06:21 UTC
You need to attach the patches you apply in the ebuild. 
Comment 4 Paul Belt 2003-02-12 09:32:31 UTC
Created attachment 8192 [details, diff]
Changes the location of the 'rules' directory
Comment 5 Paul Belt 2003-02-12 09:34:19 UTC
Created attachment 8193 [details, diff]
changes the location of several directories
Comment 6 Paul Belt 2003-02-12 09:35:07 UTC
Created attachment 8194 [details, diff]
changes several directory locations
Comment 7 Paul Belt 2003-02-12 09:36:57 UTC
Sorry 'bout that.  Minor oversight on my part.

Please note, I got 'Status: 400 Bad request (malformed multipart POST)' when submitting the patches.
Comment 8 Daniel Ahlberg (RETIRED) gentoo-dev 2003-02-13 05:37:05 UTC
Commited, thanks for the ebuild!