]> git.pld-linux.org Git - packages/ntop.git/commitdiff
- ac/am build fixes auto/th/ntop-5.0.1-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 8 Jul 2018 18:25:03 +0000 (20:25 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 8 Jul 2018 18:25:03 +0000 (20:25 +0200)
- rel 3

ac-am.patch [new file with mode: 0644]
ntop.spec

diff --git a/ac-am.patch b/ac-am.patch
new file mode 100644 (file)
index 0000000..97a496d
--- /dev/null
@@ -0,0 +1,69 @@
+--- ntop-5.0.1/configure.in~   2018-07-08 20:00:49.000000000 +0200
++++ ntop-5.0.1/configure.in    2018-07-08 20:01:39.699063382 +0200
+@@ -56,7 +56,7 @@
+ dnl> generate the config header
+ dnl>
+ umask 002
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ HAS_ERROR=
+ HAS_WARNING=
+@@ -133,7 +133,7 @@
+ # Set constants and defaults
+ SO_VERSION_PATCH=
+-MAKE_SHARED_LIBRARY_PARM="-shared -flat_namespace"
++MAKE_SHARED_LIBRARY_PARM="-shared"
+ AS=
+ CCLD=
+@@ -324,7 +324,7 @@
+ echo
+ echo "Checking C compiler program and features..."
+ echo
+-AM_PROG_CC_STDC
++AC_PROG_CC
+ if test ".${ac_cv_prog_cc_stdc}" = ".no"; then
+     echo
+     echo "*******************************************************************"
+@@ -1769,7 +1769,6 @@
+ exit 1
+ fi
+-cp "3rd_party/oui.txt.gz" .
+ cp "3rd_party/specialMAC.txt.gz" .
+ if test -d ./configureextra; then
+--- ntop-5.0.1/plugins/Makefile.am.orig        2012-02-02 12:17:12.000000000 +0100
++++ ntop-5.0.1/plugins/Makefile.am     2018-07-08 20:14:16.472513676 +0200
+@@ -70,7 +70,8 @@
+ #
+-.libs/libnetflowPlugin.so@SO_VERSION_PATCH@:
++.libs/libnetflowPlugin.so@SO_VERSION_PATCH@: netflowPlugin.o
++      mkdir -p .libs
+       @if test -f libnetflowPlugin_la-netflowPlugin.o; then \
+       $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libnetflowPlugin.so@SO_VERSION_PATCH@ libnetflowPlugin_la-netflowPlugin.o; \
+       else \
+@@ -82,7 +82,8 @@
+ ###############
+-.libs/librrdPlugin.so@SO_VERSION_PATCH@:
++.libs/librrdPlugin.so@SO_VERSION_PATCH@: rrdPlugin.o
++      mkdir -p .libs
+       @if test -f librrdPlugin_la-rrdPlugin.o; then \
+       $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/librrdPlugin.so@SO_VERSION_PATCH@ librrdPlugin_la-rrdPlugin.o; \
+       else \
+@@ -94,7 +94,8 @@
+ ###############
+-.libs/libsflowPlugin.so@SO_VERSION_PATCH@:
++.libs/libsflowPlugin.so@SO_VERSION_PATCH@: sflowPlugin.o
++      mkdir -p .libs
+       @if test -f libsflowPlugin_la-sflowPlugin.o; then \
+       $(CC) @MAKE_SHARED_LIBRARY_PARM@ -o .libs/libsflowPlugin.so@SO_VERSION_PATCH@ libsflowPlugin_la-sflowPlugin.o; \
+       else \
index 466f54fbcb79ba8dedaae3d740a825aa8545e25b..599f3639426b6e26d68a69f7c289544337c2d518 100644 (file)
--- a/ntop.spec
+++ b/ntop.spec
@@ -15,7 +15,7 @@ Summary:      Network monitoring tool
 Summary(pl.UTF-8):     Narzędzie do monitorowania sieci
 Name:          ntop
 Version:       5.0.1
-Release:       2
+Release:       3
 License:       GPL v3+
 Group:         Networking
 Source0:       http://downloads.sourceforge.net/ntop/%{name}-%{version}.tar.gz
@@ -33,6 +33,7 @@ Patch5:               %{name}-running-user.patch
 Patch6:                ieee-oui.patch
 Patch7:                %{name}-install.patch
 Patch8:                %{name}-rrdtool-1.6.0.patch
+Patch9:                ac-am.patch
 URL:           http://www.ntop.org/
 BuildRequires: GeoIP-devel
 BuildRequires: autoconf
@@ -99,13 +100,7 @@ robi to popularna uniksowa komenda top.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
-
-sed -i -e '
-       s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/
-       s/AM_PROG_CC_STDC/AC_PROG_CC/
-
-       /3rd_party\/oui.txt.gz/d
-' configure.in
+%patch9 -p1
 
 gzip -9c %{SOURCE3} >etter.finger.os.gz
 
This page took 0.061446 seconds and 4 git commands to generate.