[arch-commits] Commit in ntop/trunk (PKGBUILD)

Balló György bgyorgy at nymeria.archlinux.org
Tue Sep 10 01:53:00 UTC 2013


    Date: Tuesday, September 10, 2013 @ 03:52:59
  Author: bgyorgy
Revision: 96995

upgpkg: ntop 5.0.1-4

Enable python support (FS#31266)

Modified:
  ntop/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-09-09 23:32:41 UTC (rev 96994)
+++ PKGBUILD	2013-09-10 01:52:59 UTC (rev 96995)
@@ -4,12 +4,12 @@
 
 pkgname=ntop
 pkgver=5.0.1
-pkgrel=3
+pkgrel=4
 pkgdesc='A network traffic probe that shows the network usage.'
 arch=('i686' 'x86_64')
 url='http://www.ntop.org/'
 license=('GPL')
-depends=('libevent' 'libpcap' 'gd' 'glibc' 'libxml2' 'openssl' 'rrdtool' 'pcre' 'geoip' 'lua')
+depends=('libevent' 'libpcap' 'gd' 'glibc' 'libxml2' 'openssl' 'rrdtool' 'pcre' 'geoip' 'lua' 'python2')
 makedepends=('subversion' 'wget' 'ca-certificates')
 options=('!libtool' '!makeflags')
 install='ntop.install'
@@ -18,6 +18,14 @@
 md5sums=('01710b6925a8a5ffe1a41b8b512ebd69'
          '0e149d20f881600e8387d850ac268483')
 
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # Python2 fix
+  find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
+  sed -i 's/python-config/python2-config/' configure.in
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 




More information about the arch-commits mailing list