mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-02-15 11:52:38 +01:00
app-antivirus/veil/veil-3.1.12.ebuild app-crypt/yubioath-desktop/yubioath-desktop-5.0.1-r2.ebuild app-crypt/yubioath-desktop/yubioath-desktop-5.0.1-r2.ebuild app-crypt/yubioath-desktop/yubioath-desktop-9999.ebuild app-crypt/yubioath-desktop/yubioath-desktop-9999.ebuild app-crypt/yubioath-desktop/yubioath-desktop-5.0.2.ebuild app-crypt/yubioath-desktop/yubioath-desktop-5.0.2.ebuild app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2-r2.ebuild app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2-r2.ebuild app-exploits/weevely/weevely-9999.ebuild app-exploits/weevely/weevely-9999.ebuild app-exploits/empire/empire-3.0.6.ebuild app-exploits/empire/empire-3.0.6.ebuild app-exploits/empire/empire-3.0.7.ebuild app-exploits/empire/empire-3.0.7.ebuild app-exploits/wesng/wesng-99999999.ebuild app-exploits/wesng/wesng-99999999.ebuild app-forensics/libvshadow/libvshadow-20191221.ebuild app-forensics/spiderfoot/spiderfoot-3.0.ebuild app-forensics/spiderfoot/spiderfoot-3.0.ebuild app-forensics/fuxploider/fuxploider-1.0.ebuild app-forensics/fuxploider/fuxploider-1.0.ebuild app-forensics/fuxploider/fuxploider-9999.ebuild app-forensics/fuxploider/fuxploider-9999.ebuild dev-db/sqlmap/sqlmap-9999.ebuild dev-db/sqlmap/sqlmap-9999.ebuild dev-embedded/libmpsse/libmpsse-1.3.2.ebuild dev-embedded/libmpsse/libmpsse-1.3_p20160602.ebuild dev-libs/radare2-bindings/radare2-bindings-3.3.0.ebuild dev-libs/radare2-bindings/radare2-bindings-3.6.0.ebuild dev-libs/radare2-bindings/radare2-bindings-4.0.0.ebuild dev-libs/hashdb/hashdb-3.1.0-r1.ebuild dev-libs/hashdb/hashdb-3.1.0-r1.ebuild dev-libs/libvhdi/libvhdi-20181227.ebuild dev-libs/libvhdi/libvhdi-20191221.ebuild dev-libs/libvmdk/libvmdk-20181227.ebuild dev-libs/libvmdk/libvmdk-20191221.ebuild dev-util/appmon/appmon-0.5.ebuild dev-util/mobsf/mobsf-3.0.1.ebuild dev-util/mobsf/mobsf-3.0.1.ebuild net-analyzer/geoedge/geoedge-0.2-r2.ebuild net-analyzer/metagoofil/metagoofil-1.4b-r1.ebuild net-analyzer/metagoofil/metagoofil-2.2.ebuild net-analyzer/polenum/polenum-1.6.ebuild net-analyzer/sipvicious/sipvicious-0.2.8-r4.ebuild net-analyzer/subdomainer/subdomainer-1.3-r2.ebuild net-analyzer/ham2mon/ham2mon-20170603.ebuild net-analyzer/cipherscan/cipherscan-20180519.ebuild net-analyzer/commix/commix-2.8.ebuild net-analyzer/commix/commix-2.9.ebuild net-analyzer/commix/commix-3.0.ebuild net-analyzer/xsstrike/xsstrike-3.1.5.ebuild net-analyzer/xsstrike/xsstrike-3.1.5.ebuild net-analyzer/xsstrike/xsstrike-9999.ebuild net-analyzer/xsstrike/xsstrike-9999.ebuild net-analyzer/responder/responder-3.0.0.0-r1.ebuild net-analyzer/responder/responder-3.0.0.0-r1.ebuild net-analyzer/tplmap/tplmap-20190820.ebuild net-analyzer/tplmap/tplmap-20190820.ebuild net-analyzer/GyoiThon/GyoiThon-9999.ebuild net-analyzer/pret/pret-20180611.ebuild net-analyzer/dirsearch/dirsearch-0.3.8-r1.ebuild net-analyzer/dirsearch/dirsearch-0.3.8-r1.ebuild net-analyzer/dirsearch/dirsearch-0.3.9.ebuild net-analyzer/dirsearch/dirsearch-0.3.9.ebuild net-analyzer/iposint/iposint-20190615.ebuild net-analyzer/iposint/iposint-20190615.ebuild net-analyzer/set/set-8.0.1.ebuild net-analyzer/sublert/sublert-1.4.7_p20190810.ebuild net-analyzer/sublert/sublert-1.4.7_p20190810.ebuild net-analyzer/bolt/bolt-9999.ebuild net-analyzer/bolt/bolt-9999.ebuild net-analyzer/nmap/nmap-7.80-r1.ebuild net-analyzer/nmap/nmap-7.80-r1.ebuild net-dialup/freeradius/freeradius-3.0.19-r1.ebuild net-dialup/freeradius/freeradius-3.0.19-r1.ebuild net-misc/munin/munin-0.14.1-r1.ebuild net-misc/munin/munin-0.14.1-r1.ebuild net-misc/munin/munin-9999.ebuild net-misc/munin/munin-9999.ebuild net-misc/brutespray/brutespray-1.6.4.ebuild net-misc/corscanner/corscanner-99999999.ebuild net-misc/corscanner/corscanner-99999999.ebuild net-misc/corstest/corstest-99999999.ebuild net-misc/sherlock/sherlock-9999.ebuild net-misc/sherlock/sherlock-9999.ebuild net-proxy/mallory/mallory-0.2.0_p20130109.ebuild net-wireless/fern-wifi-cracker/fern-wifi-cracker-3.0.ebuild net-wireless/fern-wifi-cracker/fern-wifi-cracker-3.0.ebuild net-wireless/gr-dsd/gr-dsd-9999.ebuild net-wireless/gr-gsm/gr-gsm-9999.ebuild net-wireless/op25/op25-9999.ebuild net-wireless/op25/op25-9999.ebuild net-wireless/wifi-pumpkin/wifi-pumpkin-0.8.8-r2.ebuild net-wireless/wifitap/wifitap-0.4.2-r1.ebuild net-wireless/wifitap/wifitap-0.4.2-r1.ebuild net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild net-wireless/gr-air-modes/gr-air-modes-20191016.ebuild net-wireless/gnuradio/gnuradio-3.8.0.0.ebuild net-wireless/gr-iqbal/gr-iqbal-0.37.2_p20191204.ebuild sci-electronics/pcie_injector/pcie_injector-20180527.ebuild sys-apps/razercfg/razercfg-0.41.ebuild sys-apps/razercfg/razercfg-0.41-r1.ebuild sys-apps/razercfg/razercfg-0.41-r1.ebuild sys-devel/gdb-dashboard/gdb-dashboard-9999.ebuild sys-devel/gdb-dashboard/gdb-dashboard-9999.ebuild sys-devel/peda/peda-9999.ebuild sys-devel/peda/peda-9999.ebuild sys-devel/gef/gef-99999999.ebuild sys-devel/gef/gef-99999999.ebuild sys-devel/pwndbg/pwndbg-99999999.ebuild sys-devel/pwndbg/pwndbg-99999999.ebuild www-apps/Tiredful-API/Tiredful-API-9999.ebuild www-apps/seafile-pro-server/seafile-pro-server-7.0.13.ebuild
187 lines
4.5 KiB
Bash
187 lines
4.5 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
#https://bugs.gentoo.org/702288
|
|
PYTHON_COMPAT=( python3_{6,7} )
|
|
PYTHON_REQ_USE="sqlite,xml"
|
|
|
|
inherit autotools desktop flag-o-matic python-single-r1 toolchain-funcs user
|
|
|
|
MY_P=${P/_beta/BETA}
|
|
|
|
DESCRIPTION="A utility for network discovery and security auditing"
|
|
HOMEPAGE="https://nmap.org/"
|
|
SRC_URI="
|
|
https://nmap.org/dist/${MY_P}.tar.bz2
|
|
https://dev.gentoo.org/~jer/nmap-logo-64.png
|
|
"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
|
|
IUSE="ipv6 libressl libssh2 ncat ndiff nls nmap-update nping +nse ssl system-lua"
|
|
# zenmap
|
|
|
|
#NMAP_LINGUAS=( de fr hi hr it ja pl pt_BR ru zh )
|
|
REQUIRED_USE="
|
|
system-lua? ( nse )
|
|
ndiff? ( ${PYTHON_REQUIRED_USE} )"
|
|
# zenmap? ( ${PYTHON_REQUIRED_USE} )
|
|
|
|
RDEPEND="
|
|
dev-libs/liblinear:=
|
|
dev-libs/libpcre
|
|
net-libs/libpcap
|
|
libssh2? (
|
|
net-libs/libssh2[zlib]
|
|
sys-libs/zlib
|
|
)
|
|
ndiff? ( ${PYTHON_DEPS} )
|
|
nls? ( virtual/libintl )
|
|
nmap-update? (
|
|
dev-libs/apr
|
|
dev-vcs/subversion
|
|
)
|
|
nse? ( sys-libs/zlib )
|
|
ssl? (
|
|
!libressl? ( dev-libs/openssl:0= )
|
|
libressl? ( dev-libs/libressl:= )
|
|
)
|
|
system-lua? ( >=dev-lang/lua-5.2:*[deprecated] )
|
|
"
|
|
# zenmap? (
|
|
# dev-python/pygtk:2[${PYTHON_SINGLE_USEDEP}]
|
|
# ${PYTHON_DEPS}
|
|
# )
|
|
|
|
DEPEND="
|
|
${RDEPEND}
|
|
nls? ( sys-devel/gettext )
|
|
"
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-5.10_beta1-string.patch
|
|
"${FILESDIR}"/${PN}-5.21-python.patch
|
|
"${FILESDIR}"/${PN}-6.46-uninstaller.patch
|
|
"${FILESDIR}"/${PN}-6.25-liblua-ar.patch
|
|
"${FILESDIR}"/${PN}-7.25-no-FORTIFY_SOURCE.patch
|
|
"${FILESDIR}"/${PN}-7.25-CXXFLAGS.patch
|
|
"${FILESDIR}"/${PN}-7.25-libpcre.patch
|
|
"${FILESDIR}"/${PN}-7.31-libnl.patch
|
|
"${FILESDIR}"/${PN}-7.80-ac-config-subdirs.patch
|
|
"${FILESDIR}"/${PN}-7.80-python3-port-of-ndiff.patch
|
|
"${FILESDIR}"/${PN}-7.80-python3-configure.patch
|
|
)
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
pkg_setup() {
|
|
if use ndiff; then
|
|
python-single-r1_pkg_setup
|
|
fi
|
|
}
|
|
|
|
src_prepare() {
|
|
rm -r liblinear/ libpcap/ libpcre/ libssh2/ libz/ || die
|
|
|
|
cat "${FILESDIR}"/nls.m4 >> "${S}"/acinclude.m4 || die
|
|
|
|
default
|
|
|
|
# local lingua
|
|
# if use nls; then
|
|
# for lingua in ${NMAP_LINGUAS[@]}; do
|
|
# if ! has ${lingua} ${LINGUAS-${lingua}}; then
|
|
# rm -r zenmap/share/zenmap/locale/${lingua} || die
|
|
# rm zenmap/share/zenmap/locale/${lingua}.po || die
|
|
# fi
|
|
# done
|
|
# else
|
|
# # configure/make ignores --disable-nls
|
|
# for lingua in ${NMAP_LINGUAS[@]}; do
|
|
# rm -r zenmap/share/zenmap/locale/${lingua} || die
|
|
# rm zenmap/share/zenmap/locale/${lingua}.po || die
|
|
# 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 's|^Categories=.*|Categories=Network;System;Security;|g' \
|
|
# zenmap/install_scripts/unix/zenmap-root.desktop \
|
|
# zenmap/install_scripts/unix/zenmap.desktop || die
|
|
|
|
cp libdnet-stripped/include/config.h.in{,.nmap-orig} || die
|
|
|
|
eautoreconf
|
|
|
|
if [[ ${CHOST} == *-darwin* ]] ; then
|
|
# we need the original for a Darwin-specific fix, bug #604432
|
|
mv libdnet-stripped/include/config.h.in{.nmap-orig,} || die
|
|
fi
|
|
}
|
|
|
|
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 libssh2) \
|
|
$(use_with ncat) \
|
|
$(use_with ndiff) \
|
|
$(use_with nmap-update) \
|
|
$(use_with nping) \
|
|
$(use_with ssl openssl) \
|
|
$(usex libssh2 --with-zlib) \
|
|
$(usex nse --with-zlib) \
|
|
$(usex nse --with-liblua=$(usex system-lua /usr included '' '') --without-liblua) \
|
|
--cache-file="${S}"/config.cache \
|
|
--with-libdnet=included \
|
|
--with-pcre=/usr
|
|
# Commented out because configure does weird things
|
|
# --with-liblinear=/usr \
|
|
# $(use_with zenmap) \
|
|
|
|
}
|
|
|
|
src_compile() {
|
|
local directory
|
|
for directory in . libnetutil nsock/src \
|
|
$(usex ncat ncat '') \
|
|
$(usex nmap-update nmap-update '') \
|
|
$(usex nping nping '')
|
|
do
|
|
emake -C "${directory}" makefile.dep
|
|
done
|
|
|
|
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
|
|
|
|
# if use zenmap; then
|
|
# doicon "${DISTDIR}/nmap-logo-64.png"
|
|
# python_optimize
|
|
# fi
|
|
}
|