aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnids/APKBUILD
blob: 869b40ed1ff864b8291d9abb93212ad6f810b628 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libnids
pkgver=1.25
pkgrel=0
pkgdesc="An implementation of an E-component of Network Intrusion Detection System."
url="http://libnids.sourceforge.net"
arch="all"
license="GPL-2.0-only"
options="!check" #no test/check provided
makedepends="libnet-dev libpcap-dev glib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/MITRECND/libnids/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--prefix=/usr \
		--man=/usr/share/man \
		--enable-shared
	make
}

package() {
	make install_prefix=$pkgdir install
	ln -s libnids.so.1.25 $pkgdir/usr/lib/libnids.so.1
}

sha512sums="8f89b0e26759d54b139c1a77a5ec45fe5437d88cc4db718d4f77c2fa741aec7bd82e1dcfc8402d47acbc037c1e32b35f709bce316e47a15b5d20d8beb16fe830  libnids-1.25.tar.gz"