1 |
jer 15/07/02 05:02:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nmap-6.49_beta2.ebuild |
5 |
Removed: nmap-6.49_beta1.ebuild |
6 |
Log: |
7 |
Version bump. |
8 |
|
9 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
10 |
|
11 |
Revision Changes Path |
12 |
1.348 net-analyzer/nmap/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.348&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?rev=1.348&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/ChangeLog?r1=1.347&r2=1.348 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v |
21 |
retrieving revision 1.347 |
22 |
retrieving revision 1.348 |
23 |
diff -u -r1.347 -r1.348 |
24 |
--- ChangeLog 14 Jun 2015 10:32:59 -0000 1.347 |
25 |
+++ ChangeLog 2 Jul 2015 05:02:41 -0000 1.348 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-analyzer/nmap |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.347 2015/06/14 10:32:59 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/ChangeLog,v 1.348 2015/07/02 05:02:41 jer Exp $ |
31 |
+ |
32 |
+*nmap-6.49_beta2 (02 Jul 2015) |
33 |
+ |
34 |
+ 02 Jul 2015; Jeroen Roovers <jer@g.o> -nmap-6.49_beta1.ebuild, |
35 |
+ +nmap-6.49_beta2.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
14 Jun 2015; Jeroen Roovers <jer@g.o> nmap-9999.ebuild: |
39 |
Switch to git. |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/nmap/nmap-6.49_beta2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-6.49_beta2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nmap/nmap-6.49_beta2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: nmap-6.49_beta2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-6.49_beta2.ebuild,v 1.1 2015/07/02 05:02:41 jer Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
PYTHON_COMPAT=( python2_7 ) |
57 |
PYTHON_REQ_USE="sqlite,xml" |
58 |
inherit eutils flag-o-matic python-single-r1 toolchain-funcs |
59 |
|
60 |
MY_P=${P/_beta/BETA} |
61 |
|
62 |
DESCRIPTION="A utility for network discovery and security auditing" |
63 |
HOMEPAGE="http://nmap.org/" |
64 |
SRC_URI=" |
65 |
http://nmap.org/dist/${MY_P}.tar.bz2 |
66 |
http://dev.gentoo.org/~jer/nmap-logo-64.png |
67 |
" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
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" |
72 |
|
73 |
IUSE="ipv6 +nse system-lua ncat ndiff nls nmap-update nping ssl zenmap" |
74 |
NMAP_LINGUAS=( de fr hr it ja pl pt_BR ru ) |
75 |
IUSE+=" ${NMAP_LINGUAS[@]/#/linguas_}" |
76 |
|
77 |
REQUIRED_USE=" |
78 |
system-lua? ( nse ) |
79 |
ndiff? ( ${PYTHON_REQUIRED_USE} ) |
80 |
zenmap? ( ${PYTHON_REQUIRED_USE} ) |
81 |
" |
82 |
|
83 |
RDEPEND=" |
84 |
dev-libs/liblinear |
85 |
dev-libs/libpcre |
86 |
net-libs/libpcap[ipv6?] |
87 |
zenmap? ( |
88 |
dev-python/pygtk:2[${PYTHON_USEDEP}] |
89 |
${PYTHON_DEPS} |
90 |
) |
91 |
system-lua? ( >=dev-lang/lua-5.2[deprecated] ) |
92 |
ndiff? ( ${PYTHON_DEPS} ) |
93 |
nls? ( virtual/libintl ) |
94 |
nmap-update? ( dev-libs/apr dev-vcs/subversion ) |
95 |
ssl? ( dev-libs/openssl:0= ) |
96 |
" |
97 |
DEPEND=" |
98 |
${RDEPEND} |
99 |
nls? ( sys-devel/gettext ) |
100 |
" |
101 |
|
102 |
S="${WORKDIR}/${MY_P}" |
103 |
|
104 |
pkg_setup() { |
105 |
if use ndiff || use zenmap; then |
106 |
python-single-r1_pkg_setup |
107 |
fi |
108 |
} |
109 |
|
110 |
src_unpack() { |
111 |
# prevent unpacking the logo |
112 |
unpack ${MY_P}.tar.bz2 |
113 |
} |
114 |
|
115 |
src_prepare() { |
116 |
epatch \ |
117 |
"${FILESDIR}"/${PN}-4.75-nolua.patch \ |
118 |
"${FILESDIR}"/${PN}-5.10_beta1-string.patch \ |
119 |
"${FILESDIR}"/${PN}-5.21-python.patch \ |
120 |
"${FILESDIR}"/${PN}-6.01-make.patch \ |
121 |
"${FILESDIR}"/${PN}-6.25-liblua-ar.patch \ |
122 |
"${FILESDIR}"/${PN}-6.46-uninstaller.patch \ |
123 |
"${FILESDIR}"/${PN}-6.47-no-libnl.patch \ |
124 |
"${FILESDIR}"/${PN}-6.47-ncat-lua.patch \ |
125 |
"${FILESDIR}"/${PN}-6.49-no-FORTIFY_SOURCE.patch |
126 |
|
127 |
if use nls; then |
128 |
local lingua='' |
129 |
for lingua in ${NMAP_LINGUAS[@]}; do |
130 |
if ! use linguas_${lingua}; then |
131 |
rm -r zenmap/share/zenmap/locale/${lingua} || die |
132 |
rm zenmap/share/zenmap/locale/${lingua}.po || die |
133 |
fi |
134 |
done |
135 |
else |
136 |
# configure/make ignores --disable-nls |
137 |
for lingua in ${NMAP_LINGUAS[@]}; do |
138 |
rm -r zenmap/share/zenmap/locale/${lingua} || die |
139 |
rm zenmap/share/zenmap/locale/${lingua}.po || die |
140 |
done |
141 |
fi |
142 |
|
143 |
sed -i \ |
144 |
-e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \ |
145 |
Makefile.in || die |
146 |
|
147 |
# Fix desktop files wrt bug #432714 |
148 |
sed -i \ |
149 |
-e '/^Encoding/d' \ |
150 |
-e 's|^Categories=.*|Categories=Network;System;Security;|g' \ |
151 |
zenmap/install_scripts/unix/zenmap-root.desktop \ |
152 |
zenmap/install_scripts/unix/zenmap.desktop || die |
153 |
|
154 |
epatch_user |
155 |
} |
156 |
|
157 |
src_configure() { |
158 |
# The bundled libdnet is incompatible with the version available in the |
159 |
# tree, so we cannot use the system library here. |
160 |
econf \ |
161 |
$(use_enable ipv6) \ |
162 |
$(use_enable nls) \ |
163 |
$(use_with zenmap) \ |
164 |
$(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \ |
165 |
$(use_with ncat) \ |
166 |
$(use_with ndiff) \ |
167 |
$(use_with nmap-update) \ |
168 |
$(use_with nping) \ |
169 |
$(use_with ssl openssl) \ |
170 |
--with-libdnet=included \ |
171 |
--with-pcre=/usr |
172 |
# --with-liblinear=/usr \ |
173 |
# Commented because configure does weird things, while autodetection works |
174 |
} |
175 |
|
176 |
src_compile() { |
177 |
emake \ |
178 |
AR=$(tc-getAR) \ |
179 |
RANLIB=$(tc-getRANLIB ) |
180 |
} |
181 |
|
182 |
src_install() { |
183 |
LC_ALL=C emake -j1 \ |
184 |
DESTDIR="${D}" \ |
185 |
STRIP=: \ |
186 |
nmapdatadir="${EPREFIX}"/usr/share/nmap \ |
187 |
install |
188 |
if use nmap-update;then |
189 |
LC_ALL=C emake -j1 \ |
190 |
-C nmap-update \ |
191 |
DESTDIR="${D}" \ |
192 |
STRIP=: \ |
193 |
nmapdatadir="${EPREFIX}"/usr/share/nmap \ |
194 |
install |
195 |
fi |
196 |
|
197 |
dodoc CHANGELOG HACKING docs/README docs/*.txt |
198 |
|
199 |
if use zenmap; then |
200 |
doicon "${DISTDIR}/nmap-logo-64.png" |
201 |
python_optimize |
202 |
fi |
203 |
} |