pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/ntopng



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri May 14 12:57:27 UTC 2021

Modified Files:
        pkgsrc/net/ntopng: Makefile distinfo
Added Files:
        pkgsrc/net/ntopng/patches: patch-Makefile.in

Log Message:
ntopng: Don't use bundled copy of Lua


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 pkgsrc/net/ntopng/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/ntopng/distinfo
cvs rdiff -u -r0 -r1.6 pkgsrc/net/ntopng/patches/patch-Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/ntopng/Makefile
diff -u pkgsrc/net/ntopng/Makefile:1.50 pkgsrc/net/ntopng/Makefile:1.51
--- pkgsrc/net/ntopng/Makefile:1.50     Fri May 14 12:29:44 2021
+++ pkgsrc/net/ntopng/Makefile  Fri May 14 12:57:27 2021
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.50 2021/05/14 12:29:44 nia Exp $
+# $NetBSD: Makefile,v 1.51 2021/05/14 12:57:27 nia Exp $
 
 DISTNAME=      ntopng-4.0
-PKGREVISION=   5
+PKGREVISION=   6
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=ntop/}
 
@@ -22,6 +22,8 @@ RCD_SCRIPTS+=         ntopng
 
 CXXFLAGS+=             -std=c++11  # va_copy()
 
+MAKE_FLAGS+=           LUA_LIB=-llua5.3
+
 # Portable types
 CFLAGS.SunOS+=         -Du_int8_t=uint8_t
 CFLAGS.SunOS+=         -Du_int16_t=uint16_t
@@ -51,7 +53,7 @@ post-build:
 .include "../../databases/rrdtool/buildlink3.mk"
 .include "../../databases/sqlite3/buildlink3.mk"
 .include "../../geography/libmaxminddb/buildlink3.mk"
-.include "../../lang/lua/buildlink3.mk"
+.include "../../lang/lua53/buildlink3.mk"
 .include "../../net/GeoIP/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
 .include "../../net/ndpi/buildlink3.mk"

Index: pkgsrc/net/ntopng/distinfo
diff -u pkgsrc/net/ntopng/distinfo:1.7 pkgsrc/net/ntopng/distinfo:1.8
--- pkgsrc/net/ntopng/distinfo:1.7      Mon May 25 20:26:51 2020
+++ pkgsrc/net/ntopng/distinfo  Fri May 14 12:57:27 2021
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.7 2020/05/25 20:26:51 adam Exp $
+$NetBSD: distinfo,v 1.8 2021/05/14 12:57:27 nia Exp $
 
 SHA1 (ntopng-4.0.tar.gz) = cf5f61e01370bcf99a93d54c4c0caa22cc5acad0
 RMD160 (ntopng-4.0.tar.gz) = 9549cc625a8f51e2ad503b5c81297ae304271112
 SHA512 (ntopng-4.0.tar.gz) = a278cc5f304e3040b31c691286650a54d61b5587033724c4513dd7372168477d5b0b471a1d2a5c5682034464b022b88e971567a38d836216431ea77bf1ed90c9
 Size (ntopng-4.0.tar.gz) = 43239175 bytes
+SHA1 (patch-Makefile.in) = 39bd64f682f85451cd3f4945c8218af596f591f9
 SHA1 (patch-configure.seed) = d7c4d13245a511d811dbc672595584b25b18f426
 SHA1 (patch-include_Redis.h) = ad7b03b9ebfb8b9786cca3f8c49ea24dc559ba12
 SHA1 (patch-include_ntop__includes.h) = 2bf588dba941f25b71381c7848b237d964d77f31

Added files:

Index: pkgsrc/net/ntopng/patches/patch-Makefile.in
diff -u /dev/null pkgsrc/net/ntopng/patches/patch-Makefile.in:1.6
--- /dev/null   Fri May 14 12:57:27 2021
+++ pkgsrc/net/ntopng/patches/patch-Makefile.in Fri May 14 12:57:27 2021
@@ -0,0 +1,45 @@
+$NetBSD: patch-Makefile.in,v 1.6 2021/05/14 12:57:27 nia Exp $
+
+Don't build an internal copy of Lua...
+
+--- Makefile.in.orig   2020-03-27 16:51:24.000000000 +0000
++++ Makefile.in
+@@ -29,19 +29,6 @@ MONGOOSE_HOME=${PWD}/third-party/mongoos
+ MONGOOSE_INC=-I$(MONGOOSE_HOME)
+ ######
+ 
+-LUA_PLATFORM=generic
+-
+-ifeq ($(OS),Linux)
+-      LUA_PLATFORM=linux
+-else ifeq ($(OS),Darwin)
+-      LUA_PLATFORM=macosx
+-else ifeq ($(OS), $(filter $(OS), FreeBSD))
+-      LUA_PLATFORM=freebsd
+-endif
+-
+-LUA_HOME=${PWD}/third-party/lua-5.3.5
+-LUA_INC=-I$(LUA_HOME)/src
+-LUA_LIB=$(LUA_HOME)/src/liblua.a
+ 
+ ######
+ LIBRRDTOOL_HOME=${PWD}/third-party/rrdtool-1.4.8
+@@ -121,8 +108,6 @@ RPM_PKG = $(TARGET)-$(NTOPNG_VERSION)-@R
+ RPM_DATA_PKG = $(TARGET)-data-$(NTOPNG_VERSION)-@REVISION@.noarch.rpm
+ ######
+ 
+-LIB_TARGETS = $(LUA_LIB)
+-
+ ifneq ($(HAS_ZEROMQ), 0)
+ LIB_TARGETS += $(ZEROMQ_LIB)
+ endif
+@@ -162,9 +147,6 @@ test_alert_engine: $(OBJECTS_NO_MAIN) $(
+       $(MAKE) CPPFLAGS="${CPPFLAGS} -DTEST_CHECK_ENGINE" src/AlertCheckLuaEngine.o
+       $(GPP) $(OBJECTS_NO_MAIN) -Wall $(NLIBS) -o $@
+ 
+-$(LUA_LIB):
+-      cd $(LUA_HOME); @GMAKE@ $(LUA_PLATFORM)
+-
+ $(ZEROMQ_LIB):
+       cd $(ZEROMQ_HOME); ./configure --without-documentation --without-libsodium; @GMAKE@
+ 



Home | Main Index | Thread Index | Old Index