summaryrefslogtreecommitdiff
path: root/aports/dhcpcd/APKBUILD
blob: b6cf3184dc54eb712dda2a77ce3d3253dddf0ac7 (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
# Maintainer: Gabor Pali <pali.gabor@gmail.com>
pkgname=dhcpcd
pkgver=10.0.5
pkgrel=0 # base: 0
pkgdesc="RFC2131 compliant DHCP client"
url="https://roy.marples.name/projects/dhcpcd"
arch="all"
license="BSD-2-Clause"
makedepends="linux-headers bsd-compat-headers"
install=
source="$pkgname-$pkgver.tar.gz::https://github.com/NetworkConfiguration/dhcpcd/archive/refs/tags/v$pkgver.tar.gz
	busybox-logger.patch
	dhcpcd.initd
	99-udhcpd.conf
	99-radvd.conf
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--libexecdir=/usr/lib/$pkgname \
		--dbdir=/var/lib/$pkgname \
		--rundir=/run/dhcpcd \
		--runstatedir=/run/dhcpcd \
		--disable-seccomp \
		--enable-ipv6 \
		--enable-privsep \
		--without-dev \
		--without-udev
	make
}

package() {
	make DESTDIR="$pkgdir" proginstall
	install -Dm755 "$srcdir"/dhcpcd.initd \
		"$pkgdir"/etc/init.d/dhcpcd
	install -Dm555 "$srcdir"/99-udhcpd.conf \
		"$pkgdir"/usr/lib/dhcpcd/dhcpcd-hooks/99-udhcpd.conf
	install -Dm555 "$srcdir"/99-radvd.conf \
		"$pkgdir"/usr/lib/dhcpcd/dhcpcd-hooks/99-radvd.conf
	ln -s /media/etc/dhcpcd.conf "$pkgdir"/etc
}

sha512sums="
8926a2b0c0d1f6f0798c24372e8b7881e0cc01970633d70f806bd11866239df8d43a3a5a9d0160fa78a2850ad133d9acba1143bb11eb88c1ed475e7cc658c979  dhcpcd-10.0.5.tar.gz
b6bdaac9fc0d5d2d7e8c5e30d1a45db1cff2284d01f92f8821b2f03aaff4e0dbd8cbfbced96d8d9d934dc11f22b792a8345d634d8e4e3b84f43016b7e866e302  busybox-logger.patch
7fb44b82a6fa25ee6249fc4835853a4c1fc7d327653efabd9fde303b1f306b3aa6956b2621b55a24fc007ec7ad878ce50e7418ebff0b17fece76e2fdd9e5190d  dhcpcd.initd
c3d551505e22e253bed29fda5c4766ab8b23f14883df0c342b04c835f7ed50d90714a053c86b281bb9924fd9a83cdc6015ecc51217852f0ab2c63058b5d625a5  99-udhcpd.conf
f9bb9a7d81e3cc3a83554650f8f5596331ecb8d26259e38d983196d741c726e15bf6822d05b904dd61af4e63dc74681226918685c856e56a95267c08601c0baa  99-radvd.conf
"