From 6b6688c7f490e9455d3ac6c3d30c493e8e210fbe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Jul 2011 18:51:39 +0000 Subject: Initial APKBUILD for nebula Package description: Nebula is a network intrusion signature generator. It can help securing a network by automatically deriving and installing filter rules from attack traces. In a common setup, nebula runs as a daemon and receives attacks from honeypots. Signatures are currently published in Snort format. The code was written to be fast. A signature is not of much value if the generation process takes hours or days. With nebula, you should get a first revision within a few seconds. As more attacks of a kind are submitted, signatures get better and nebula publishes updated revisions. --- testing/nebula/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 testing/nebula/APKBUILD (limited to 'testing/nebula') diff --git a/testing/nebula/APKBUILD b/testing/nebula/APKBUILD new file mode 100644 index 000000000..0d546574e --- /dev/null +++ b/testing/nebula/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=nebula +pkgver=0.2.3 +pkgrel=0 +pkgdesc="An Intrusion Signature Generator" +url="http://nebula.carnivore.it/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-client" +source="http://downloads.sourceforge.net/nebula/$pkgname-$pkgver.tar.gz" +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make AM_CFLAGS=-D_GNU_SOURCE || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +client() { + #cd "$_builddir" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/"$pkgname"client "$subpkgdir"/usr/bin/ +} + +md5sums="06eabd66634e7969203465fb94900f18 nebula-0.2.3.tar.gz" -- cgit v1.2.3