Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 702288 | Differences between
and this patch

Collapse All | Expand All

(-)nmap-7.80-r1.ebuild (-44 / +39 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=7
4
EAPI=7
5
5
PYTHON_COMPAT=( python2_7 )
6
PYTHON_COMPAT=( python3_{6,7} )
7
PYTHON_REQ_USE="sqlite,xml"
6
PYTHON_REQ_USE="sqlite,xml"
8
9
inherit autotools desktop flag-o-matic python-single-r1 toolchain-funcs user
7
inherit autotools desktop flag-o-matic python-single-r1 toolchain-funcs user
10
8
11
MY_P=${P/_beta/BETA}
9
MY_P=${P/_beta/BETA}
Lines 21-35 Link Here
21
LICENSE="GPL-2"
19
LICENSE="GPL-2"
22
SLOT="0"
20
SLOT="0"
23
21
24
IUSE="ipv6 libressl libssh2 ncat ndiff nls nmap-update nping +nse ssl system-lua"
22
IUSE="
25
#	zenmap
23
	ipv6 libressl libssh2 ncat ndiff nls nmap-update nping +nse ssl system-lua
26
24
	zenmap
27
#NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
25
"
26
NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
28
REQUIRED_USE="
27
REQUIRED_USE="
29
	system-lua? ( nse )
28
	system-lua? ( nse )
30
	ndiff? ( ${PYTHON_REQUIRED_USE} )"
29
	ndiff? ( ${PYTHON_REQUIRED_USE} )
31
#	zenmap? ( ${PYTHON_REQUIRED_USE} )
30
	zenmap? ( ${PYTHON_REQUIRED_USE} )
32
31
"
33
RDEPEND="
32
RDEPEND="
34
	dev-libs/liblinear:=
33
	dev-libs/liblinear:=
35
	dev-libs/libpcre
34
	dev-libs/libpcre
Lines 50-61 Link Here
50
		libressl? ( dev-libs/libressl:= )
49
		libressl? ( dev-libs/libressl:= )
51
	)
50
	)
52
	system-lua? ( >=dev-lang/lua-5.2:*[deprecated] )
51
	system-lua? ( >=dev-lang/lua-5.2:*[deprecated] )
52
	zenmap? (
53
		dev-python/pygtk:2[${PYTHON_USEDEP}]
54
		${PYTHON_DEPS}
55
	)
53
"
56
"
54
#	zenmap? (
55
#		dev-python/pygtk:2[${PYTHON_USEDEP}]
56
#		${PYTHON_DEPS}
57
#	)
58
59
DEPEND="
57
DEPEND="
60
	${RDEPEND}
58
	${RDEPEND}
61
	nls? ( sys-devel/gettext )
59
	nls? ( sys-devel/gettext )
Lines 70-82 Link Here
70
	"${FILESDIR}"/${PN}-7.25-libpcre.patch
68
	"${FILESDIR}"/${PN}-7.25-libpcre.patch
71
	"${FILESDIR}"/${PN}-7.31-libnl.patch
69
	"${FILESDIR}"/${PN}-7.31-libnl.patch
72
	"${FILESDIR}"/${PN}-7.80-ac-config-subdirs.patch
70
	"${FILESDIR}"/${PN}-7.80-ac-config-subdirs.patch
73
	"${FILESDIR}"/${PN}-7.80-python3-port-of-ndiff.patch
74
	"${FILESDIR}"/${PN}-7.80-python3-configure.patch
75
)
71
)
76
S="${WORKDIR}/${MY_P}"
72
S="${WORKDIR}/${MY_P}"
77
73
78
pkg_setup() {
74
pkg_setup() {
79
	if use ndiff; then
75
	if use ndiff || use zenmap; then
80
		python-single-r1_pkg_setup
76
		python-single-r1_pkg_setup
81
	fi
77
	fi
82
}
78
}
Lines 88-117 Link Here
88
84
89
	default
85
	default
90
86
91
#	local lingua
87
	local lingua
92
#	if use nls; then
88
	if use nls; then
93
#		for lingua in ${NMAP_LINGUAS[@]}; do
89
		for lingua in ${NMAP_LINGUAS[@]}; do
94
#			if ! has ${lingua} ${LINGUAS-${lingua}}; then
90
			if ! has ${lingua} ${LINGUAS-${lingua}}; then
95
#				rm -r zenmap/share/zenmap/locale/${lingua} || die
91
				rm -r zenmap/share/zenmap/locale/${lingua} || die
96
#				rm zenmap/share/zenmap/locale/${lingua}.po || die
92
				rm zenmap/share/zenmap/locale/${lingua}.po || die
97
#			fi
93
			fi
98
#		done
94
		done
99
#	else
95
	else
100
#		# configure/make ignores --disable-nls
96
		# configure/make ignores --disable-nls
101
#		for lingua in ${NMAP_LINGUAS[@]}; do
97
		for lingua in ${NMAP_LINGUAS[@]}; do
102
#			rm -r zenmap/share/zenmap/locale/${lingua} || die
98
			rm -r zenmap/share/zenmap/locale/${lingua} || die
103
#			rm zenmap/share/zenmap/locale/${lingua}.po || die
99
			rm zenmap/share/zenmap/locale/${lingua}.po || die
104
#		done
100
		done
105
#	fi
101
	fi
106
102
107
	sed -i \
103
	sed -i \
108
		-e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \
104
		-e '/^ALL_LINGUAS =/{s|$| id|g;s|jp|ja|g}' \
109
		Makefile.in || die
105
		Makefile.in || die
110
	# Fix desktop files wrt bug #432714
106
	# Fix desktop files wrt bug #432714
111
#	sed -i \
107
	sed -i \
112
#		-e 's|^Categories=.*|Categories=Network;System;Security;|g' \
108
		-e 's|^Categories=.*|Categories=Network;System;Security;|g' \
113
#		zenmap/install_scripts/unix/zenmap-root.desktop \
109
		zenmap/install_scripts/unix/zenmap-root.desktop \
114
#		zenmap/install_scripts/unix/zenmap.desktop || die
110
		zenmap/install_scripts/unix/zenmap.desktop || die
115
111
116
	cp libdnet-stripped/include/config.h.in{,.nmap-orig} || die
112
	cp libdnet-stripped/include/config.h.in{,.nmap-orig} || die
117
113
Lines 135-140 Link Here
135
		$(use_with nmap-update) \
131
		$(use_with nmap-update) \
136
		$(use_with nping) \
132
		$(use_with nping) \
137
		$(use_with ssl openssl) \
133
		$(use_with ssl openssl) \
134
		$(use_with zenmap) \
138
		$(usex libssh2 --with-zlib) \
135
		$(usex libssh2 --with-zlib) \
139
		$(usex nse --with-zlib) \
136
		$(usex nse --with-zlib) \
140
		$(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
137
		$(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
Lines 143-150 Link Here
143
		--with-pcre=/usr
140
		--with-pcre=/usr
144
	#	Commented out because configure does weird things
141
	#	Commented out because configure does weird things
145
	#	--with-liblinear=/usr \
142
	#	--with-liblinear=/usr \
146
	#	$(use_with zenmap) \
147
148
}
143
}
149
144
150
src_compile() {
145
src_compile() {
Lines 179-186 Link Here
179
174
180
	dodoc CHANGELOG HACKING docs/README docs/*.txt
175
	dodoc CHANGELOG HACKING docs/README docs/*.txt
181
176
182
#	if use zenmap; then
177
	if use zenmap; then
183
#		doicon "${DISTDIR}/nmap-logo-64.png"
178
		doicon "${DISTDIR}/nmap-logo-64.png"
184
#		python_optimize
179
		python_optimize
185
#	fi
180
	fi
186
}
181
}

Return to bug 702288