aboutsummaryrefslogtreecommitdiffstats
path: root/community/libnids/APKBUILD
blob: be4930907464eb73ed97f655c566963e19a658aa (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
34
35
36
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libnids
pkgver=1.24
pkgrel=2
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="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	update_config_sub || return 1
	./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
}

sha512sums="2046900023e853d7dbd7061c9f47d8a8ba26320991ca34198249019c1b9a6f75010574f9f022d02976272a384cf769394c4cc3ae536fc6164716cadc4770bb53  libnids-1.24.tar.gz"