PKGBUILD 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Maintainer: Eric Bélanger <eric@archlinux.org>
  2. pkgname=inetutils
  3. pkgver=1.9.4
  4. pkgrel=5
  5. pkgdesc="A collection of common network programs"
  6. arch=(x86_64 ppc64le)
  7. url="http://www.gnu.org/software/inetutils/"
  8. license=('GPL3')
  9. groups=('base')
  10. depends=('pam' 'libcap')
  11. makedepends=('help2man')
  12. backup=('etc/xinetd.d/telnet' 'etc/xinetd.d/talk'
  13. 'etc/xinetd.d/rlogin' 'etc/xinetd.d/rsh'
  14. 'etc/pam.d/rlogin' 'etc/pam.d/rsh')
  15. options=('!emptydirs')
  16. install=inetutils.install
  17. source=("https://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.xz"{,.sig}
  18. 'ftpd.service' 'rlogin.pam' 'rlogin@.service' 'rlogin.socket' 'rlogin.xinetd'
  19. 'rsh.pam' 'rsh@.service' 'rsh.socket' 'rsh.xinetd' 'talk.service' 'talk.socket'
  20. 'talk.xinetd' 'telnet@.service' 'telnet.socket' 'telnet.xinetd')
  21. sha1sums=('5e515cc9da142cb73bb1beda137b4c2dcf2b528c'
  22. 'SKIP'
  23. '026181500b71f0c09ef5c262450be718651e5658'
  24. '387b371cbaa3611b95d30f806c0dd08b621a584a'
  25. '6f9a304391610a17b8ae3ad35b742c78c86aee16'
  26. '0455126fa18d2a9422469d79b9e73dd928b15652'
  27. 'd9b8f8aab094ecb779d0f16f21b4683ab327516f'
  28. '556b5372cbab8794e931e110b896fa8a61628bb1'
  29. '828da7bce49ffc4e9645288759b275a98a2fbc40'
  30. '7071da32d42a133ead039197ed891b518bb0f773'
  31. '26763ae31b8a5be256666a0ba55746941d75d6ee'
  32. '4486c966d28736897bce1280d85d139bd10a5689'
  33. 'd1813d42c5c9d2c60f03ebe33961de357a4b8b43'
  34. 'b15ab4faa9d97652e182c98c1e3a3b3cbbf6383c'
  35. '0917dc6b5a80d914bf550065b1733b7da2c776f3'
  36. 'a7ac7bbe917ff80fd8cd4357fbc62fab50595c34'
  37. '2b2dd71eb3233e5090f4c2df8abe9b4924d323f3')
  38. validpgpkeys=('4FBD67621082C4C502448E3B180551BAD95A3C35')
  39. build() {
  40. cd ${pkgname}-${pkgver}
  41. ./configure --prefix=/usr --libexec=/usr/bin \
  42. --localstatedir=/var --sysconfdir=/etc \
  43. --without-wrap --with-pam \
  44. --enable-ftp --enable-ftpd \
  45. --enable-telnet --enable-telnetd \
  46. --enable-talk --enable-talkd \
  47. --enable-rlogin --enable-rlogind \
  48. --enable-rsh --enable-rshd \
  49. --enable-rcp --enable-hostname --enable-dnsdomainname \
  50. --disable-rexec --disable-rexecd \
  51. --disable-tftp --disable-tftpd \
  52. --disable-ping --disable-ping6 \
  53. --disable-logger --disable-syslogd \
  54. --disable-inetd --disable-whois \
  55. --disable-uucpd --disable-ifconfig --disable-traceroute
  56. make
  57. }
  58. check() {
  59. cd ${pkgname}-${pkgver}
  60. make check
  61. }
  62. package() {
  63. cd ${pkgname}-${pkgver}
  64. make DESTDIR="${pkgdir}" install
  65. chmod -s "${pkgdir}"/usr/bin/{rcp,rlogin,rsh}
  66. install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet"
  67. install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk"
  68. install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin"
  69. install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh"
  70. install -D -m644 "${srcdir}/rlogin.pam" "${pkgdir}/etc/pam.d/rlogin"
  71. install -D -m644 "${srcdir}/rsh.pam" "${pkgdir}/etc/pam.d/rsh"
  72. install -D -m644 "${srcdir}/ftpd.service" "${pkgdir}/usr/lib/systemd/system/ftpd.service"
  73. install -D -m644 "${srcdir}/rlogin@.service" "${pkgdir}/usr/lib/systemd/system/rlogin@.service"
  74. install -D -m644 "${srcdir}/rlogin.socket" "${pkgdir}/usr/lib/systemd/system/rlogin.socket"
  75. install -D -m644 "${srcdir}/rsh@.service" "${pkgdir}/usr/lib/systemd/system/rsh@.service"
  76. install -D -m644 "${srcdir}/rsh.socket" "${pkgdir}/usr/lib/systemd/system/rsh.socket"
  77. install -D -m644 "${srcdir}/talk.service" "${pkgdir}/usr/lib/systemd/system/talk.service"
  78. install -D -m644 "${srcdir}/talk.socket" "${pkgdir}/usr/lib/systemd/system/talk.socket"
  79. install -D -m644 "${srcdir}/telnet@.service" "${pkgdir}/usr/lib/systemd/system/telnet@.service"
  80. install -D -m644 "${srcdir}/telnet.socket" "${pkgdir}/usr/lib/systemd/system/telnet.socket"
  81. }