PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
  2. # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  3. # Contributor: Aaron Griffin <aaron@archlinux.org>
  4. pkgname=iputils
  5. # Commit date + git rev-parse --short origin/master
  6. _rev=f6aac8d
  7. pkgver=20180629.${_rev}
  8. pkgrel=2
  9. pkgdesc="Network monitoring tools, including ping"
  10. arch=(x86_64 ppc64le)
  11. license=('GPL')
  12. url="http://www.skbuff.net/iputils/"
  13. groups=('base')
  14. depends=('openssl' 'libcap' 'libidn2')
  15. optdepends=('xinetd: for tftpd')
  16. makedepends=('perl-sgmls' 'git' 'docbook-xsl')
  17. conflicts=('netkit-base' 'arping' 'netkit-tftpd')
  18. replaces=('netkit-base')
  19. backup=(etc/xinetd.d/tftp)
  20. install=${pkgname}.install
  21. source=("git+https://github.com/iputils/iputils.git#commit=${_rev}"
  22. tftp.xinetd)
  23. sha1sums=('SKIP'
  24. 'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd')
  25. build() {
  26. cd "${srcdir}/${pkgname}"
  27. make USE_NETTLE=no USE_GNUTLS=no CCOPTOPT="$CFLAGS"
  28. # fix perl-sgmls
  29. sed -i -e 's#sgmlspl#sgmlspl.pl#g' "${srcdir}/${pkgname}/doc/Makefile"
  30. make -C doc man
  31. }
  32. package() {
  33. cd "${srcdir}/${pkgname}"
  34. install -dm755 "${pkgdir}"/usr/bin
  35. install -m755 arping clockdiff ping rarpd rdisc tftpd tracepath "${pkgdir}"/usr/bin/
  36. install -dm755 "${pkgdir}"/usr/share/man/man8
  37. install -m644 doc/{arping,clockdiff,ping,rarpd,rdisc,tftpd,tracepath}.8 \
  38. "${pkgdir}"/usr/share/man/man8/
  39. # FS#24768
  40. install -dm755 "${pkgdir}"/etc/xinetd.d/
  41. install -m644 "${srcdir}"/tftp.xinetd "${pkgdir}"/etc/xinetd.d/tftp
  42. }