PKGBUILD 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Maintainer: Ronald van Haren <ronald.archlinux.org>
  2. # Contributor: Tom Killian <tom.archlinux.org>
  3. # Contributor: Judd Vinet <jvinet.zeroflux.org>
  4. pkgname=dhcpcd
  5. pkgver=7.0.8
  6. pkgrel=1
  7. pkgdesc="RFC2131 compliant DHCP client daemon"
  8. url="http://roy.marples.name/projects/dhcpcd/"
  9. arch=(x86_64 ppc64le)
  10. license=('BSD')
  11. groups=('base')
  12. depends=('glibc' 'sh' 'udev' 'libsystemd')
  13. optdepends=('openresolv: resolvconf support')
  14. provides=('dhcp-client')
  15. backup=('etc/dhcpcd.conf')
  16. options=('emptydirs') # We Need the Empty /var/lib/dhcpcd Directory
  17. source=("https://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.xz"
  18. 'dhcpcd_.service'
  19. 'dhcpcd.service')
  20. validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549') # Roy Marples (NetBSD) <roy@NetBSD.org>
  21. sha256sums=('96968e883369ab4afd11eba9dfd9bb109f5dfff65b2814ce6c432f36362dc9b5'
  22. '72dba5d6e7a99cf6d9a796f79ee395e2434af12d6d4e76573d428c6d0c2986ed'
  23. '782ba5fc31518e6f499d119120efe5ea68ce29ebbb797306d5e17b2a545c2f9e')
  24. build() {
  25. cd "${srcdir}/${pkgname}-${pkgver}"
  26. # configure variables
  27. ./configure \
  28. --prefix=/usr \
  29. --sysconfdir=/etc \
  30. --sbindir=/usr/bin \
  31. --libexecdir=/usr/lib/dhcpcd \
  32. --dbdir=/var/lib/dhcpcd \
  33. --rundir=/run
  34. # Build
  35. make
  36. }
  37. check() {
  38. cd "${srcdir}/${pkgname}-${pkgver}"
  39. make test
  40. }
  41. package() {
  42. cd "${srcdir}/${pkgname}-${pkgver}"
  43. make DESTDIR="${pkgdir}" install
  44. # Install License
  45. install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
  46. "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  47. # Set Options in /etc/dhcpcd.conf
  48. echo noipv4ll >> "${pkgdir}/etc/dhcpcd.conf" # Disable ip4vall
  49. # install systemd files
  50. install -Dm644 "${srcdir}/dhcpcd_.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd@.service"
  51. install -Dm644 "${srcdir}/dhcpcd.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd.service" # FS#31543
  52. }