[packages/ntop] - ac/am build fixes - rel 3

baggins baggins at pld-linux.org
Sun Jul 8 20:25:19 CEST 2018


commit a8fcc5a6123970b5e9e8dc8f19cffd19da1d94c5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jul 8 20:25:03 2018 +0200

    - ac/am build fixes
    - rel 3

 ac-am.patch | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ntop.spec   | 11 +++-------
 2 files changed, 72 insertions(+), 8 deletions(-)
---
diff --git a/ntop.spec b/ntop.spec
index 466f54f..599f363 100644
--- 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
 
diff --git a/ac-am.patch b/ac-am.patch
new file mode 100644
index 0000000..97a496d
--- /dev/null
+++ b/ac-am.patch
@@ -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 at SO_VERSION_PATCH@:
++.libs/libnetflowPlugin.so at 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 at SO_VERSION_PATCH@ libnetflowPlugin_la-netflowPlugin.o; \
+ 	else \
+@@ -82,7 +82,8 @@
+ 
+ ###############
+ 
+-.libs/librrdPlugin.so at SO_VERSION_PATCH@:
++.libs/librrdPlugin.so at 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 at SO_VERSION_PATCH@ librrdPlugin_la-rrdPlugin.o; \
+ 	else \
+@@ -94,7 +94,8 @@
+ 
+ ###############
+ 
+-.libs/libsflowPlugin.so at SO_VERSION_PATCH@:
++.libs/libsflowPlugin.so at 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 at SO_VERSION_PATCH@ libsflowPlugin_la-sflowPlugin.o; \
+ 	else \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ntop.git/commitdiff/a8fcc5a6123970b5e9e8dc8f19cffd19da1d94c5



More information about the pld-cvs-commit mailing list