From 56f955aca6231693fe797de4793f77ed58ab116e Mon Sep 17 00:00:00 2001 From: Bruno Cichon Date: Mon, 1 Oct 2018 01:51:03 +0200 Subject: Add some base packages for ppc64le --- libre-testing/iputils/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libre-testing/iputils/PKGBUILD (limited to 'libre-testing/iputils/PKGBUILD') 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 +# Maintainer: Tobias Powalowski +# Contributor: Aaron Griffin + +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 +} -- cgit v1.2.3