aboutsummaryrefslogtreecommitdiffstats
path: root/main/daq/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/daq/APKBUILD')
-rw-r--r--main/daq/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/daq/APKBUILD b/main/daq/APKBUILD
new file mode 100644
index 0000000000..303c7359bb
--- /dev/null
+++ b/main/daq/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=daq
+pkgver=0.5
+pkgrel=1
+pkgdesc="Data Acquisition library - packet I/O library"
+url="http://www.snort.org/"
+arch="all"
+license="GPL-2"
+depends=
+makedepends="libpcap-dev flex bison"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.snort.org/dl/snort-current/daq-$pkgver.tar.gz"
+
+_builddir="$srcdir"/daq-$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 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la \
+ "$pkgdir"/usr/lib/daq/*.la || return 1
+}
+
+md5sums="ea9d8147f39c44ce00dd2d7eb19ce0ea daq-0.5.tar.gz"