Skip to contentSkip to conversation

nmap: move recipe from meta-security to meta-oe

PATCH In review Armin Kuster 2 participants 2 messages Jun 1, 2018 – Jun 2, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nmap: move recipe from meta-security to meta-oe

[V2]
Remove obsolete sed operations
Remove zenmap as python-pygtk was obsoleted in core

---
 .../nmap-redefine-the-python-library-dir.patch     | 37 +++++++++++++++++
 ...shtool-mkdir-with-coreutils-mkdir-command.patch | 48 ++++++++++++++++++++++
 meta-oe/recipes-security/nmap/nmap_7.60.bb         | 46 +++++++++++++++++++++
 3 files changed, 131 insertions(+)
 create mode 100644 meta-oe/recipes-security/nmap/files/nmap-redefine-the-python-library-dir.patch
 create mode 100644 meta-oe/recipes-security/nmap/files/nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch
 create mode 100644 meta-oe/recipes-security/nmap/nmap_7.60.bb
meta-oe/recipes-security/nmap/files/nmap-redefine-the-python-library-dir.patch new file +37 -0
new file mode 100644
index 0000000..356b507
@@ -0,0 +1,37 @@
+[PATCH] redefine the python library install dir
+
+Upstream-Status: Pending
+
+If install-lib is not defined, it is always /usr/lib/, but it
+maybe /usr/lib64 for multilib
+
+Signed-off-by: Roy Li <[email protected]>
+---
+ Makefile.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 1bb062c..cced2fb 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -311,7 +311,7 @@ build-zenmap: $(ZENMAPDIR)/setup.py $(ZENMAPDIR)/zenmapCore/Version.py
+ 
+ install-zenmap: $(ZENMAPDIR)/setup.py
+ 	$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
+-	cd $(ZENMAPDIR) && $(PYTHON) setup.py --quiet install --prefix "$(prefix)" --force $(if $(DESTDIR),--root "$(DESTDIR)")
++	cd $(ZENMAPDIR) && $(PYTHON) setup.py --quiet install --prefix "$(prefix)" --install-lib="${PYTHON_SITEPACKAGES_DIR}" --force $(if $(DESTDIR),--root "$(DESTDIR)")
+ 	$(INSTALL) -c -m 644 docs/zenmap.1 $(DESTDIR)$(mandir)/man1/
+ # Create a symlink from nmapfe to zenmap if nmapfe doesn't exist or is
+ # already a link.
+@@ -328,7 +328,7 @@ build-nping: $(NPINGDIR)/Makefile nbase_build nsock_build netutil_build $(NPINGD
+ 	@cd $(NPINGDIR) && $(MAKE)
+ 
+ install-ndiff:
+-	cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)")
++	cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" --install-lib="${PYTHON_SITEPACKAGES_DIR}" $(if $(DESTDIR),--root "$(DESTDIR)")
+ 
+ NSE_FILES = scripts/script.db scripts/*.nse
+ NSE_LIB_LUA_FILES = nselib/*.lua nselib/*.luadoc
+-- 
+1.9.1
+
meta-oe/recipes-security/nmap/files/nmap-replace-shtool-mkdir-with-coreutils-mkdir-command.patch new file +48 -0

48 lines not on this page · raw message

meta-oe/recipes-security/nmap/nmap_7.60.bb new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Armin Kuster
Sent: den 2 juni 2018 01:45
To: [email protected]; [email protected]
Subject: [oe] [V2][meta-oe][PATCH] nmap: move recipe from meta-security to meta-oe

[V2]

You should never include patch version related info in the commit message. It belongs after the --- below.

Quoted 2 lines

Remove obsolete sed operations
Remove zenmap as python-pygtk was obsoleted in core

Since you are now both moving and modifying the recipe, maybe you should do it as two commits.

Quoted 15 lines
---
 .../nmap-redefine-the-python-library-dir.patch     | 37
+++++++++++++++++
 ...shtool-mkdir-with-coreutils-mkdir-command.patch | 48
++++++++++++++++++++++
 meta-oe/recipes-security/nmap/nmap_7.60.bb         | 46
+++++++++++++++++++++
 3 files changed, 131 insertions(+)
 create mode 100644 meta-oe/recipes-security/nmap/files/nmap-redefine-
the-python-library-dir.patch
 create mode 100644 meta-oe/recipes-security/nmap/files/nmap-replace-
shtool-mkdir-with-coreutils-mkdir-command.patch
 create mode 100644 meta-oe/recipes-security/nmap/nmap_7.60.bb

//Peter