From ea716ce0ee8d1ffffdf374f74b9eefcf7586c3f9 Mon Sep 17 00:00:00 2001 From: blshkv Date: Thu, 5 Jul 2018 18:51:37 +0800 Subject: [PATCH] recon-ng: fix use deps, fix 9999, symlink --- net-analyzer/recon-ng/Manifest | 4 +- net-analyzer/recon-ng/recon-ng-4.9.1.ebuild | 45 ------------- net-analyzer/recon-ng/recon-ng-4.9.2.ebuild | 48 -------------- .../recon-ng/recon-ng-4.9.3-r1.ebuild | 1 + net-analyzer/recon-ng/recon-ng-4.9.3.ebuild | 48 -------------- net-analyzer/recon-ng/recon-ng-9999.ebuild | 63 ++++++++++++------- 6 files changed, 44 insertions(+), 165 deletions(-) delete mode 100644 net-analyzer/recon-ng/recon-ng-4.9.1.ebuild delete mode 100644 net-analyzer/recon-ng/recon-ng-4.9.2.ebuild create mode 120000 net-analyzer/recon-ng/recon-ng-4.9.3-r1.ebuild delete mode 100644 net-analyzer/recon-ng/recon-ng-4.9.3.ebuild diff --git a/net-analyzer/recon-ng/Manifest b/net-analyzer/recon-ng/Manifest index 5303ec7d5..b4fb4f5a8 100644 --- a/net-analyzer/recon-ng/Manifest +++ b/net-analyzer/recon-ng/Manifest @@ -1,3 +1 @@ -DIST recon-ng-4.9.1.tar.bz2 401504 SHA256 f25b621f39a43421a50cf8d34906063477a9a1a4c38f6c22c9b3e8140c9b1b7f SHA512 b7ff1221f903e2906510584d499dcf5a8e48c3b3d6da7fa2b4160a3017d037ac2662604a5bd123cea2b117ad6a7a7ce59471ec1c4a6cb5ffd41da6377742c32f WHIRLPOOL d611008163a79f066a12cfb5b9c6318bc542c15420ba08f0ae2c7c1d7c3963150831ac860255f782781566ee55ab6add342c3906350cfac3e04be81201317c31 -DIST recon-ng-4.9.2.tar.bz2 402070 SHA256 f07743555ed1214b9c97cb1c052cd1feb044435c6ad55039666d620996127a79 SHA512 62f3033935e5635064536a97c4398bf9c5eb292c101ccf55f7c56fd764314bb32c8bb5b5c87a2b6fc4d64ac4a55ba9dc71c5e580a3f40fa714f7e641642e5a6d WHIRLPOOL 5058e132da29b8af8a8b0137405006f18f84be387fc3d836cf315b9d3082f8360d93d180ee8ae4bd4463f05b546dcaa6710b86753d3d29f8829cac2978ea7049 -DIST recon-ng-4.9.3.tar.bz2 401091 SHA256 aa16ce17ad96bed5910278da4b949ff128efcedef2c0697703d1b5425b283643 SHA512 da51402c431e39205cb67e5639524ff635ee82d27769f2a1ff8ae3010cec3e31b6c769ae967a725af64c7baec5bb34e5fedb4110d352766a192e597bc1bc21e0 WHIRLPOOL 01dbeb299c4f29c61b1188d68f067a15cd3ae23b492af7135421da91bce2880998a53509b7bbf0ac26906ed6550adee717c32ed9d3431a6d40bc3b9847eb2d09 +DIST recon-ng-4.9.3.tar.bz2 401091 BLAKE2B b5597f096dfd770bd69afe2cc1dbd1fe3375da5203b12f4e857d0ee9a8ec3bf5881ee55a97fdbb92decb3e7bbe0b29add237a6efd71a661d35f3ba1588367f95 SHA512 da51402c431e39205cb67e5639524ff635ee82d27769f2a1ff8ae3010cec3e31b6c769ae967a725af64c7baec5bb34e5fedb4110d352766a192e597bc1bc21e0 diff --git a/net-analyzer/recon-ng/recon-ng-4.9.1.ebuild b/net-analyzer/recon-ng/recon-ng-4.9.1.ebuild deleted file mode 100644 index 54a4ba373..000000000 --- a/net-analyzer/recon-ng/recon-ng-4.9.1.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit python-single-r1 - -CUR_COMMIT="9fdc4d7e7cd4" - -DESCRIPTION="Web Reconnaissance Framework" -HOMEPAGE="https://bitbucket.org/LaNMaSteR53/recon-ng" -SRC_URI="https://bitbucket.org/LaNMaSteR53/recon-ng/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="${PYTHON_DEPS} - >=dev-python/dicttoxml-1.6.6 - virtual/python-dnspython - >=dev-python/jsonrpclib-0.1.3 - >=dev-python/lxml-3.4.4 - >=dev-python/mechanize-0.2.5 - >=dev-python/slowaes-0.1 - >=dev-python/xlsxwriter-0.7.3 - >=dev-python/PyPDF2-1.25.1 - >=dev-python/olefile-0.42.1 - " -DEPEND="${RDEPEND}" - -S="${WORKDIR}/LaNMaSteR53-${PN}-${CUR_COMMIT}" - -src_install() { - dodir /usr/share/"${PN}"/ - cp -R * "${D}"/usr/share/"${PN}"/ - dosym /usr/share/"${PN}"/recon-rpc /usr/bin/recon-rpc - dosym /usr/share/"${PN}"/recon-cli /usr/bin/recon-cli - dosym /usr/share/"${PN}"/recon-ng /usr/bin/recon-ng - - python_fix_shebang "${ED}"/usr/share/recon-ng/ -} diff --git a/net-analyzer/recon-ng/recon-ng-4.9.2.ebuild b/net-analyzer/recon-ng/recon-ng-4.9.2.ebuild deleted file mode 100644 index 6d5854c23..000000000 --- a/net-analyzer/recon-ng/recon-ng-4.9.2.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit python-single-r1 - -CUR_COMMIT="70d967e3f530" - -DESCRIPTION="Web Reconnaissance Framework" -HOMEPAGE="https://bitbucket.org/LaNMaSteR53/recon-ng" -SRC_URI="https://bitbucket.org/LaNMaSteR53/recon-ng/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="${PYTHON_DEPS} - >=dev-python/dicttoxml-1.6.6 - virtual/python-dnspython - >=dev-python/jsonrpclib-0.1.3 - >=dev-python/lxml-3.4.4 - >=dev-python/mechanize-0.2.5 - >=dev-python/slowaes-0.1 - >=dev-python/xlsxwriter-0.7.3 - >=dev-python/PyPDF2-1.25.1 - >=dev-python/olefile-0.42.1 - dev-python/flask - dev-python/unicodecsv - " - -DEPEND="${RDEPEND}" - -S="${WORKDIR}/LaNMaSteR53-${PN}-${CUR_COMMIT}" - -src_install() { - dodir /usr/share/"${PN}"/ - cp -R * "${D}"/usr/share/"${PN}"/ - dosym /usr/share/"${PN}"/recon-rpc /usr/bin/recon-rpc - dosym /usr/share/"${PN}"/recon-cli /usr/bin/recon-cli - dosym /usr/share/"${PN}"/recon-ng /usr/bin/recon-ng - - python_fix_shebang "${ED}"/usr/share/recon-ng/ -} diff --git a/net-analyzer/recon-ng/recon-ng-4.9.3-r1.ebuild b/net-analyzer/recon-ng/recon-ng-4.9.3-r1.ebuild new file mode 120000 index 000000000..f12e29f79 --- /dev/null +++ b/net-analyzer/recon-ng/recon-ng-4.9.3-r1.ebuild @@ -0,0 +1 @@ +recon-ng-9999.ebuild \ No newline at end of file diff --git a/net-analyzer/recon-ng/recon-ng-4.9.3.ebuild b/net-analyzer/recon-ng/recon-ng-4.9.3.ebuild deleted file mode 100644 index c641a36a6..000000000 --- a/net-analyzer/recon-ng/recon-ng-4.9.3.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit python-single-r1 - -CUR_COMMIT="c83599e52159" - -DESCRIPTION="Web Reconnaissance Framework" -HOMEPAGE="https://bitbucket.org/LaNMaSteR53/recon-ng" -SRC_URI="https://bitbucket.org/LaNMaSteR53/recon-ng/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="${PYTHON_DEPS} - >=dev-python/dicttoxml-1.6.6 - virtual/python-dnspython - >=dev-python/jsonrpclib-0.1.3 - >=dev-python/lxml-3.4.4 - >=dev-python/mechanize-0.2.5 - >=dev-python/slowaes-0.1 - >=dev-python/xlsxwriter-0.7.3 - >=dev-python/PyPDF2-1.25.1 - >=dev-python/olefile-0.42.1 - dev-python/flask - dev-python/unicodecsv - " - -DEPEND="${RDEPEND}" - -S="${WORKDIR}/LaNMaSteR53-${PN}-${CUR_COMMIT}" - -src_install() { - dodir /usr/share/"${PN}"/ - cp -R * "${D}"/usr/share/"${PN}"/ - dosym /usr/share/"${PN}"/recon-rpc /usr/bin/recon-rpc - dosym /usr/share/"${PN}"/recon-cli /usr/bin/recon-cli - dosym /usr/share/"${PN}"/recon-ng /usr/bin/recon-ng - - python_fix_shebang "${ED}"/usr/share/recon-ng/ -} diff --git a/net-analyzer/recon-ng/recon-ng-9999.ebuild b/net-analyzer/recon-ng/recon-ng-9999.ebuild index 0567381e2..7cd3e7844 100644 --- a/net-analyzer/recon-ng/recon-ng-9999.ebuild +++ b/net-analyzer/recon-ng/recon-ng-9999.ebuild @@ -1,36 +1,57 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ -EAPI=5 +EAPI=6 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +PYTHON_COMPAT=( python2_7 ) +#inherit python-single-r1 -inherit python-r1 git-2 +#PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +inherit python-r1 + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://bitbucket.org/LaNMaSteR53/recon-ng" + KEYWORDS="" +else + CUR_COMMIT="c83599e52159" + SRC_URI="https://bitbucket.org/LaNMaSteR53/recon-ng/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/LaNMaSteR53-${PN}-${CUR_COMMIT}" +fi DESCRIPTION="Web Reconnaissance Framework" HOMEPAGE="https://bitbucket.org/LaNMaSteR53/recon-ng" -EGIT_REPO_URI="https://bitbucket.org/LaNMaSteR53/recon-ng" LICENSE="GPL-3" SLOT="0" -KEYWORDS="" IUSE="" -RDEPEND="${PYTHON_DEPS}" +RDEPEND="${PYTHON_DEPS} + >=dev-python/dicttoxml-1.6.6[${PYTHON_USEDEP}] + virtual/python-dnspython[${PYTHON_USEDEP}] + >=dev-python/jsonrpclib-0.1.3[${PYTHON_USEDEP}] + >=dev-python/lxml-3.4.4[${PYTHON_USEDEP}] + >=dev-python/mechanize-0.2.5[${PYTHON_USEDEP}] + >=dev-python/slowaes-0.1[${PYTHON_USEDEP}] + >=dev-python/xlsxwriter-0.7.3[${PYTHON_USEDEP}] + >=dev-python/PyPDF2-1.25.1[${PYTHON_USEDEP}] + >=dev-python/olefile-0.42.1[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/unicodecsv[${PYTHON_USEDEP}]" DEPEND="${RDEPEND}" -#src_prepare() { -# find ./ -name .git\* | xargs rm -rf -# sed -i recon-ng.py -i recon-cli.py -i recon-rpc.py -e "s:sys.path.append('./core/'):import os\nos.chdir(os.path.dirname(os.path.realpath(__file__)))\nsys.path.append('./core/'):g" -#} - -src_install () { - dodir /usr/share/"${PN}"/ - cp -R * "${D}"/usr/share/"${PN}"/ - dosym /usr/share/"${PN}"/recon-rpc /usr/bin/recon-rpc - dosym /usr/share/"${PN}"/recon-cli /usr/bin/recon-cli - dosym /usr/share/"${PN}"/recon-ng /usr/bin/recon-ng - - python_fix_shebang "${ED}"/usr/share/recon-ng/ +pkg_setup() { + python_setup +} + +src_install() { + default + dodir /usr/share/"${PN}"/ + cp -R * "${ED}"/usr/share/"${PN}"/ + dosym "${EPREFIX}"/usr/share/"${PN}"/recon-rpc /usr/bin/recon-rpc + dosym "${EPREFIX}"/usr/share/"${PN}"/recon-cli /usr/bin/recon-cli + dosym "${EPREFIX}"/usr/share/"${PN}"/recon-ng /usr/bin/recon-ng + + python_fix_shebang "${ED}"usr/share/${PN}/ }