summaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/APKBUILD
blob: b51bbd12d074d98d8321d444cf75947159cec32e (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
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcpcd
pkgver=6.1.0
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
	fix-includes.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"
	./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="6070040c57492925af9ac6aed980de2a  dhcpcd-6.1.0.tar.bz2
c5d3c2f281e877e83b0dba3b51136276  fix-includes.patch
ecbd807cf3f87d7c5b6095bf63f26894  dhcpcd.initd"
sha256sums="71735bcc2e740f37865a985fe32eaa9da5bf557e8b74b214d8099cac878cab64  dhcpcd-6.1.0.tar.bz2
18dfb95088bafc86603d8a8df1d21d8ebd24fdddf9a7517e50744f8bd1023f95  fix-includes.patch
72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492  dhcpcd.initd"
sha512sums="87d1512a19660484107ecf5d031ba2755837d381165fc854bfb9460ee5f852bac53423c5c833c765f4ab9d698fcaacd350f16ff8f6173238800ec167a7672874  dhcpcd-6.1.0.tar.bz2
63315419049b6de0177ba355f74576bb0ba7ae12cc4db52a477c3b2d51502535666d83895eeb442f212cd89f8f9046fcad90d6a0d50a79a7027efb3fab0ee852  fix-includes.patch
0a188b67f0641a480ac6d3cf6a634dddc4b72b1b9b47df33b05fba5d802693dd88e0cece0bfe9b641009c03022c620595b1ce35cd53d5024ee87f4c81e9acf63  dhcpcd.initd"