aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd-dbus
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-16 17:37:15 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-16 17:37:36 +0000
commit807e329d0a144fbb8aed10655c55bfc8a522e4b4 (patch)
treec18a89ecaa9462a2c07a191d280b894f4aa5099a /main/dhcpcd-dbus
parentee3bbb7df70b91a06879dc78862665a86d3080ae (diff)
downloadaports-807e329d0a144fbb8aed10655c55bfc8a522e4b4.tar.bz2
aports-807e329d0a144fbb8aed10655c55bfc8a522e4b4.tar.xz
main/dhcpcd-dbus: fix musl build
Diffstat (limited to 'main/dhcpcd-dbus')
-rw-r--r--main/dhcpcd-dbus/APKBUILD27
-rw-r--r--main/dhcpcd-dbus/fix-includes.patch22
2 files changed, 44 insertions, 5 deletions
diff --git a/main/dhcpcd-dbus/APKBUILD b/main/dhcpcd-dbus/APKBUILD
index cc3c9e0c77..f3a2ea6408 100644
--- a/main/dhcpcd-dbus/APKBUILD
+++ b/main/dhcpcd-dbus/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcpcd-dbus
pkgver=0.6.0
-pkgrel=0
+pkgrel=1
pkgdesc="DBUS binding to dhcpcd"
url="http://roy.marples.name/projects/dhcpcd-dbus"
arch="all"
@@ -10,10 +10,22 @@ depends=""
makedepends="dbus-dev pkgconfig"
install=
subpackages=
-source="http://roy.marples.name/downloads/dhcpcd/dhcpcd-dbus-$pkgver.tar.bz2"
+source="http://roy.marples.name/downloads/dhcpcd/dhcpcd-dbus-$pkgver.tar.bz2
+ fix-includes.patch"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -25,8 +37,13 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
}
-md5sums="4fd43b0f0ca7c0e65f95a0b2846b37b7 dhcpcd-dbus-0.6.0.tar.bz2"
+md5sums="4fd43b0f0ca7c0e65f95a0b2846b37b7 dhcpcd-dbus-0.6.0.tar.bz2
+7b418d583fc1ddb203fbcdcec3b94931 fix-includes.patch"
+sha256sums="b14190fb7dcd0642fa747fd286462e80ba4d1f44ba32a761af979c2101b6fb81 dhcpcd-dbus-0.6.0.tar.bz2
+f81fea89c922c25cc97729beceea59d8166331c79c1b47534c679a3567f8247f fix-includes.patch"
+sha512sums="a50b5cd01ccd94048a34f08b507bfeb92113e2ff45714fef64c16a8317806876cea1737fbde0eb8ebe1ffd0e41bd33fd94b5448fd7cb2f10043fcbbafbedc964 dhcpcd-dbus-0.6.0.tar.bz2
+88fbce9783a61f319a7464ab15ae8689126b04759835d23ca155f00103117b1d155c7d845781420440f740632807e0d34be8b2e0cfd18950df853d8a1a6ad882 fix-includes.patch"
diff --git a/main/dhcpcd-dbus/fix-includes.patch b/main/dhcpcd-dbus/fix-includes.patch
new file mode 100644
index 0000000000..34492617fb
--- /dev/null
+++ b/main/dhcpcd-dbus/fix-includes.patch
@@ -0,0 +1,22 @@
+--- dhcpcd-dbus-0.6.0.orig/dhcpcd.h
++++ dhcpcd-dbus-0.6.0/dhcpcd.h
+@@ -28,6 +28,8 @@
+ #ifndef DHCPCD_H
+ #define DHCPCD_H
+
++#include <sys/types.h>
++
+ extern char *dhcpcd_version;
+ extern const char *dhcpcd_status;
+
+--- dhcpcd-dbus-0.6.0.orig/eloop.h
++++ dhcpcd-dbus-0.6.0/eloop.h
+@@ -28,7 +28,7 @@
+ #ifndef ELOOP_H
+ #define ELOOP_H
+
+-#include <time.h>
++#include <sys/time.h>
+
+ int add_event(int, void (*)(void *), void *);
+ int add_event_flags(int, int, void (*)(int, void *), void *);