summaryrefslogtreecommitdiff
path: root/libre-testing/iputils
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/iputils')
-rw-r--r--libre-testing/iputils/PKGBUILD50
-rw-r--r--libre-testing/iputils/iputils.install9
-rw-r--r--libre-testing/iputils/tftp.xinetd10
3 files changed, 69 insertions, 0 deletions
diff --git a/libre-testing/iputils/PKGBUILD b/libre-testing/iputils/PKGBUILD
new file mode 100644
index 000000000..d52bd0a07
--- /dev/null
+++ b/libre-testing/iputils/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Aaron Griffin <aaron@archlinux.org>
+
+pkgname=iputils
+# Commit date + git rev-parse --short origin/master
+_rev=f6aac8d
+pkgver=20180629.${_rev}
+pkgrel=2
+pkgdesc="Network monitoring tools, including ping"
+arch=(x86_64 ppc64le)
+license=('GPL')
+url="http://www.skbuff.net/iputils/"
+groups=('base')
+depends=('openssl' 'libcap' 'libidn2')
+optdepends=('xinetd: for tftpd')
+makedepends=('perl-sgmls' 'git' 'docbook-xsl')
+conflicts=('netkit-base' 'arping' 'netkit-tftpd')
+replaces=('netkit-base')
+backup=(etc/xinetd.d/tftp)
+install=${pkgname}.install
+source=("git+https://github.com/iputils/iputils.git#commit=${_rev}"
+ tftp.xinetd)
+sha1sums=('SKIP'
+ 'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd')
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ make USE_NETTLE=no USE_GNUTLS=no CCOPTOPT="$CFLAGS"
+ # fix perl-sgmls
+ sed -i -e 's#sgmlspl#sgmlspl.pl#g' "${srcdir}/${pkgname}/doc/Makefile"
+ make -C doc man
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ install -dm755 "${pkgdir}"/usr/bin
+
+ install -m755 arping clockdiff ping rarpd rdisc tftpd tracepath "${pkgdir}"/usr/bin/
+
+ install -dm755 "${pkgdir}"/usr/share/man/man8
+ install -m644 doc/{arping,clockdiff,ping,rarpd,rdisc,tftpd,tracepath}.8 \
+ "${pkgdir}"/usr/share/man/man8/
+
+ # FS#24768
+ install -dm755 "${pkgdir}"/etc/xinetd.d/
+ install -m644 "${srcdir}"/tftp.xinetd "${pkgdir}"/etc/xinetd.d/tftp
+}
diff --git a/libre-testing/iputils/iputils.install b/libre-testing/iputils/iputils.install
new file mode 100644
index 000000000..1684c2e72
--- /dev/null
+++ b/libre-testing/iputils/iputils.install
@@ -0,0 +1,9 @@
+post_install() {
+ setcap cap_net_raw=ep usr/bin/ping 2>/dev/null || chmod +s usr/bin/ping
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/libre-testing/iputils/tftp.xinetd b/libre-testing/iputils/tftp.xinetd
new file mode 100644
index 000000000..26041a3f9
--- /dev/null
+++ b/libre-testing/iputils/tftp.xinetd
@@ -0,0 +1,10 @@
+service tftp
+{
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = nobody
+ server = /usr/sbin/tftpd
+ server_args = /var/tftpboot
+ disable = yes
+}