nmap: in sync with gentoo. ipv6 is the only difference left to push

This commit is contained in:
Anton Bolshakov 2013-01-27 02:14:24 +00:00
parent 56ef0b3702
commit 4f7019f3a5
10 changed files with 71 additions and 160 deletions

View file

@ -1,16 +1,12 @@
AUX nmap-4.75-include.patch 476 SHA256 ec9453954d1b84e77c1489c8a25d629ba300084c7020ed8b6045c0e839cdcdca SHA512 0805756e9aa3843d2a9e0ae41d202101bacfd60ec2c0f5accde617eb17759701d16d3c0b91f613e7a42d994212334f136e17d3664926df145638fd0ac578bfdd WHIRLPOOL ab3ffa461cb15227707424c4213bb4152c990766f1e78146ec4389431602e26142cb15f01138cb8b67c5e9f9c58b24fac6c3e1ab6b72f5749511da353d3010cc
AUX nmap-4.75-nolua.patch 364 SHA256 52434a5d0e8b82fe325e1066c3851a2e862fc58c3a3d02f8463e7dcf1d603619 SHA512 df83711db7250d8debbb70867da3e066ba13edf9b304cc5c61824a5a0f968bff3057c0a29efffbfdd9a68871f0cca0e93f2f6051c907b8ae4242a07eada832fc WHIRLPOOL 40a56b9ebf2c99578d4fab7b20ba0379e8ef55c3c782f8c29f33e9dc302b669434dd21fa40e1e82ce0b1249080abcaa3ce95c2dc23db010f7bd87f3f1cf99f10
AUX nmap-5.00-python.patch 1205 SHA256 0fe36a2e95a2f6c01967191fe68aac87b7f66f9185846f79de15728608d09f8e SHA512 ebd7ed7fc25682c4a2c5dd6f4736b1e8c0dde48bc47ab09240b8413892d65a5309d75821a221c0bbc831054a2caa5b78e97e62f41b75096be3d822ebf6da2fef WHIRLPOOL 842ae3b99b1d3d2ee81aa0c7746fa5e64cb59f3aba8a4fa9f81214d49fb8c0152e281127f81692c682f0ad52741ab73e657fa675c1962f597d4b57d12b1b128c
AUX nmap-5.10_beta1-string.patch 252 SHA256 6012685deb53985c73fa038d27b2f1472344fd6641c40103143fa15676454506 SHA512 d1c6a446400fa86700c5ce690c3498894a9796b17bb70a29b933797eb2abb38285ebc21a236d8f1f4fa837c45a1abc49555aee13266a31089b219f9b4ef07be2 WHIRLPOOL 3e7ba87ef26d7462b82e3986c37f7a2f1074dc2db7ba6a357ade3869089657a5200afacac6490a60ff43700b6e7812c1c95ac18efac381037590d851513dbf9e
AUX nmap-5.20-nolua.patch 1237 SHA256 ce215ce6666e4518121d6a5996c7e7a29037fc77b2d43d0ffbf77d9d7c00e985 SHA512 38c3b354130ed1d48526dcb00fbd553978a653ee9f4e4c97399236c001990eacc3887a9810263418ef62c8af4363c759b1d12e08c1b966f2e96577507b0220b1 WHIRLPOOL adfac52c99bfd1062e8d589f6d23ab4767c4e14c2f24363a65194bd2c8194206c0502a3ad74ceee2a96dc96813fa68850593c74c550ef636bdda106b9094bdd1
AUX nmap-5.21-openssl-1.patch 920 SHA256 1e0167303acdeb01a90d61afd2cc8ca521d8e9504585716f07e7acf2367f1360 SHA512 b490ce022c3f5aedbcf03986742770cd651678bffd201560f26b8ac029c09e1c5e343c6826e9c50f0f0c980f66346a26123f6f4c7453e9d0b0bcff69fae6a47f WHIRLPOOL 55e3f34c573145f97535ffe20381534418d1411a8a52f29fcfa6dbf50e6fb27cb2077950596d3a04ae11bc7edb76c78c7f00b37de10e4c35751ba8fa747bd5a3
AUX nmap-5.21-python.patch 1219 SHA256 2d133db8f31d048de810fa3a3b8234f856bdfa9b830c6346d71cdc2357a16b74 SHA512 d670b382d183a55d0a744d4055aafffdaf64b071ae169e94e7d627ca8b74df38d02ef7858b0976b7079828c14705d0f1998a9640445f3cd4f5f4d4c5b2ce0bf3 WHIRLPOOL 1d84ccf26fb0affff5a05f6fd00ea5aff1bbb3a9d3320e7a90a9feeba68aa7fa38e8be527eea93824616003a61321f21fa8fb5ce662e4b43ef8581679f40bd3a
AUX nmap-5.51-su-to-zenmap-fix.patch 785 SHA256 f57d70bd98b0b395661dc2b85df15ae79b71fe339133967f7af4eee98feee8da SHA512 44482306e7346fa7896a4c900d06431ebadf0e32ca5b9abd3e3f32e06f20e11809c0bdaa62fa3807431b4dfab7c6ddf422dc05a5a96e9e3f9217f2c64285bce4 WHIRLPOOL 516bf0d76e8633605c106ff6982f089df1e4c9d696e11bb589000fed8355b5a504694c286a03bd9845508aa833c11d3fa1ae61c961e72b87a0329d6aabd37126
AUX nmap-6.01-make.patch 571 SHA256 d315795797c60712b00dbdc0e1fe5df6851575e0dbc11abb772a51c739ab60cb SHA512 47752ac65a07aef68eb075b72a0e9062612a2df08135d3f4284805f8fdc394a1fa3b937c1df018f7cce58f4c96db57af17e720250b6f67ce80f8cbb35eb82deb WHIRLPOOL b9ec86290bb1a681ee16aeaeb336ca7def8689d0ae311bc223591eefbade0db6b5f58ebf86d52406b24d8c656f51e06d049a4c3893a730aafe5448a7f5765e42
AUX nmap-6.25-nolua.patch 1980 SHA256 fd4ad9287af4b52a2ddbe4b800d27185bb32b51c58a12f77b8c4391e9dc9ecec SHA512 cebe5bc85bea2870bfb151dc1252c9f4d9e7269107e92d17eb8d89b06dcbac71ef29cf8b0ed1d732dd2d01c6130d3e84b02016ddf149e48eda1ab322f1fe62fe WHIRLPOOL 3b615a01d91220008ee74648c92fd4fd8159ad69284b05b1b33656b28fbea4fc44d6d789024fca90ac6e4410741726f656f25aa96e3dec61b7f8bcad72234cea
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-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
EBUILD nmap-6.25.ebuild 3367 SHA256 d8d234a33efe97545403f5d560dbae60cd276dc79f478011b1d4b80115f5f9cb SHA512 8e6e3f80befd5e9513da81ebf96ca56cd50ee68b7d8b8e5c948d37157dc1a72d7f8de95350929867080d06889eb20b39d54c8ec609ea9d8ee69f11cd657bf939 WHIRLPOOL bf195e660c31353eb4e8001792ef0ba07be8808b0e43f514c894e85754e179ed98548ca918503e695dc17615d8d5e38f7dcffe2c568802a8d68a505d1f4ea3ee
EBUILD nmap-9999.ebuild 3090 SHA256 179855fdcff9a8e670b71208dfbf6cde4b17ca07188e905da1b8638de27b8074 SHA512 b72f4a85d10ffd11d83dc2a986bd39ae5205883bad75def83d7be6df0b95a1a84114552c3c647613ee4a4ee3481279aa51b268f1e866815791199038ac435a89 WHIRLPOOL 0da7fdd50345b1193a08bf39edf98f317217d27c97ecee48ef0d0d04ae188c1f61e3c53b9868b7f2add8975117af98a909c497c4b8a299a3fc185ca7cbd63a9a
EBUILD nmap-6.25-r1.ebuild 3433 SHA256 5f5ff55a8766a928a332b94dcc50634c3d7881c639759a1089af211d0426c545 SHA512 9d8a551ec6801c43ad46a181d42885dfbb010db36d810d852771f6bdcc791cc8787d7b334accbff6d8badb1d2007b62c2410436ec0a6c046b0bac72ee565f028 WHIRLPOOL e4b088b6e5f168129065cbd535e84aba531a06bd8a37814b25b8f97964318d303beed0b7d68c81d579d393423839e8873d27cb6aa770576ef7bd8333a6a2749d
EBUILD nmap-9999.ebuild 3247 SHA256 621a601a8e9c27261e6a2163c770cdf03b8e6d97fb7ca289ec9a9cde838113f4 SHA512 f1e1ce1229589fb9d8b8ce960f8dbae5d512a9f7ddcadf7de44b1180d2598116fb54ece3bded870c7830a49f5c3b7f0b55b2d2054f765ba716b1aa34e5265354 WHIRLPOOL e9e32f792a8c1a0e57ab96c9f157c18a42011d04fe201ae2895dd2f11488244e05519deb274e42cc9da66eb7c8c85e30158c9fa86d95afd92163f1fee8e53dbc

View file

@ -1,13 +0,0 @@
diff -Naurp nmap-4.75-orig/nmap_dns.h nmap-4.75/nmap_dns.h
--- nmap-4.75-orig/nmap_dns.h 2008-09-09 08:51:59.000000000 +0200
+++ nmap-4.75/nmap_dns.h 2008-09-09 08:52:19.000000000 +0200
@@ -95,6 +95,9 @@
* *
***************************************************************************/
+#include <list>
+#include <string>
+
class Target;
void nmap_mass_rdns(Target ** targets, int num_targets);

View file

@ -1,21 +0,0 @@
diff -Naurp nmap-5.00-orig//Makefile.in nmap-5.00/Makefile.in
--- nmap-5.00-orig//Makefile.in 2010-04-04 11:39:01.000000000 +0200
+++ nmap-5.00/Makefile.in 2010-04-04 11:39:29.000000000 +0200
@@ -236,7 +236,7 @@ build-zenmap: $(ZENMAPDIR)/setup.py $(ZE
install-zenmap: $(ZENMAPDIR)/setup.py
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1
- cd $(ZENMAPDIR) && $(PYTHON) setup.py install --prefix "$(prefix)" --force $(if $(DESTDIR),--root "$(DESTDIR)")
+ cd $(ZENMAPDIR) && $(PYTHON) setup.py 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.
@@ -250,7 +250,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

View file

@ -1,33 +0,0 @@
diff -Naurp nmap-5.20/portlist.cc nmap-5.20-fixed/portlist.cc
--- nmap-5.20/portlist.cc 2009-12-20 04:22:19.000000000 +0100
+++ nmap-5.20-fixed/portlist.cc 2010-01-23 09:59:21.000000000 +0100
@@ -412,7 +412,7 @@ void PortList::setRPCProbeResults(u16 po
}
}
-
+#ifndef NOLUA
void PortList::addScriptResult(u16 portno, int protocol, ScriptResult& sr) {
Port *port;
@@ -420,6 +420,7 @@ void PortList::addScriptResult(u16 portn
port->scriptResults.push_back(sr);
}
+#endif
/*****************************************************************************/
/* Convert protocol name from in.h to enum portlist_proto.
diff -Naurp nmap-5.20/portlist.h nmap-5.20-fixed/portlist.h
--- nmap-5.20/portlist.h 2009-12-20 04:22:19.000000000 +0100
+++ nmap-5.20-fixed/portlist.h 2010-01-23 09:56:20.000000000 +0100
@@ -278,7 +278,9 @@ class PortList {
void setRPCProbeResults(u16 portno, int proto, int rpc_status, unsigned long rpc_program,
unsigned int rpc_lowver, unsigned int rpc_highver);
+#ifndef NOLUA
void addScriptResult(u16 portno, int protocol, ScriptResult& sr);
+#endif
/* Cycles through the 0 or more "ignored" ports which should be
consolidated for Nmap output. They are returned sorted by the

View file

@ -1,38 +0,0 @@
http://bugs.gentoo.org/326531
http://trac.macports.org/ticket/25593
--- nse_openssl.cc
+++ nse_openssl.cc
@@ -8,7 +8,6 @@
#include <openssl/crypto.h>
#include <openssl/bn.h>
#include <openssl/rand.h>
-#include <openssl/md2.h>
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
@@ -206,16 +205,6 @@
return 1;
}
-static int l_md2(lua_State *L) /** md2(string s) */
-{
- size_t len;
- const unsigned char *s = (unsigned char *) luaL_checklstring( L, 1, &len );
- unsigned char digest[16];
-
- lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 );
- return 1;
-}
-
static int l_md4(lua_State *L) /** md4(string s) */
{
size_t len;
@@ -469,7 +458,6 @@
{ "bignum_mod_exp", l_bignum_mod_exp },
{ "rand_bytes", l_rand_bytes },
{ "rand_pseudo_bytes", l_rand_pseudo_bytes },
- { "md2", l_md2 },
{ "md4", l_md4 },
{ "md5", l_md5 },
{ "sha1", l_sha1 },

View file

@ -1,14 +0,0 @@
diff -Naurp nmap-5.51-orig/zenmap/install_scripts/unix/su-to-zenmap.sh nmap-5.51/zenmap/install_scripts/unix/su-to-zenmap.sh
--- nmap-5.51-orig/zenmap/install_scripts/unix/su-to-zenmap.sh 2011-06-13 00:08:06.141000195 +0200
+++ nmap-5.51/zenmap/install_scripts/unix/su-to-zenmap.sh 2011-06-13 00:09:00.487000200 +0200
@@ -40,8 +40,8 @@ else
fi
case $SU_TO_ROOT_X in
gksu) gksu -u "$PRIV" "$COMMAND";;
- kdesu) kdesu -u "$PRIV" "$COMMAND";;
- kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
+ kdesu) kdesu -u "$PRIV" $COMMAND;;
+ kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" $COMMAND;;
ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
# As a last resort, open a new xterm use sudo/su
sdterm) xterm -e "sudo -u $PRIV $COMMAND";;

View file

@ -0,0 +1,20 @@
--- a/liblua/Makefile
+++ b/liblua/Makefile
@@ -11,7 +11,7 @@
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
-AR= ar rcu
+AR= ar
RANLIB= ranlib
RM= rm -f
@@ -56,7 +56,7 @@
a: $(ALL_A)
$(LUA_A): $(BASE_O)
- $(AR) $@ $(BASE_O)
+ $(AR) rcu $@ $(BASE_O)
$(RANLIB) $@
$(LUA_T): $(LUA_O) $(LUA_A)

View file

@ -1,5 +1,5 @@
--- nmap-6.25/output.h 2012-08-15 00:36:25.000000000 +0800
+++ nmap-6.25-fixed/output.h 2012-12-02 10:30:45.003319377 +0800
--- a/output.h
+++ b/output.h
@@ -226,6 +226,10 @@
void printscriptresults(ScriptResults *scriptResults, stype scantype);
@ -20,8 +20,8 @@
-bool comparescriptids(ScriptResult first, ScriptResult second);
-
#endif /* OUTPUT_H */
--- nmap-6.25.orig/output.cc 2012-11-29 11:19:52.000000000 +0800
+++ nmap-6.25/output.cc 2012-12-02 10:44:50.986325233 +0800
--- a/output.cc
+++ b/output.cc
@@ -2613,6 +2613,7 @@
}
}
@ -37,8 +37,8 @@
+#endif
--- nmap-6.25.orig/portlist.cc 2012-10-11 12:45:50.000000000 +0800
+++ nmap-6.25/portlist.cc 2012-12-02 10:51:28.930327962 +0800
--- a/portlist.cc
+++ b/portlist.cc
@@ -144,6 +144,7 @@
}
}
@ -55,8 +55,8 @@
/* Fills in namebuf (as long as there is space in buflen) with the
Name nmap normal output will use to describe the port. This takes
--- nmap-6.25.orig/Target.cc 2012-08-15 00:36:25.000000000 +0800
+++ nmap-6.25/Target.cc 2012-12-02 10:55:28.097329636 +0800
--- a/Target.cc
+++ b/Target.cc
@@ -162,10 +162,12 @@
Target::~Target() {

View file

@ -1,11 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# 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.25.ebuild,v 1.5 2012/12/03 19:52:32 jer Exp $
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.13 2013/01/26 18:18:04 jer Exp $
EAPI="4"
PYTHON_DEPEND="python? 2"
inherit eutils flag-o-matic python
inherit eutils flag-o-matic python toolchain-funcs
MY_P=${P/_beta/BETA}
@ -17,7 +16,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping python ssl"
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping ssl"
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}"
@ -51,22 +50,22 @@ DEPEND="
nls? ( sys-devel/gettext )
"
REQUIRED_USE="gtk? ( python )
ndiff? ( python )
"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
use python && python_set_active_version 2
if use gtk || use ndiff; then
python_set_active_version 2
fi
}
src_prepare() {
# epatch "${FILESDIR}"/${PN}-4.75-include.patch \
epatch "${FILESDIR}"/${PN}-5.10_beta1-string.patch \
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-nolua.patch
"${FILESDIR}"/${PN}-6.25-lua.patch \
"${FILESDIR}"/${PN}-6.25-liblua-ar.patch
sed -i \
-e 's/-m 755 -s ncat/-m 755 ncat/' \
ncat/Makefile.in || die
@ -98,6 +97,7 @@ src_prepare() {
-e 's|^Categories=.*|Categories=Network;System;Security;|g' \
zenmap/install_scripts/unix/zenmap-root.desktop \
zenmap/install_scripts/unix/zenmap.desktop || die
}
src_configure() {
@ -115,6 +115,12 @@ src_configure() {
--with-libdnet=included
}
src_compile() {
emake \
AR=$(tc-getAR) \
RANLIB=$(tc-getRANLIB )
}
src_install() {
LC_ALL=C emake -j1 \
DESTDIR="${D}" \

View file

@ -1,11 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# 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.25.ebuild,v 1.5 2012/12/03 19:52:32 jer Exp $
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.25.ebuild,v 1.13 2013/01/26 18:18:04 jer Exp $
EAPI="4"
PYTHON_DEPEND="python? 2"
inherit eutils flag-o-matic python subversion
inherit eutils flag-o-matic python subversion toolchain-funcs
MY_P=${P/_beta/BETA}
@ -18,7 +17,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping python ssl"
IUSE="gtk ipv6 +lua ncat ndiff nls nmap-update nping ssl"
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}"
@ -52,20 +51,22 @@ DEPEND="
nls? ( sys-devel/gettext )
"
REQUIRED_USE="gtk? ( python )
ndiff? ( python )
"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
use python && python_set_active_version 2
if use gtk || use ndiff; then
python_set_active_version 2
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-5.10_beta1-string.patch \
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.01-make.patch \
"${FILESDIR}"/${PN}-6.25-lua.patch \
"${FILESDIR}"/${PN}-6.25-liblua-ar.patch
sed -i \
-e 's/-m 755 -s ncat/-m 755 ncat/' \
ncat/Makefile.in || die
@ -96,6 +97,7 @@ src_prepare() {
-e 's|^Categories=.*|Categories=Network;System;Security;|g' \
zenmap/install_scripts/unix/zenmap-root.desktop \
zenmap/install_scripts/unix/zenmap.desktop || die
}
src_configure() {
@ -113,6 +115,12 @@ src_configure() {
--with-libdnet=included
}
src_compile() {
emake \
AR=$(tc-getAR) \
RANLIB=$(tc-getRANLIB )
}
src_install() {
LC_ALL=C emake -j1 \
DESTDIR="${D}" \