aboutsummaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/APKBUILD
blob: fae3a50cde02c89079c057ad89a118229ccc8335 (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
# Contributor: Michael Mason <ms13sp@gmail.com> 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dhcpcd
pkgver=6.0.4
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
	dhcpcd.initd"

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="58e68086c55945b9092331deb9160e1a  dhcpcd-6.0.4.tar.bz2
ecbd807cf3f87d7c5b6095bf63f26894  dhcpcd.initd"
sha256sums="ad2e135ee3b0132b0795a07843e2139619818d4108df6f00cdec062faf015cc3  dhcpcd-6.0.4.tar.bz2
72b42c9939fda3fb56666813513029ed36194c1708bddce06bcb3e131e547492  dhcpcd.initd"
sha512sums="8b9b66004f3996261ad2523c63dea26cf7fe6b992d12b0057cedd998986755a42e072753edc6bea2978b22ae128fd473a6074c30ffe2cdbb85fc7239d97677b6  dhcpcd-6.0.4.tar.bz2
0a188b67f0641a480ac6d3cf6a634dddc4b72b1b9b47df33b05fba5d802693dd88e0cece0bfe9b641009c03022c620595b1ce35cd53d5024ee87f4c81e9acf63  dhcpcd.initd"