aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdaemon
diff options
context:
space:
mode:
Diffstat (limited to 'main/libdaemon')
-rw-r--r--main/libdaemon/APKBUILD16
-rw-r--r--main/libdaemon/fix-includes.patch13
2 files changed, 27 insertions, 2 deletions
diff --git a/main/libdaemon/APKBUILD b/main/libdaemon/APKBUILD
index 6a0c395957..b8841ca45d 100644
--- a/main/libdaemon/APKBUILD
+++ b/main/libdaemon/APKBUILD
@@ -9,13 +9,20 @@ license="LGPL"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
-source="http://0pointer.de/lennart/projects/libdaemon/libdaemon-$pkgver.tar.gz"
+source="http://0pointer.de/lennart/projects/libdaemon/libdaemon-$pkgver.tar.gz
+ fix-includes.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build () {
cd "$_builddir"
@@ -35,4 +42,9 @@ package() {
rm "$pkgdir"/usr/lib/*.la
}
-md5sums="509dc27107c21bcd9fbf2f95f5669563 libdaemon-0.14.tar.gz"
+md5sums="509dc27107c21bcd9fbf2f95f5669563 libdaemon-0.14.tar.gz
+eaec55e5ecb35805d70ca7fc6a74f85c fix-includes.patch"
+sha256sums="fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834 libdaemon-0.14.tar.gz
+6f27a2acc2707b91320190a7946b18f0a34ed68acf0c282e6ec08ee8345b0739 fix-includes.patch"
+sha512sums="a96b25c09bd63cc192c1c5f8b5bf34cc6ad0c32d42ac14b520add611423b6ad3d64091a47e0c7ab9a94476a5e645529abccea3ed6b23596567163fba88131ff2 libdaemon-0.14.tar.gz
+2351e87a645d997d4f549807b809376ab7be78f833f6ba44100509b7ffdd9f526ec95c3a265d059eb35531fa489e814e21bc6ab85540c539c67677124d2f7924 fix-includes.patch"
diff --git a/main/libdaemon/fix-includes.patch b/main/libdaemon/fix-includes.patch
new file mode 100644
index 0000000000..51c5133afe
--- /dev/null
+++ b/main/libdaemon/fix-includes.patch
@@ -0,0 +1,13 @@
+--- libdaemon-0.14.orig/examples/testd.c
++++ libdaemon-0.14/examples/testd.c
+@@ -21,9 +21,9 @@
+ #include <signal.h>
+ #include <errno.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+-#include <sys/unistd.h>
+ #include <sys/select.h>
+
+ #include <libdaemon/dfork.h>