aboutsummaryrefslogtreecommitdiffstats
path: root/main/snort/APKBUILD
blob: 11010a3ad3f28119296c1a9607bf8e58e85edf34 (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
37
38
39
40
41
42
43
44
45
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snort
pkgver=2.8.5.3
pkgrel=0
pkgdesc="An open source network intrusion prevention and detection system"
url="http://www.snort.org/"
license="GPL"
depends=
makedepends="pcre-dev libpcap-dev libnet-dev autoconf automake libtool bison flex"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dev"
source="http://dl.snort.org/snort-current/snort-$pkgver.tar.gz
        snort.initd
        snort.confd
        "

build() {
        cd "$srcdir/$pkgname-$pkgver"

	# fix parallel builds
	sed -i -e 's/^all-local:.*/all-local: $(LTLIBRARIES)/' \
		src/dynamic-preprocessors/*/Makefile.am || return 1
	aclocal -I m4 && autoconf && automake --add-missing && libtoolize || return 1
	
        ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --mandir=/usr/share/man \
                --infodir=/usr/share/info \
                --enable-ipv6 \
                --enable-gre
        make || return 1
}

package() {
        cd "$srcdir/$pkgname-$pkgver"
        make -j1 DESTDIR="$pkgdir" install

        install -D -m 755 ../snort.initd "$pkgdir"/etc/init.d/snort
        install -D -m 644 ../snort.confd "$pkgdir"/etc/conf.d/snort
}

md5sums="ef02aaad54746603f2cb3236fe962128  snort-2.8.5.3.tar.gz
ffda56f7c20f5cea1c37c971e0f1d6c9  snort.initd
446f8d2b3435b8a6be738da978670605  snort.confd"