[arch-commits] Commit in ntop/repos (8 files)

Anatol Pomozov anatolik at archlinux.org
Thu May 7 15:46:27 UTC 2015


    Date: Thursday, May 7, 2015 @ 17:46:27
  Author: anatolik
Revision: 132882

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  ntop/repos/community-staging-i686/
  ntop/repos/community-staging-i686/PKGBUILD
    (from rev 132881, ntop/trunk/PKGBUILD)
  ntop/repos/community-staging-i686/ntop.install
    (from rev 132881, ntop/trunk/ntop.install)
  ntop/repos/community-staging-i686/ntop.service
    (from rev 132881, ntop/trunk/ntop.service)
  ntop/repos/community-staging-x86_64/
  ntop/repos/community-staging-x86_64/PKGBUILD
    (from rev 132881, ntop/trunk/PKGBUILD)
  ntop/repos/community-staging-x86_64/ntop.install
    (from rev 132881, ntop/trunk/ntop.install)
  ntop/repos/community-staging-x86_64/ntop.service
    (from rev 132881, ntop/trunk/ntop.service)

---------------------------------------+
 community-staging-i686/PKGBUILD       |   49 ++++++++++++++++++++++++++++++++
 community-staging-i686/ntop.install   |    8 +++++
 community-staging-i686/ntop.service   |   14 +++++++++
 community-staging-x86_64/PKGBUILD     |   49 ++++++++++++++++++++++++++++++++
 community-staging-x86_64/ntop.install |    8 +++++
 community-staging-x86_64/ntop.service |   14 +++++++++
 6 files changed, 142 insertions(+)

Copied: ntop/repos/community-staging-i686/PKGBUILD (from rev 132881, ntop/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,49 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=ntop
+pkgver=5.0.1
+pkgrel=7
+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' 'python2')
+makedepends=('subversion' 'wget' 'ca-certificates')
+options=('!makeflags')
+install='ntop.install'
+source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/Stable/${pkgname}-${pkgver}.tar.gz"
+        'ntop.service')
+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}"
+
+  ./autogen.sh --prefix=/usr --sysconfdir=/usr/share --localstatedir=/var/lib --disable-snmp
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install-recursive
+
+  install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop"
+  install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop/rrd"
+
+  for _f in "${pkgdir}/usr/lib/ntop/plugins/"*.so; do
+    _plug="$(basename ${_f})"
+    ln -sf "../../lib${_plug}" "${_f}"
+  done
+
+  install -Dm0644 "${srcdir}/ntop.service" "${pkgdir}/usr/lib/systemd/system/ntop.service"
+}

Copied: ntop/repos/community-staging-i686/ntop.install (from rev 132881, ntop/trunk/ntop.install)
===================================================================
--- community-staging-i686/ntop.install	                        (rev 0)
+++ community-staging-i686/ntop.install	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,8 @@
+post_install() {
+  /bin/cat <<EOF
+==> Before running the daemon script for the first time, you need to run
+    ntop as the root user to set an administrator password.
+==> If you attempt to run ntop as a daemon without setting a password, a
+    FATAL ERROR message is generated and ntop stops.
+EOF
+}

Copied: ntop/repos/community-staging-i686/ntop.service (from rev 132881, ntop/trunk/ntop.service)
===================================================================
--- community-staging-i686/ntop.service	                        (rev 0)
+++ community-staging-i686/ntop.service	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,14 @@
+[Unit]
+Description=A network traffic probe similar to the UNIX top command
+Requires=network.target
+ConditionPathExists=/var/lib/ntop/ntop_pw.db
+After=syslog.target network.target
+
+[Service]
+Environment=LANG=C
+ExecStart=/usr/bin/ntop -i eth0 -w 3000
+Type=simple
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target

Copied: ntop/repos/community-staging-x86_64/PKGBUILD (from rev 132881, ntop/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,49 @@
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=ntop
+pkgver=5.0.1
+pkgrel=7
+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' 'python2')
+makedepends=('subversion' 'wget' 'ca-certificates')
+options=('!makeflags')
+install='ntop.install'
+source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/Stable/${pkgname}-${pkgver}.tar.gz"
+        'ntop.service')
+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}"
+
+  ./autogen.sh --prefix=/usr --sysconfdir=/usr/share --localstatedir=/var/lib --disable-snmp
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make DESTDIR="${pkgdir}" install-recursive
+
+  install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop"
+  install -dm0755 -o nobody -g nobody "${pkgdir}/var/lib/ntop/rrd"
+
+  for _f in "${pkgdir}/usr/lib/ntop/plugins/"*.so; do
+    _plug="$(basename ${_f})"
+    ln -sf "../../lib${_plug}" "${_f}"
+  done
+
+  install -Dm0644 "${srcdir}/ntop.service" "${pkgdir}/usr/lib/systemd/system/ntop.service"
+}

Copied: ntop/repos/community-staging-x86_64/ntop.install (from rev 132881, ntop/trunk/ntop.install)
===================================================================
--- community-staging-x86_64/ntop.install	                        (rev 0)
+++ community-staging-x86_64/ntop.install	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,8 @@
+post_install() {
+  /bin/cat <<EOF
+==> Before running the daemon script for the first time, you need to run
+    ntop as the root user to set an administrator password.
+==> If you attempt to run ntop as a daemon without setting a password, a
+    FATAL ERROR message is generated and ntop stops.
+EOF
+}

Copied: ntop/repos/community-staging-x86_64/ntop.service (from rev 132881, ntop/trunk/ntop.service)
===================================================================
--- community-staging-x86_64/ntop.service	                        (rev 0)
+++ community-staging-x86_64/ntop.service	2015-05-07 15:46:27 UTC (rev 132882)
@@ -0,0 +1,14 @@
+[Unit]
+Description=A network traffic probe similar to the UNIX top command
+Requires=network.target
+ConditionPathExists=/var/lib/ntop/ntop_pw.db
+After=syslog.target network.target
+
+[Service]
+Environment=LANG=C
+ExecStart=/usr/bin/ntop -i eth0 -w 3000
+Type=simple
+StandardError=syslog
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list