Date: Monday, February 12, 2018 @ 11:59:05
  Author: ronald
Revision: 316719

archrelease: copy trunk to testing-x86_64

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

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

Copied: net-tools/repos/testing-x86_64/PKGBUILD (from rev 316718, 
net-tools/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2018-02-12 11:59:05 UTC (rev 316719)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: judd <jvi...@zeroflux.org>
+
+pkgname=net-tools
+pkgver=1.60.20180212git
+_commit=479bb4a7
+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
+}

Reply via email to