summaryrefslogtreecommitdiffstats
path: root/testing/nebula/APKBUILD
blob: 4dd3e5c2284df06301718d6e3a3ec3599d684b5c (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
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="zlib-dev"
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"