diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-09-29 12:30:39 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-09-29 12:31:09 +0000 |
commit | 0dba7bc25a37335d5bd351b3d073aff1e5c9eef7 (patch) | |
tree | 1d31d9b7fc39621114e8c80f934b94b694d408c1 /testing | |
parent | 9cde6569d30ede6622a56fb1e202ed09f8227415 (diff) | |
download | aports-0dba7bc25a37335d5bd351b3d073aff1e5c9eef7.tar.bz2 aports-0dba7bc25a37335d5bd351b3d073aff1e5c9eef7.tar.xz |
testing/libnids: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/libnids/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/libnids/APKBUILD b/testing/libnids/APKBUILD new file mode 100644 index 0000000000..bd780485bc --- /dev/null +++ b/testing/libnids/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=libnids +pkgver=1.24 +pkgrel=0 +pkgdesc="An implementation of an E-component of Network Intrusion Detection System." +url="http://libnids.sourceforge.net" +arch="all" +license="GPL" +depends="" +depends_dev="libnet-dev libpcap-dev glib-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/$pkgname/$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 \ + --man=/usr/share/man \ + --enable-shared \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make install_prefix=$pkgdir install + ln -s libnids.so.1.24 $pkgdir/usr/lib/libnids.so.1 +} + +md5sums="72d37c79c85615ffe158aa524d649610 libnids-1.24.tar.gz" +sha256sums="314b4793e0902fbf1fdb7fb659af37a3c1306ed1aad5d1c84de6c931b351d359 libnids-1.24.tar.gz" +sha512sums="2046900023e853d7dbd7061c9f47d8a8ba26320991ca34198249019c1b9a6f75010574f9f022d02976272a384cf769394c4cc3ae536fc6164716cadc4770bb53 libnids-1.24.tar.gz" |