summaryrefslogtreecommitdiff
path: root/libre-testing/iputils/PKGBUILD
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca@librepanther.com>2018-10-01 01:51:03 +0200
committerBruno Cichon <ebrasca@librepanther.com>2018-10-01 01:51:03 +0200
commit56f955aca6231693fe797de4793f77ed58ab116e (patch)
tree17daeabce98174f288bab94b47961dc9e9931e66 /libre-testing/iputils/PKGBUILD
parent75ff40baa049bae7e9270d20ef86a88b733006ab (diff)
downloadabslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.gz
abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.bz2
abslibre-56f955aca6231693fe797de4793f77ed58ab116e.zip
Add some base packages for ppc64le
Diffstat (limited to 'libre-testing/iputils/PKGBUILD')
-rw-r--r--libre-testing/iputils/PKGBUILD50
1 files changed, 50 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
+}