Date: Friday, November 9, 2018 @ 22:15:34
  Author: felixonmars
Revision: 338668

archrelease: copy trunk to staging-x86_64

Added:
  mtr/repos/staging-x86_64/
  mtr/repos/staging-x86_64/PKGBUILD
    (from rev 338666, mtr/trunk/PKGBUILD)
  mtr/repos/staging-x86_64/mtr.install
    (from rev 338666, mtr/trunk/mtr.install)

-------------+
 PKGBUILD    |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mtr.install |    9 +++++++++
 2 files changed, 63 insertions(+)

Copied: mtr/repos/staging-x86_64/PKGBUILD (from rev 338666, mtr/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2018-11-09 22:15:34 UTC (rev 338668)
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Ionut Biru <ib...@archlinux.org>
+# Contributor: Douglas Soares de Andrade <doug...@archlinux.org>
+
+pkgbase=mtr
+pkgname=('mtr' 'mtr-gtk')
+pkgver=0.92
+pkgrel=2
+pkgdesc='Combines the functionality of traceroute and ping into one tool'
+url='http://www.bitwizard.nl/mtr/'
+arch=('x86_64')
+license=('GPL2')
+makedepends=('ncurses' 'gtk2' 'libcap')
+install=mtr.install
+source=(${pkgbase}-${pkgver}.tar.gz::ftp://ftp.bitwizard.nl/mtr/${pkgbase}-${pkgver}.tar.gz)
+sha512sums=('d362a418b6c17fd2d08da1ed9e033fa3330e4c0497e1bb0644f6193d23f4e20dd8ee181942c2a20ec0025a8b96c521394a21be5a1d9036f8a0a8c4cddfbe381f')
+
+prepare() {
+  (cd ${pkgbase}-${pkgver}
+    autoreconf -fiv
+  )
+  cp -ra ${pkgbase}-${pkgver}{,-cli}
+}
+
+build() {
+  (cd ${pkgbase}-${pkgver}-cli
+    ./configure --prefix=/usr --without-gtk --sbindir=/usr/bin
+    make
+  )
+  (cd ${pkgbase}-${pkgver}
+    ./configure --prefix=/usr --sbindir=/usr/bin
+    make
+  )
+}
+
+package_mtr() {
+  pkgdesc='Combines the functionality of traceroute and ping into one tool 
(CLI version)'
+  depends=('ncurses' 'libcap')
+  optdepends=('bash-completion: bash completion support')
+  cd ${pkgbase}-${pkgver}-cli
+  make DESTDIR="${pkgdir}" install
+}
+
+package_mtr-gtk() {
+  pkgdesc='Combines the functionality of traceroute and ping into one tool 
(GTK version)'
+  depends=('ncurses' 'libcap' 'gtk2')
+  optdepends=('bash-completion: bash completion support')
+  conflicts=('mtr')
+  provides=("mtr=${pkgver}")
+  cd ${pkgbase}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:

Copied: mtr/repos/staging-x86_64/mtr.install (from rev 338666, 
mtr/trunk/mtr.install)
===================================================================
--- staging-x86_64/mtr.install                          (rev 0)
+++ staging-x86_64/mtr.install  2018-11-09 22:15:34 UTC (rev 338668)
@@ -0,0 +1,9 @@
+post_install() {
+  setcap cap_net_bind_service,cap_net_raw+ep usr/bin/mtr-packet
+}
+
+post_upgrade() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to