[arch-commits] Commit in ntop/repos (5 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Wed Jun 27 13:40:48 UTC 2018
Date: Wednesday, June 27, 2018 @ 13:40:48
Author: bpiotrowski
Revision: 346349
archrelease: copy trunk to community-staging-x86_64
Added:
ntop/repos/community-staging-x86_64/
ntop/repos/community-staging-x86_64/PKGBUILD
(from rev 346348, ntop/trunk/PKGBUILD)
ntop/repos/community-staging-x86_64/ntop-rrdtool-1.6.0.patch
(from rev 346348, ntop/trunk/ntop-rrdtool-1.6.0.patch)
ntop/repos/community-staging-x86_64/ntop.install
(from rev 346348, ntop/trunk/ntop.install)
ntop/repos/community-staging-x86_64/ntop.service
(from rev 346348, ntop/trunk/ntop.service)
--------------------------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++
ntop-rrdtool-1.6.0.patch | 29 ++++++++++++++++++++++++
ntop.install | 8 ++++++
ntop.service | 14 +++++++++++
4 files changed, 104 insertions(+)
Copied: ntop/repos/community-staging-x86_64/PKGBUILD (from rev 346348, ntop/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-06-27 13:40:48 UTC (rev 346349)
@@ -0,0 +1,53 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+
+pkgname=ntop
+pkgver=5.0.1
+pkgrel=12
+pkgdesc='A network traffic probe that shows the network usage.'
+arch=('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' ntop-rrdtool-1.6.0.patch)
+sha512sums=('f52c40e6c00c8d2f46b68078c5f9aef8ed78670f92a0a81f66f2f44c71d41bc4c001b4550f19b71c546f7c07cbbed15e0aa1ee13873ac63a11678bf2b8483f2a'
+ '890213e2f7ba03854a8dc11148da4f906e21d44c76f8aac185aeab2c91f64f0a94e82f9ed8c8b43324a4a3501795f6195535ecca7d14dbbca8b612c1526277a7'
+ '3532acc6e54a1abdefeba42b3adb68cba1a0d1d2d6422e5b33fb9823b48481bb83696f097e65288c5811a6dd65ce20bff6d285d152776156b0690610d4026245')
+
+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
+
+ # Fix build with rrdtool 1.6 (Fedora)
+ patch -p1 -i ../ntop-rrdtool-1.6.0.patch
+}
+
+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-rrdtool-1.6.0.patch (from rev 346348, ntop/trunk/ntop-rrdtool-1.6.0.patch)
===================================================================
--- community-staging-x86_64/ntop-rrdtool-1.6.0.patch (rev 0)
+++ community-staging-x86_64/ntop-rrdtool-1.6.0.patch 2018-06-27 13:40:48 UTC (rev 346349)
@@ -0,0 +1,29 @@
+diff -up ntop-5.0.1/configure.in.rrdtool ntop-5.0.1/configure.in
+--- ntop-5.0.1/configure.in.rrdtool 2016-10-16 20:32:46.194496951 +0200
++++ ntop-5.0.1/configure.in 2016-10-16 20:32:57.392486940 +0200
+@@ -893,19 +893,19 @@ else
+ fi
+ fi
+
+-RRD_LIB="-L${RRD_HOME}/lib -lrrd_th"
++RRD_LIB="-L${RRD_HOME}/lib -lrrd"
+
+-if test -f "$RRD_HOME/lib/librrd_th.so"; then
++if test -f "$RRD_HOME/lib/librrd.so"; then
+ AC_MSG_RESULT(checking for rrdtool... yes)
+ else
+- if test -f "$RRD_HOME/lib/librrd_th.dylib"; then # OSX
++ if test -f "$RRD_HOME/lib/librrd.dylib"; then # OSX
+ AC_MSG_RESULT(checking for rrdtool... yes)
+ else
+- if test -f "$RRD_HOME/lib/librrd_th.a"; then
++ if test -f "$RRD_HOME/lib/librrd.a"; then
+ AC_MSG_RESULT(checking for rrdtool... yes)
+ else
+- AC_CHECK_LIB([rrd_th], [main])
+- if test ".${ac_cv_lib_rrd_th_main}" != ".yes"; then
++ AC_CHECK_LIB([rrd], [main])
++ if test ".${ac_cv_lib_rrd_main}" != ".yes"; then
+ AC_MSG_ERROR(Unable to find RRD at $RRD_HOME: please use --with-rrd-home=DIR);
+ AC_MSG_ERROR(RRD source can be downloaded from http://www.rrdtool.org/);
+ else
Copied: ntop/repos/community-staging-x86_64/ntop.install (from rev 346348, ntop/trunk/ntop.install)
===================================================================
--- community-staging-x86_64/ntop.install (rev 0)
+++ community-staging-x86_64/ntop.install 2018-06-27 13:40:48 UTC (rev 346349)
@@ -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 346348, ntop/trunk/ntop.service)
===================================================================
--- community-staging-x86_64/ntop.service (rev 0)
+++ community-staging-x86_64/ntop.service 2018-06-27 13:40:48 UTC (rev 346349)
@@ -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