PKGBUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Maintainer: Christian Hesse <mail@eworm.de>
  2. # Maintainer: Ronald van Haren <ronald.archlinux.org>
  3. # Contributor: Judd Vinet <jvinet@zeroflux.org>
  4. pkgname=iproute2
  5. pkgver=4.18.0
  6. pkgrel=1
  7. pkgdesc='IP Routing Utilities'
  8. arch=(x86_64 ppc64le)
  9. license=('GPL2')
  10. url='https://git.kernel.org/pub/scm/network/iproute2/iproute2.git'
  11. depends=('glibc' 'iptables' 'libelf')
  12. optdepends=('linux-atm: ATM support')
  13. groups=('base')
  14. provides=('iproute')
  15. backup=('etc/iproute2/ematch_map'
  16. 'etc/iproute2/rt_dsfield'
  17. 'etc/iproute2/rt_protos'
  18. 'etc/iproute2/rt_realms'
  19. 'etc/iproute2/rt_scopes'
  20. 'etc/iproute2/rt_tables')
  21. makedepends=('linux-atm')
  22. options=('staticlibs')
  23. validpgpkeys=('9F6FC345B05BE7E766B83C8F80A77F6095CDE47E') # Stephen Hemminger
  24. source=("https://www.kernel.org/pub/linux/utils/net/${pkgname}/${pkgname}-${pkgver}.tar."{xz,sign}
  25. '0001-make-iproute2-fhs-compliant.patch')
  26. sha256sums=('a9e6c70c95f513871c5e1f4e452c04fcb3c4d8a05be651bd794cd994a52daa45'
  27. 'SKIP'
  28. 'f60fefe4c17d3b768824bb50ae6416292bcebba06d73452e23f4147b46b827d3')
  29. prepare() {
  30. cd "${srcdir}/${pkgname}-${pkgver}"
  31. # set correct fhs structure
  32. patch -Np1 -i "${srcdir}/0001-make-iproute2-fhs-compliant.patch"
  33. # do not treat warnings as errors
  34. sed -i 's/-Werror//' Makefile
  35. }
  36. build() {
  37. cd "${srcdir}/${pkgname}-${pkgver}"
  38. ./configure
  39. make
  40. }
  41. package() {
  42. cd "${srcdir}/${pkgname}-${pkgver}"
  43. make DESTDIR="${pkgdir}" SBINDIR="/usr/bin" install
  44. # libnetlink isn't installed, install it FS#19385
  45. install -Dm0644 include/libnetlink.h "${pkgdir}/usr/include/libnetlink.h"
  46. install -Dm0644 lib/libnetlink.a "${pkgdir}/usr/lib/libnetlink.a"
  47. }