1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
3 # Contributor: Tom Killian <tom.archlinux.org>
4 # Contributor: Judd Vinet <jvinet.zeroflux.org>
9 pkgdesc="RFC2131 compliant DHCP client daemon"
10 url="https://roy.marples.name/projects/dhcpcd/"
13 depends=('glibc' 'sh' 'udev' 'systemd-libs')
14 optdepends=('openresolv: resolvconf support')
15 provides=('dhcp-client')
16 backup=('etc/dhcpcd.conf')
17 install='dhcpcd.install'
18 options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
19 source=("https://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.xz"
25 validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549') # Roy Marples (NetBSD) <roy@NetBSD.org>
26 sha256sums=('819357634efed1ea5cf44ec01b24d3d3f8852fec8b4249925dcc5667c54e376c'
27 'd40d51367fcf7e9596e42cd2bab59404633bedbab4d0a3183e7246b4677937b7'
28 '37acd53a589711f5e1db2fcaebb4ccf1c90dc4bcd309626bde25beb7b630a545'
29 '20bccbf8a05b1bc2be365c8b4b526c38c752f48229ba53c3be113ac5b634f210'
30 '06788ad9f5f7ccb5d2a2da6f0322ff5771f8de82cfbe8b9ad954f2c38265e21b'
31 '55d57b958f6b7e4d4a538ee88b0fcc1a522050c2d38efb5d680139f618234b35')
33 # cd ${pkgname}-${pkgver}
37 cd ${pkgname}-${pkgver}
44 --libexecdir=/usr/lib/dhcpcd \
45 --dbdir=/var/lib/dhcpcd \
55 cd ${pkgname}-${pkgver}
62 cd ${pkgname}-${pkgver}
63 make DESTDIR="${pkgdir}" install
66 install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
67 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
69 # Set Options in /etc/dhcpcd.conf
70 echo noipv4ll >> "${pkgdir}/etc/dhcpcd.conf" # Disable ip4vall
72 # install systemd files
73 install -Dm644 "${srcdir}/dhcpcd_.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd@.service"
74 install -Dm644 "${srcdir}/dhcpcd.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd.service" # FS#31543
75 install -Dm644 "${srcdir}/dhcpcd.sysusers" "${pkgdir}/usr/lib/sysusers.d/dhcpcd.conf"
76 install -Dm644 "${srcdir}/dhcpcd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/dhcpcd.conf"