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