nmap: use build-in lua for now. unmasking hardmask from gentoo

This commit is contained in:
Anton Bolshakov 2013-10-04 04:15:31 +00:00
parent b3ac216f1b
commit fa7ef2afa5
5 changed files with 164 additions and 1 deletions

View file

@ -5,8 +5,12 @@ AUX nmap-6.01-make.patch 571 SHA256 d315795797c60712b00dbdc0e1fe5df6851575e0dbc1
AUX nmap-6.25-liblua-ar.patch 328 SHA256 3bce55abe4cf17d7c7bb56731151c4d4f1c5aef04e8294bf79a9712fa015fce2 SHA512 6bb15078e79ef281b026e25199fc76bcd1b7242da0d6513ac9b078f130e521e6db506c1c36d33ef72a2198c3054111d95d6ac0654f7d6bb7549d6308ce864291 WHIRLPOOL d6f29209ee4a92e2f5b564d5aeaa8814355df2a9142665ba1ce980693c830214a1d89dc66c3f0573237273d0fc502c7ff8b39be53f6afcca29dd94fe6f081b7b
AUX nmap-6.25-lua.patch 1607 SHA256 eeb125bdc22dc6cf7402ead711236701440b2276af0ecd7f99711bb68424214c SHA512 837e8f95ea1dfa1176abd576894e71123e867181378812f783faf408b27746e20d69b60f049ef7d37e07a2764d696ea1b169c29867e62d34378d11ce9b9e25e1 WHIRLPOOL fc821d90705c03fdbc56a3618ee96e69ef9662f81dc013eeaa1ebd8d03a1f1936a957de5d62c3402cfebc0ed34fb5c84229e7c6048d6438ecab0481d7d465d17
AUX nmap-6.25-su-to-zenmap.patch 667 SHA256 f59f82368f633e7de1cc3a546d513d18ad5210595e93c8b5da1b482bece5ecc6 SHA512 bd6446f9834f6d918aa39efdfe779f36465f0a39f6079587dba39bc429f1a42810e46dab776cf9207d6bd5ba15456db08a965c3f0e036d2c7ece3485a6c7431a WHIRLPOOL c070b47e3ab6d08aa0f5c115a5cbe56b6d1349694b549c56fafcf62436da0651ff22f64d725d0aa931ecb723df338d885158615fd34a05d5f7d5e98908a12af0
AUX nmap-6.40-uninstaller.patch 629 SHA256 5a440d5b04441a18dfe2f577e73d8f063a4e6289874c361cee53c3c9d33d6bcf SHA512 291c98a9d51ef1cd43617645417f3a7a602f70be1d511f5f6ed1ecc7104a66524eb87290867a896c92012e9bc4eb51ae43ae2d83542d7df5c688499ee62d132d WHIRLPOOL 5ffd985cdc3dcb91ee456ed1fbd4e8804fac4efa01728b2759f9d5df3c43992feeaafa791301acd4be4b89d9b1b6cc1bbeff49306d73f3a8948de9ea6275a4b2
AUX nmap-logo-64.png 3289 SHA256 4c72ff1eeffeeaa1039b251d9f2d675936e65db686fe3b57a35c2183ce67a8aa SHA512 fb102d12aaeebc8a97543ecd653a3606e86996ad679bc26d6e6e274ad05ec3e9f92521289d1a24153c521b699e8c0cfa65d8856bb49af53ee4837268bbc6b5d3 WHIRLPOOL 6093aadcb9880587e17d39d45fcbe57bb62777f220655e6ed5b5f900ce49cb8c5a53e24d7db0de6f8909eb0f8981f7565e6ae9b9bf9283a4ccccb0526eab5313
AUX su-to-zenmap.sh.diff 407 SHA256 164664d9e1ff54279794fe2eb34f15d419a843e58d7633664be07be12a6cfe36 SHA512 bbab3e83d7c8365915ec948bb18b897afabbe574ed5c42ffecc528392cde5af7bc1f0a63b0b56af3616c6631e6402eda3526785221d43a02df22bfe15e63c73a WHIRLPOOL 2148ac5dd7e63ed218d2ab2d93d53da8ee605861029e83b66860ac18a39d1b5f5c1365d16c7d5533b1a6a5839e0d74bde07ba2d907bff413314714383d0ee92f
DIST nmap-6.25.tar.bz2 7668639 SHA256 3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5 SHA512 6ec4d8f50621c86a3d0b6a22cf179a1874bf109736c5a79d6b29faec6859e165f7c0e6c3f8c284de8f384a8a607f071e2176c900b22df3ba0f158d36b081870d WHIRLPOOL b6cd57988827549762020e73ff263f5014d6c748291225d8c9792705da39188436004400b05a07414b4cc4b9ea56c75ebf7c753bbe11a5456b008041e72ebbc4
DIST nmap-6.40.tar.bz2 7871636 SHA256 491f77d8b3fb3bb38ba4e3850011fe6fb43bbe197f9382b88cb59fa4e8f7a401 SHA512 b0ccb7634838e814dc0e36a0dbfc8c74853ef9dc6a119b73ffc90caab8875cbae893e0d24371ea568f9fff969440ed2a2e89953a6dbb6eb26313a4ea25b02b3b WHIRLPOOL 18424b67a8ace959c129e00e4b0d8a8e893aa08cfabb1b47b4fe9fc4316c29f713a2f83b789db28b4158c18bf80aea0bee071751187c0eb7e1a4b6693c3f4f98
DIST nmap-logo-64.png 3289 SHA256 4c72ff1eeffeeaa1039b251d9f2d675936e65db686fe3b57a35c2183ce67a8aa SHA512 fb102d12aaeebc8a97543ecd653a3606e86996ad679bc26d6e6e274ad05ec3e9f92521289d1a24153c521b699e8c0cfa65d8856bb49af53ee4837268bbc6b5d3 WHIRLPOOL 6093aadcb9880587e17d39d45fcbe57bb62777f220655e6ed5b5f900ce49cb8c5a53e24d7db0de6f8909eb0f8981f7565e6ae9b9bf9283a4ccccb0526eab5313
EBUILD nmap-6.25-r1.ebuild 3433 SHA256 5f5ff55a8766a928a332b94dcc50634c3d7881c639759a1089af211d0426c545 SHA512 9d8a551ec6801c43ad46a181d42885dfbb010db36d810d852771f6bdcc791cc8787d7b334accbff6d8badb1d2007b62c2410436ec0a6c046b0bac72ee565f028 WHIRLPOOL e4b088b6e5f168129065cbd535e84aba531a06bd8a37814b25b8f97964318d303beed0b7d68c81d579d393423839e8873d27cb6aa770576ef7bd8333a6a2749d
EBUILD nmap-6.40-r2.ebuild 3461 SHA256 d849fcd5d623403ebc220b6180ffb76848963f3c4488b8cc2ebfa140a48f178b SHA512 60786beec069800d47927ef2641ff09dcca9c795984ca5ed399a8124a19343845daa369038ae7dc93d09b9596894ff7d315415e17b993f95d8a619798a664cd5 WHIRLPOOL 271489eaf63fc1fecd198921978c910157615f5104c5fffbaba5bd5ebc7dd04db36ccd6790e67163c8e6da427e39693e03bfb3920eb0e2b7e10aae38f8d99e3e
EBUILD nmap-9999.ebuild 3208 SHA256 ed9f26bcad18a9dcf8eaaa98bbe541a6fe08762025db9b0828502d737b1bb215 SHA512 dc5a9056112c03dc54418573214e6082674f33bcee7f1fa1e6cd83c603688e2b412202b5159b97ad44f81f117fd9d95720de776cb82e626fb7901ecd017f498e WHIRLPOOL 852819616911102374ef83a9ea15bb1126da6bd150d96238bba1fe8593b6435a28c98360864a685de2c57d3609ff6cec63e39e9626e3a999be0be1dc80d1efb1

View file

@ -0,0 +1,18 @@
--- a/zenmap/setup.py
+++ b/zenmap/setup.py
@@ -238,7 +238,6 @@
self.set_perms()
self.set_modules_path()
self.fix_paths()
- self.create_uninstaller()
self.write_installed_files()
def get_installed_files(self):
@@ -255,7 +254,6 @@
for dirpath, dirs, files in os.walk(os.path.join(self.install_data, data_dir)):
for dir in dirs:
installed_files.append(os.path.join(dirpath, dir))
- installed_files.append(os.path.join(self.install_scripts, "uninstall_" + APP_NAME))
return installed_files
def create_uninstaller(self):

View file

@ -0,0 +1,140 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.40-r1.ebuild,v 1.2 2013/09/05 18:58:48 mgorny Exp $
EAPI=5
PYTHON_COMPAT=( python2_{6,7} )
PYTHON_REQ_USE="sqlite"
inherit eutils flag-o-matic python-single-r1 toolchain-funcs
MY_P=${P/_beta/BETA}
DESCRIPTION="A utility for network exploration or security auditing"
HOMEPAGE="http://nmap.org/"
SRC_URI="
http://nmap.org/dist/${MY_P}.tar.bz2
http://dev.gentoo.org/~jer/nmap-logo-64.png
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="ipv6 +lua ncat ndiff nls nmap-update nping ssl zenmap"
NMAP_LINGUAS=( de es fr hr hu id it ja pl pt_BR pt_PT ro ru sk zh )
IUSE+=" ${NMAP_LINGUAS[@]/#/linguas_}"
NMAP_PYTHON_DEPEND="
|| ( ${PYTHON_DEPS} )
"
RDEPEND="
dev-libs/libpcre
net-libs/libpcap[ipv6?]
zenmap? (
dev-python/pygtk:2
${NMAP_PYTHON_DEPEND}
)
ndiff? ( ${NMAP_PYTHON_DEPEND} )
nls? ( virtual/libintl )
nmap-update? ( dev-libs/apr dev-vcs/subversion )
ssl? ( dev-libs/openssl )
"
#use build-in lua. See bug #407091
# lua? ( >=dev-lang/lua-5.2[deprecated] )
DEPEND="
${RDEPEND}
nls? ( sys-devel/gettext )
"
S="${WORKDIR}/${MY_P}"
src_unpack() {
# prevent unpacking the logo
unpack ${MY_P}.tar.bz2
}
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-4.75-nolua.patch \
"${FILESDIR}"/${PN}-5.10_beta1-string.patch \
"${FILESDIR}"/${PN}-5.21-python.patch \
"${FILESDIR}"/${PN}-6.01-make.patch \
"${FILESDIR}"/${PN}-6.25-liblua-ar.patch \
"${FILESDIR}"/${P}-uninstaller.patch
sed -i \
-e 's/-m 755 -s ncat/-m 755 ncat/' \
ncat/Makefile.in || 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.
econf \
$(use_enable ipv6) \
$(use_enable nls) \
$(use_with zenmap) \
$(usex lua --with-liblua=included --without-liblua) \
$(use_with ncat) \
$(use_with ndiff) \
$(use_with nmap-update) \
$(use_with nping) \
$(use_with ssl openssl) \
--with-libdnet=included \
--with-pcre=/usr
}
src_compile() {
emake \
AR=$(tc-getAR) \
RANLIB=$(tc-getRANLIB )
}
src_install() {
LC_ALL=C emake -j1 \
DESTDIR="${D}" \
STRIP=: \
nmapdatadir="${EPREFIX}"/usr/share/nmap \
install
if use nmap-update;then
LC_ALL=C emake -j1 \
-C nmap-update \
DESTDIR="${D}" \
STRIP=: \
nmapdatadir="${EPREFIX}"/usr/share/nmap \
install
fi
dodoc CHANGELOG HACKING docs/README docs/*.txt
use zenmap && doicon "${DISTDIR}/nmap-logo-64.png"
}

View file

@ -61,7 +61,7 @@ net-analyzer/nessus-plugins
~net-analyzer/netwox-5.39.0
~net-analyzer/nikto-2.1.5
#requres a newer lua. See the bug #407091
#~net-analyzer/nmap-6.40
~net-analyzer/nmap-6.40
~net-analyzer/ntop-5.0.1
~net-analyzer/ntp-fingerprint-0.1
~net-analyzer/onesixtyone-0.3.2

View file

@ -1,5 +1,6 @@
#unmasking alpha release despite gentoo-wide mask of alpha releases
net-analyzer/ncrack
~net-analyzer/nmap-6.40
#masked for licensing issues but we don't actually violate the license
net-wireless/sdrsharp