aboutsummaryrefslogtreecommitdiffstats
path: root/main/daq
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-10 08:52:51 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-10 08:52:51 +0000
commitca6ee3c388db2d91fbcf23d69a599117ea23f604 (patch)
tree20f86963ad45772f295341354bd5a34f43a4799e /main/daq
parent060ff41739cc6eb55afef1dc228ddec6bab79560 (diff)
downloadaports-ca6ee3c388db2d91fbcf23d69a599117ea23f604.tar.bz2
aports-ca6ee3c388db2d91fbcf23d69a599117ea23f604.tar.xz
main/daq: fix musl build
Diffstat (limited to 'main/daq')
-rw-r--r--main/daq/APKBUILD13
-rw-r--r--main/daq/fix-includes.patch33
2 files changed, 42 insertions, 4 deletions
diff --git a/main/daq/APKBUILD b/main/daq/APKBUILD
index f58958d574..bbf913973d 100644
--- a/main/daq/APKBUILD
+++ b/main/daq/APKBUILD
@@ -11,7 +11,9 @@ depends=
makedepends="libpcap-dev flex bison"
install=""
subpackages="$pkgname-dev"
-source="http://www.snort.org/dl/snort-current/daq-$pkgver.tar.gz"
+source="http://www.snort.org/dl/snort-current/daq-$pkgver.tar.gz
+ fix-includes.patch
+ "
_builddir="$srcdir"/daq-$pkgver
prepare() {
@@ -48,6 +50,9 @@ package() {
"$pkgdir"/usr/lib/daq/*.la || return 1
}
-md5sums="044aa3663d44580d005293eeb8ccf175 daq-2.0.1.tar.gz"
-sha256sums="ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d daq-2.0.1.tar.gz"
-sha512sums="34a38efcfc3d715eb3b9532560883228a67a6bec194229a7db68a0301914dad6c2b346026119379230fcfbe2678d4d2525f10825df88692d9a13f22ec1748e34 daq-2.0.1.tar.gz"
+md5sums="044aa3663d44580d005293eeb8ccf175 daq-2.0.1.tar.gz
+1811f7de59d1d05937b87e5415174f8d fix-includes.patch"
+sha256sums="ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d daq-2.0.1.tar.gz
+3a4d835a53561ac07df0c8ad0d2741f4820b159df261fb3c686e01e1a04c4219 fix-includes.patch"
+sha512sums="34a38efcfc3d715eb3b9532560883228a67a6bec194229a7db68a0301914dad6c2b346026119379230fcfbe2678d4d2525f10825df88692d9a13f22ec1748e34 daq-2.0.1.tar.gz
+ea769608e4b6ebfd186a5e637a1dbf16f300c5c40501655b891fdc0095879f65927d90872d4953a4a4e32ccc40306b19a1a1e7ae4dd8b3f7572db97aea48390e fix-includes.patch"
diff --git a/main/daq/fix-includes.patch b/main/daq/fix-includes.patch
new file mode 100644
index 0000000000..924f49c533
--- /dev/null
+++ b/main/daq/fix-includes.patch
@@ -0,0 +1,33 @@
+--- daq-2.0.1.orig/os-daq-modules/daq_ipfw.c
++++ daq-2.0.1/os-daq-modules/daq_ipfw.c
+@@ -26,7 +26,7 @@
+
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+--- daq-2.0.1.orig/os-daq-modules/daq_ipq.c
++++ daq-2.0.1/os-daq-modules/daq_ipq.c
+@@ -27,7 +27,7 @@
+
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <netinet/ip.h>
+
+--- daq-2.0.1.orig/os-daq-modules/daq_nfq.c
++++ daq-2.0.1/os-daq-modules/daq_nfq.c
+@@ -27,7 +27,7 @@
+
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
++#include <unistd.h>
+
+ #include <netinet/ip.h>
+