[arch-commits] Commit in net-tools/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Ronald van Haren ronald at archlinux.org
Thu May 16 19:46:25 UTC 2019


    Date: Thursday, May 16, 2019 @ 19:46:21
  Author: ronald
Revision: 353495

archrelease: copy trunk to testing-x86_64

Added:
  net-tools/repos/testing-x86_64/
  net-tools/repos/testing-x86_64/PKGBUILD
    (from rev 353494, net-tools/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: net-tools/repos/testing-x86_64/PKGBUILD (from rev 353494, net-tools/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-05-16 19:46:21 UTC (rev 353495)
@@ -0,0 +1,41 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=net-tools
+pkgver=1.60.20181103git
+_commit=0eebece8c9
+pkgrel=1
+pkgdesc="Configuration tools for Linux networking"
+arch=('x86_64')
+license=('GPL2')
+url="http://net-tools.sourceforge.net/"
+depends=('glibc')
+makedepends=('git')
+# use git snapshot currently prefered over release
+source=("net-tools::git://git.code.sf.net/p/net-tools/code#commit=${_commit}")
+options=(!makeflags)
+sha1sums=('SKIP')
+
+
+prepare() {
+  sed -i "s#/sbin#/bin#" ${srcdir}/${pkgname}/Makefile
+  sed -i "s#/usr##" ${srcdir}/${pkgname}/man/Makefile
+}
+
+build() {
+  cd ${srcdir}/${pkgname}
+  yes "" | make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}
+  make DESTDIR=${pkgdir}/usr update
+
+  # the following is provided by yp-tools
+  rm "${pkgdir}"/usr/bin/{nis,yp}domainname
+  rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1
+
+  # hostname is provided by inetutils
+  rm "${pkgdir}"/usr/bin/{hostname,dnsdomainname,domainname}
+  rm -rf "${pkgdir}"/usr/share/man/man1
+}



More information about the arch-commits mailing list