main/dhcpcd-dbus: fix musl build

This commit is contained in:
Timo Teräs 2013-12-16 17:37:15 +00:00
parent ee3bbb7df7
commit 807e329d0a
2 changed files with 44 additions and 5 deletions

View File

@ -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"

View File

@ -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 *);