OCaml 4.14.0 rebuild
[arch-packages.git] / dhcpcd / trunk / PKGBUILD
blobddbdd7988f94de0ba1d2ece10715cb9c98b97d00
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>
6 pkgname=dhcpcd
7 pkgver=9.4.1
8 pkgrel=1
9 pkgdesc="RFC2131 compliant DHCP client daemon"
10 url="https://roy.marples.name/projects/dhcpcd/"
11 arch=('x86_64')
12 license=('BSD')
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"
20         dhcpcd.install
21         dhcpcd_.service
22         dhcpcd.service
23         dhcpcd.sysusers
24         dhcpcd.tmpfiles)
25 validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549')  # Roy Marples (NetBSD) <roy@NetBSD.org>
26 sha256sums=('819357634efed1ea5cf44ec01b24d3d3f8852fec8b4249925dcc5667c54e376c'
27             'd40d51367fcf7e9596e42cd2bab59404633bedbab4d0a3183e7246b4677937b7'
28             '37acd53a589711f5e1db2fcaebb4ccf1c90dc4bcd309626bde25beb7b630a545'
29             '20bccbf8a05b1bc2be365c8b4b526c38c752f48229ba53c3be113ac5b634f210'
30             '06788ad9f5f7ccb5d2a2da6f0322ff5771f8de82cfbe8b9ad954f2c38265e21b'
31             '55d57b958f6b7e4d4a538ee88b0fcc1a522050c2d38efb5d680139f618234b35')
32 # prepare () {
33 #   cd ${pkgname}-${pkgver}
34 # }
36 build() {
37   cd ${pkgname}-${pkgver}
39   # configure variables
40   ./configure \
41       --prefix=/usr \
42       --sysconfdir=/etc \
43       --sbindir=/usr/bin \
44       --libexecdir=/usr/lib/dhcpcd \
45       --dbdir=/var/lib/dhcpcd \
46       --runstatedir=/run \
47       --privsepuser=dhcpcd
49   # Build
50   make
54 check() {
55   cd ${pkgname}-${pkgver}
57   make test
61 package() {
62   cd ${pkgname}-${pkgver}
63   make DESTDIR="${pkgdir}" install
65   # Install License
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"