summaryrefslogtreecommitdiff
path: root/user/dhcpcd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/dhcpcd/APKBUILD')
-rw-r--r--user/dhcpcd/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/user/dhcpcd/APKBUILD b/user/dhcpcd/APKBUILD
new file mode 100644
index 000000000..856088ea3
--- /dev/null
+++ b/user/dhcpcd/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=dhcpcd
+pkgver=7.0.6
+pkgrel=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 eudev-dev"
+install="$pkgname.post-upgrade"
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.xz
+ fix-chrony-conf-location.patch
+ dhcpcd.initd
+ "
+
+build() {
+ cd "$builddir"
+
+ CFLAGS="$CFLAGS -D_GNU_SOURCE -DHAVE_PRINTF_M"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib/$pkgname \
+ --dbdir=/var/lib/$pkgname \
+ --rundir=/run \
+ --enable-ipv6
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir"/dhcpcd.initd \
+ "$pkgdir"/etc/init.d/dhcpcd
+}
+
+sha512sums="5885739e60d6eb4fded117cb87f59a073ae6e8da8454dee56d8e7c5d33778e413e121d28a22163ebf31e4508a21d3a21c1d17ee6d4551081db2ee8e5384d44c9 dhcpcd-7.0.6.tar.xz
+1c19eed0f7a008ee96ea392beb327169ff8c83fc27fed20f65f05c9125f60629ebe3474c5e6a7cf4aeeea448fde4264c9b84916efacd67d47ab908c47b1fc3a5 fix-chrony-conf-location.patch
+e777432c2efc84285b41e63a4687f3bd543f6864218d037529ab78b5ad934de154f28f478bd9facb56628f2953aad8a932bc2eb8b1dfffa0ce2278ffcfc4d880 dhcpcd.initd"