aboutsummaryrefslogtreecommitdiffstats
path: root/main/daq
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-16 12:35:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-16 13:33:40 +0000
commit2be964e742c984c769619f3799ff3bd9c5a4b91b (patch)
tree6cf83e035b228c038c130ed0ecad3c997d9ec498 /main/daq
parentab2e9c4994d4e539e7289f63c0608e2f77fd59dc (diff)
downloadaports-2be964e742c984c769619f3799ff3bd9c5a4b91b.tar.bz2
aports-2be964e742c984c769619f3799ff3bd9c5a4b91b.tar.xz
main/daq: update checksum, modernize and add check
Diffstat (limited to 'main/daq')
-rw-r--r--main/daq/APKBUILD35
1 files changed, 13 insertions, 22 deletions
diff --git a/main/daq/APKBUILD b/main/daq/APKBUILD
index ed4ecaf359..842b664ced 100644
--- a/main/daq/APKBUILD
+++ b/main/daq/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=daq
pkgver=2.0.6
-pkgrel=1
+pkgrel=2
pkgdesc="Data Acquisition library - packet I/O library"
url="http://www.snort.org/"
arch="all"
@@ -15,19 +15,10 @@ source="https://www.snort.org/downloads/snort/daq-$pkgver.tar.gz
fix-includes.patch
"
-_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
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -35,21 +26,21 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var \
- || return 1
+ --localstatedir=/var
# work around parallel build issue
make -C sfbpf tokdefs.h
- make || return 1
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-md5sums="2cd6da422a72c129c685fc4bb848c24c daq-2.0.6.tar.gz
-1811f7de59d1d05937b87e5415174f8d fix-includes.patch"
-sha256sums="b40e1d1273e08aaeaa86e69d4f28d535b7e53bdb3898adf539266b63137be7cb daq-2.0.6.tar.gz
-3a4d835a53561ac07df0c8ad0d2741f4820b159df261fb3c686e01e1a04c4219 fix-includes.patch"
-sha512sums="65d779651e6b193309159113f620dc843be4b5e142455a3b530b88ce7ca12c318935affa45f54e56427c9d5eb1239a47dc7a323325ccb394d1a888619c580f9e daq-2.0.6.tar.gz
+sha512sums="61dd5408c587e57999445b9549ac539ffc5bb16ddc179601de1065fc5e251c1893536d8aa2251096e34b54093529d3578e7b5d97e3514cb2bbf4de113639b08c daq-2.0.6.tar.gz
ea769608e4b6ebfd186a5e637a1dbf16f300c5c40501655b891fdc0095879f65927d90872d4953a4a4e32ccc40306b19a1a1e7ae4dd8b3f7572db97aea48390e fix-includes.patch"