aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/APKBUILD
blob: ea12f6d5d505c26e653503b074b2a5b5f0c2bf6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcpcd
pkgver=6.4.2
pkgrel=0
pkgdesc="RFC2131 compliant DHCP client"
url="http://roy.marples.name/projects/dhcpcd/"
arch="all"
license="BSD-2"
depends=
makedepends=
install=
subpackages="$pkgname-doc"
source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2
	busybox-logger.patch
	fix-includes.patch
	fix-caddr_t.patch
	dhcpcd.initd"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	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"
	CFLAGS="$CFLAGS -D_GNU_SOURCE"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--libexecdir=/lib/dhcpcd \
		--dbdir=/var/lib/dhcpcd \
		|| return 1
	make
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/dhcpcd.initd "$pkgdir"/etc/init.d/dhcpcd
}

md5sums="3ba26bd6e0cd2f973bfbcd3c08ebc93b  dhcpcd-6.4.2.tar.bz2
ee37c1f2b73055e6cf127fc8e581af87  busybox-logger.patch
6f5f2e7df22f09b0ef8f3ff05fe87151  fix-includes.patch
247992cddc9fa9088d84a3f500674d1b  fix-caddr_t.patch
ecbd807cf3f87d7c5b6095bf63f26894  dhcpcd.initd"
sha256sums="eebb9f9e13b40d47efbb56d8568e54f640bee3337ba45b30b3e47db5b14220b7  dhcpcd-6.4.2.tar.bz2
a590961c9e53829a9d33ae458fc4c4b68880f5b2b972c3a78c60a947b8c56fb5  busybox-logger.patch
fd7aae982ee22b6e22bbeb4fa4e8a5694ed68eac64b2cfc52a6f2c97ddd60049  fix-includes.patch
ef861dad9bc5149b33987e3023a435733a859d12dda0118d42b5ef63a8930f20  fix-caddr_t.patch
72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492  dhcpcd.initd"
sha512sums="079b5ad8559b8ee995e5fda12769bd9176253d4963b7904868a1ecea3dcd4759453882bdc57236e765ef53807a42d687c3ee4c727c33ed86e42e94d5bc0135cc  dhcpcd-6.4.2.tar.bz2
35960cc9197750890d1a8540eb920e6c0544295993044718aa5309303e29eb2c7622eee74f742861cf446d88c7b80b5ea104f3f6bcc3e9daa5be59237a962971  busybox-logger.patch
d21e431f723537061e0787f461eaeed2f02384653dd82d89cd53163ea0b616f11a2d2b1a4013bd1a5682c6c6f4c24d1f42d1201ad5a63be007b26923d884b7dd  fix-includes.patch
afe7bb9c1a592c7268bce1544bf8c106e7c6db721ba98bd3f4e67753eca35183b48ec01b677e0edfd781e8ccff3cb095ec7ab2774cadbd397063e33497f86ad6  fix-caddr_t.patch
0a188b67f0641a480ac6d3cf6a634dddc4b72b1b9b47df33b05fba5d802693dd88e0cece0bfe9b641009c03022c620595b1ce35cd53d5024ee87f4c81e9acf63  dhcpcd.initd"