]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
nmap: Migrate to python3
authorAdolf Belka <adolf.belka@ipfire.org>
Sat, 15 May 2021 21:50:03 +0000 (23:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 May 2021 12:21:16 +0000 (12:21 +0000)
- Added PYTHON=python3 prior to configure. This then builds nmap with
   python3.
- ndiff is written as python2 only and currently no patches to make it
   work wih python3 have been accepted by the nmap team. It looks like ndiff
   will stay as it is for some time so ndiff will be removed from the nmap
   package install.
- Added --without-ndiff to configure so nmap is built without ndiff
- Updated rootfile

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/nmap
lfs/nmap

index 028408ca093bc1037dc380676021b1526a79c621..7c6b0ee83e1bd1b1297639ded6e9d7c911ab8c5b 100644 (file)
@@ -1,9 +1,5 @@
-usr/bin/ndiff
 usr/bin/nmap
 usr/bin/nping
-#usr/bin/uninstall_ndiff
-usr/lib/python2.7/site-packages/ndiff.py
-#usr/lib/python2.7/site-packages/ndiff.pyc
 #usr/share/man/de/man1/nmap.1
 #usr/share/man/es/man1/nmap.1
 #usr/share/man/fr/man1/nmap.1
@@ -15,7 +11,6 @@ usr/lib/python2.7/site-packages/ndiff.py
 #usr/share/man/hu/man1/nmap.1
 #usr/share/man/it/man1/nmap.1
 #usr/share/man/ja/man1/nmap.1
-#usr/share/man/man1/ndiff.1
 #usr/share/man/man1/nmap.1
 #usr/share/man/man1/nping.1
 #usr/share/man/pl
index d0d4d3428777197f39e45d25d88f6bfbb6146830..bd2ea9b03fa6e018cff2817c794ccd04d2c5279d 100644 (file)
--- a/lfs/nmap
+++ b/lfs/nmap
@@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = nmap
-PAK_VER    = 12
+PAK_VER    = 13
 
 DEPS       =
 
@@ -78,11 +78,13 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
        $(UPDATE_AUTOMAKE)
-       cd $(DIR_APP) && ./configure \
-               --prefix=/usr \
-               --without-nmapfe \
-               --without-zenmap \
-               --without-ncat
+       cd $(DIR_APP) && PYTHON=python3         \
+                       ./configure             \
+                       --prefix=/usr           \
+                       --without-nmapfe        \
+                       --without-zenmap        \
+                       --without-ncat          \
+                       --without-ndiff
        cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)