diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2015-03-15 15:52:15 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2015-03-15 15:52:15 +0200 |
commit | e8a390d049832e3517680210c5517b2c678c1901 (patch) | |
tree | 46533a7ffac1210f7b913e2ab50b217a7be28600 /net-analyzer | |
parent | 36840b392419f32a568cbd97b5f7477bb15e685c (diff) |
Keeping zenmap
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/zenmap/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/zenmap/files/nmap-5.21-python.patch | 21 | ||||
-rw-r--r-- | net-analyzer/zenmap/files/nmap-logo-64.png | bin | 0 -> 3289 bytes | |||
-rw-r--r-- | net-analyzer/zenmap/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/zenmap/zenmap-6.01.ebuild | 65 | ||||
-rw-r--r-- | net-analyzer/zenmap/zenmap-6.25.ebuild | 120 |
6 files changed, 217 insertions, 0 deletions
diff --git a/net-analyzer/zenmap/Manifest b/net-analyzer/zenmap/Manifest new file mode 100644 index 00000000..c351fea1 --- /dev/null +++ b/net-analyzer/zenmap/Manifest @@ -0,0 +1,3 @@ +DIST nmap-6.01.tar.bz2 21640157 SHA256 77f6635b677d28b546cbef97e4ead6c2d4a5aebcaa108fe3a3c135db6448617a SHA512 0b44542a0e33629d077c64129bac7e00b05b4e65a83b181b84fb5460a7da083bb29be00777a8d92c6f6b6fb0c009cebc330c02c7259166e8cea4109cdae50fc9 WHIRLPOOL 24b125997c8ae5b7a514a6bcc5780b9a8aec8516e19616b0890fd34c8b7b182d04142e012c981a0e125468a4ee49ea7b13416f79031ede346846e59b08919dfd +DIST nmap-6.25.tar.bz2 7668639 SHA256 3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5 SHA512 6ec4d8f50621c86a3d0b6a22cf179a1874bf109736c5a79d6b29faec6859e165f7c0e6c3f8c284de8f384a8a607f071e2176c900b22df3ba0f158d36b081870d WHIRLPOOL b6cd57988827549762020e73ff263f5014d6c748291225d8c9792705da39188436004400b05a07414b4cc4b9ea56c75ebf7c753bbe11a5456b008041e72ebbc4 +DIST nmap-logo-64.png 3289 SHA256 4c72ff1eeffeeaa1039b251d9f2d675936e65db686fe3b57a35c2183ce67a8aa SHA512 fb102d12aaeebc8a97543ecd653a3606e86996ad679bc26d6e6e274ad05ec3e9f92521289d1a24153c521b699e8c0cfa65d8856bb49af53ee4837268bbc6b5d3 WHIRLPOOL 6093aadcb9880587e17d39d45fcbe57bb62777f220655e6ed5b5f900ce49cb8c5a53e24d7db0de6f8909eb0f8981f7565e6ae9b9bf9283a4ccccb0526eab5313 diff --git a/net-analyzer/zenmap/files/nmap-5.21-python.patch b/net-analyzer/zenmap/files/nmap-5.21-python.patch new file mode 100644 index 00000000..aa0d4f9d --- /dev/null +++ b/net-analyzer/zenmap/files/nmap-5.21-python.patch @@ -0,0 +1,21 @@ +diff -Naurp nmap-5.21-orig/Makefile.in nmap-5.21/Makefile.in +--- nmap-5.21-orig/Makefile.in 2010-01-31 09:53:53.000000000 +0100 ++++ nmap-5.21/Makefile.in 2010-01-31 09:54:48.000000000 +0100 +@@ -253,7 +253,7 @@ build-zenmap: $(ZENMAPDIR)/setup.py $(ZE + + 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)" --force $(if $(DESTDIR),--root "$(DESTDIR)") --no-compile + $(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. +@@ -267,7 +267,7 @@ build-ndiff: + cd $(NDIFFDIR) && $(PYTHON) setup.py build $(if $(DESTDIR),--executable "$(DEFAULT_PYTHON_PATH)") + + install-ndiff: +- cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)") ++ cd $(NDIFFDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" $(if $(DESTDIR),--root "$(DESTDIR)") --no-compile + + NSE_FILES = scripts/script.db scripts/*.nse + NSE_LIB_LUA_FILES = nselib/*.lua diff --git a/net-analyzer/zenmap/files/nmap-logo-64.png b/net-analyzer/zenmap/files/nmap-logo-64.png Binary files differnew file mode 100644 index 00000000..ef0af9b1 --- /dev/null +++ b/net-analyzer/zenmap/files/nmap-logo-64.png diff --git a/net-analyzer/zenmap/metadata.xml b/net-analyzer/zenmap/metadata.xml new file mode 100644 index 00000000..15f3f4f9 --- /dev/null +++ b/net-analyzer/zenmap/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>slawomir.nizio@sabayonlinux.org</email> + <description>maintainer of split nmap ebuild</description> +</maintainer> +</pkgmetadata> diff --git a/net-analyzer/zenmap/zenmap-6.01.ebuild b/net-analyzer/zenmap/zenmap-6.01.ebuild new file mode 100644 index 00000000..74617c27 --- /dev/null +++ b/net-analyzer/zenmap/zenmap-6.01.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit eutils flag-o-matic python + +MY_P=${P/_beta/BETA} + +DESCRIPTION="Graphical frontend for nmap" +HOMEPAGE="http://nmap.org/" +SRC_URI="http://nmap.org/dist/${MY_P/zenmap/nmap}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND=">=x11-libs/gtk+-2.6:2 + >=dev-python/pygtk-2.6 + || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] dev-python/pysqlite:2 ) + " +RDEPEND="${DEPEND} + ~net-analyzer/nmap-${PV}" + +S="${WORKDIR}/${MY_P/zenmap/nmap}" + +pkg_setup() { + python_set_active_version 2 +} + +src_prepare() { + # epatch "${FILESDIR}"/${PN}-4.75-include.patch + # epatch "${FILESDIR}"/${PN}-4.75-nolua.patch + # epatch "${FILESDIR}"/${PN}-5.10_beta1-string.patch + epatch "${FILESDIR}"/${PN/zenmap/nmap}-5.21-python.patch + sed -i -e 's/-m 755 -s ncat/-m 755 ncat/' ncat/Makefile.in + + ## bug #416987 + #epatch "${FILESDIR}"/${P}-make.patch +} + +src_configure() { + # The bundled libdnet is incompatible with the version available in the + # tree, so we cannot use the system library here. + econf --with-libdnet=included \ + --with-zenmap \ + --without-ncat \ + --without-ndiff \ + --without-nmap-update \ + --without-nping \ + --without-ndiff \ + || die "configure failed!" +} + +src_compile() { + emake build-zenmap || die +} + +src_install() { + emake DESTDIR="${D}" install-zenmap || die + doicon "${FILESDIR}/nmap-logo-64.png" +} diff --git a/net-analyzer/zenmap/zenmap-6.25.ebuild b/net-analyzer/zenmap/zenmap-6.25.ebuild new file mode 100644 index 00000000..68fc1d63 --- /dev/null +++ b/net-analyzer/zenmap/zenmap-6.25.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +PYTHON_DEPEND="2" + +inherit eutils flag-o-matic python + +MY_P=${P/_beta/BETA} +NM_PN=${PN/zenmap/nmap} +NM_P=${MY_P/zenmap/nmap} + +DESCRIPTION="Graphical frontend for nmap" +HOMEPAGE="http://nmap.org/" +SRC_URI=" + http://nmap.org/dist/${NM_P}.tar.bz2 + http://dev.gentoo.org/~jer/nmap-logo-64.png +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +IUSE="nls" +NMAP_LINGUAS="de es fr hr hu id it ja pl pt_BR pt_PT ro ru sk zh" +for lingua in ${NMAP_LINGUAS}; do + IUSE+=" linguas_${lingua}" +done + +NMAP_PYTHON_DEPEND=" +|| ( + dev-lang/python:2.7[sqlite] + dev-lang/python:2.6[sqlite] + dev-lang/python:2.5[sqlite] + dev-python/pysqlite:2 +) +" +DEPEND=" + >=x11-libs/gtk+-2.6:2 + >=dev-python/pygtk-2.6 + ${NMAP_PYTHON_DEPEND} +" +RDEPEND=" + ${DEPEND} + ~net-analyzer/nmap-${PV} +" + +S="${WORKDIR}/${NM_P}" + +pkg_setup() { + python_set_active_version 2 +} + +src_unpack() { + unpack ${NM_P}.tar.bz2 +} + +src_prepare() { + # "${FILESDIR}"/${PN}-4.75-include.patch + # "${FILESDIR}"/${PN}-4.75-nolua.patch + # "${FILESDIR}"/${PN}-5.10_beta1-string.patch + # "${FILESDIR}"/${PN}-6.01-make.patch + # "${FILESDIR}"/${PN}-6.25-lua.patch + epatch \ + "${FILESDIR}"/${NM_PN}-5.21-python.patch + + mv docs/man-xlate/${NM_PN}-j{p,a}.1 || die + if use nls; then + local lingua='' + for lingua in ${NMAP_LINGUAS}; do + if ! use linguas_${lingua}; then + rm -rf zenmap/share/zenmap/locale/${lingua} + rm -f zenmap/share/zenmap/locale/${lingua}.po + fi + done + else + # configure/make ignores --disable-nls + for lingua in ${NMAP_LINGUAS}; do + rm -rf zenmap/share/zenmap/locale/${lingua} + rm -f zenmap/share/zenmap/locale/${lingua}.po + done + fi + + sed -i \ + -e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \ + Makefile.in || die + + # Fix desktop files wrt bug #432714 + sed -i \ + -e '/^Encoding/d' \ + -e 's|^Categories=.*|Categories=Network;System;Security;|g' \ + zenmap/install_scripts/unix/zenmap-root.desktop \ + zenmap/install_scripts/unix/zenmap.desktop || die +} + +src_configure() { + # The bundled libdnet is incompatible with the version available in the + # tree, so we cannot use the system library here. + # nls disabled for split nmap ebuild - flag used for manipulations above + econf \ + --with-zenmap \ + --without-liblua \ + --without-ncat \ + --without-ndiff \ + --disable-nls \ + --without-nmap-update \ + --without-nping \ + --without-openssl \ + --with-libdnet=included +} + +src_compile() { + emake build-zenmap || die +} + +src_install() { + emake DESTDIR="${D}" install-zenmap || die + doicon "${FILESDIR}/nmap-logo-64.png" +} |