aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-17 07:45:16 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-17 07:45:16 +0000
commit68f938c961a1dea4e79dca7f24f630edbaac99f9 (patch)
tree7a8d6c5318c1777672ba7621f32a8f11d0608b21 /main
parentd3994f6692e69224deeb763604a4f7c9c946ca08 (diff)
downloadaports-68f938c961a1dea4e79dca7f24f630edbaac99f9.tar.bz2
aports-68f938c961a1dea4e79dca7f24f630edbaac99f9.tar.xz
main/knock: fix musl build
Diffstat (limited to 'main')
-rw-r--r--main/knock/APKBUILD14
-rw-r--r--main/knock/fix-includes.patch11
2 files changed, 24 insertions, 1 deletions
diff --git a/main/knock/APKBUILD b/main/knock/APKBUILD
index 0e28532456..bdebb19e11 100644
--- a/main/knock/APKBUILD
+++ b/main/knock/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=knock
pkgver=0.5
-pkgrel=2
+pkgrel=3
pkgdesc="A simple port-knocking daemon"
url="http://www.zeroflux.org/projects/knock"
arch="all"
@@ -14,6 +14,7 @@ subpackages="$pkgname-doc"
source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz
knock.initd
knock.confd
+ fix-includes.patch
path-max.patch"
_builddir="$srcdir/$pkgname-$pkgver"
@@ -54,4 +55,15 @@ package() {
md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz
5f05196d700c04287523d184226e2dc2 knock.initd
8067d3b8401a0b5d513c44d3ff436032 knock.confd
+a1085c6c669b774effc8e3df6ad69bb5 fix-includes.patch
1b7efd25668793c9248e530fd804cb54 path-max.patch"
+sha256sums="c4c141166a10c45b139e5e656d0c98bbb99567abb35163863fc1df1a025cde15 knock-0.5.tar.gz
+a29db7f05c0454642706da297c60a32c8c539eb436942fa6bcf4eaec9ac18b55 knock.initd
+569d0596f28e6df05aeff16331fa5b19c60e4d6a2e36eec57dc9ac377ba3b46e knock.confd
+5863d81b2a52b85c5ede371371eb296cd0358ae0726ede4b01d8fc810a9be1f0 fix-includes.patch
+98556f43e08eea53ef931b67de497d8bcf97fa09d52f3272ca8cfb91dcf7029f path-max.patch"
+sha512sums="c5f7f3320d4d9a41847dba0cda4d66852f983db419b23d3bf9c83d44a41ba437379bf6cee47a096c600841e321740849dac26d5c3afff9b3ae0178a2fcb6c35e knock-0.5.tar.gz
+fd913590f29ea5d7cc813980e9d968a59ead17bb4ceafe456ece4a62da083888c7d7a4810bc0e947ce2d106e1910a150cc9b5c34bad98e594f09a62de76c9cec knock.initd
+63fa311e6adf21450d4c93008a9537ec1b3c0dbed28e3daf955f2761127d9d756f2f7a84d8357d81a5e1a5a48453f9179d0c18cf18af0b9f30437c862a438d7f knock.confd
+e2a7a7b802a0fa6fb43274a00509084413a2e3846e50e48966b0098f12c2bab5db8d45ef53db74f77f7857d39c2b9615a5f26cc0f5aad8506a0242a144483572 fix-includes.patch
+b62f0f47b5fb6b7a40b25530d2ce87940a7f76225ececba269e29e5d7232735b810462bc670c6d523f48e097a383322b2217058240efca7efc3d54e06e18f6cf path-max.patch"
diff --git a/main/knock/fix-includes.patch b/main/knock/fix-includes.patch
new file mode 100644
index 0000000000..7093cbad0b
--- /dev/null
+++ b/main/knock/fix-includes.patch
@@ -0,0 +1,11 @@
+--- knock-0.5.orig/src/knockd.c
++++ knock-0.5/src/knockd.c
+@@ -35,7 +35,7 @@
+ #include <netinet/udp.h>
+ #include <netinet/ip_icmp.h>
+ #include <net/if.h>
+-#include <bits/time.h>
++#include <sys/time.h>
+ #include <sys/socket.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>