set: deps fix, issue #171

This commit is contained in:
blshkv 2017-03-15 16:33:55 +08:00
parent 6910437b37
commit e46b05e894
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
4 changed files with 13 additions and 263 deletions

View file

@ -1,3 +1 @@
DIST set-5.3.4.tar.gz 43434794 SHA256 3431b0a34fc9c32616e675b279c95ce4ed399081434217796ebd5c53125e3162 SHA512 609d22e4838024c9980693fbcd2cf00868be3ea896259fe5ae087882ede4d7599d7de33c85e25fcb8587ec49dbf9a1f2df3156806b85738a59459f9f82edce08 WHIRLPOOL e1943723e4645cc7e6d1a97430228b3b3e848fc803d39f8314b09ecd09a1466211517e3d96b34873f1fac88e6f272721651ce8d9b61a371a5d61640aea073814
DIST set-5.4.8.tar.gz 41903976 SHA256 5db5663a533663a344f28b4cff7ee40a3410a7d1106de1a61d49635fc068630a SHA512 7f580adb852df736f6def4851da5ca50c6dd702f48c1fa679c75ba58c4a92b1576367121c6d8ae1957a4cfdcca506cc0e30512cc2c3a09a6743103d5788a1ced WHIRLPOOL ed292cbcdad06653b11cbb60b6d8cb7aec7eb1323def937ff3cb66d2f4bdf2dcf8689cdba94ebc523afabb9eb3c0af6daedc49024d34031b372c3b540faf1cbc
DIST set-6.0.tar.gz 41976414 SHA256 0e13a3d43265c4460340a940792982ad4753212967322ecaa79244d481c5844d SHA512 808c0ce713b86087e5436612a232070ffe39d4d96a3f8372c896d1a059206e08f5cfa9d849daf39272e7ce33452813ebf089c6643f4a4f6d2baa0d734cb60401 WHIRLPOOL 2163d8756ae0b25d3a33cd8f724c16a51eac343fdda5ddac21d3bd804084e3139e55b10995aa2c23d1f0d9639d07600ff389bf137c7f785c4093c39aef6a7532

View file

@ -1,112 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
EAPI="5"
MY_P=${P/set/social-engineer-toolkit}
PYTHON_DEPEND="2"
inherit multilib eutils python
SRC_URI="https://github.com/trustedsec/social-engineer-toolkit/archive/${PV}.tar.gz -> ${P}.tar.gz"
DESCRIPTION="A social engineering framework"
HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="+ettercap +wireless"
QA_PREBUILT="
usr/$(get_libdir)/set/src/payloads/ratte/ratteserver
usr/$(get_libdir)/set/src/payloads/set_payloads/shell.linux
"
# blocker on ruby-1.8.7:
# http://spool.metasploit.com/pipermail/framework/2008-September/003671.html
RDEPEND="virtual/jdk
net-analyzer/metasploit
dev-python/pexpect
net-misc/wget
dev-python/beautifulsoup:python-2
dev-python/pymssql
dev-python/pyopenssl
ettercap? ( net-analyzer/ettercap )
wireless? ( net-wireless/aircrack-ng
net-analyzer/dsniff )
|| ( mail-mta/ssmtp
mail-mta/postfix
mail-mta/sendmail )"
DEPEND=""
S=${WORKDIR}/${MY_P}
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_convert_shebangs -r 2 .
if has_version mail-mta/ssmtp
then
epatch "${FILESDIR}"/${P}-ssmtp.patch
fi
if has_version mail-mta/postfix
then
sed -e 's:/etc/init.d/sendmail:/etc/init.d/postfix:g' \
-i src/phishing/smtp/client/smtp_web.py \
src/phishing/smtp/client/smtp_client.py
fi
# We forced postfix or sendmail anyway
sed -e 's:SENDMAIL=OFF:SENDMAIL=ON:' -i config/set_config
sed -e 's:METASPLOIT_PATH=.*:METASPLOIT_PATH=/usr/lib/metasploit/:' -i config/set_config
# fix paths for airbase, dnsspoof
sed -e 's|/usr/local/sbin/|/usr/sbin/|' -i config/set_config
}
src_install() {
# We have global agreement
touch "${S}"/src/agreement4
# should be as simple as copying everything into the target...
dodir /usr/$(get_libdir)/${PN}
cp -R "${S}"/* "${D}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
rm -Rf "${D}"/usr/$(get_libdir)/${PN}/readme
#we don't need a dynamically compiled wget, we have that
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/linux
#especially not for MacOSX
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/osx
#remove more broken staticly compiled crap
rm -rf "${D}"/usr/$(get_libdir)/set/src/wireless/{airbase-ng,airmon-ng}
#remove other unnecessary files
rm -rf "${D}"/usr/$(get_libdir)/set/{setup.py,set-update}
dodir /usr/share/doc/${PF}
cp -R "${S}"/readme/* "${D}"/usr/share/doc/${PF}
dosym /usr/share/doc/${PF} /usr/$(get_libdir)/${PN}/readme
dosbin "${FILESDIR}"/{setoolkit,set-automate,set-proxy,set-web}
#make all tools start with set-<name>
dosym /usr/sbin/setoolkit /usr/sbin/set-toolkit
dosym /usr/sbin/setoolkit /usr/sbin/se-toolkit
chown -R root:0 "${D}"
}
#It's just to buggy that python_mod_optimize doesn't help.
#pkg_postinst() {
# python_mod_optimize /usr/$(get_libdir)/set/src/core/set.py \
# /usr/$(get_libdir)/set/config/update_config.py \
# /usr/$(get_libdir)/set/src/phishing/smtp/client/smtp_web.py
#}
#pkg_postrm() {
# Set is not coded properly.
# We use the workaround below to remove set_config.py and other pyc/pyo files
# rm -rf "/usr/$(get_libdir)/set"
#}

View file

@ -1,119 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
EAPI="5"
PYTHON_DEPEND="2"
inherit multilib eutils python
if [[ ${PV} == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/trustedsec/social-engineer-toolkit.git"
KEYWORDS=""
else
SRC_URI="https://github.com/trustedsec/social-engineer-toolkit/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~x86"
MY_P=${P/set/social-engineer-toolkit}
S=${WORKDIR}/${MY_P}
fi
DESCRIPTION="A social engineering framework"
HOMEPAGE="https://www.trustedsec.com/downloads/social-engineer-toolkit/"
LICENSE="BSD"
SLOT="0"
IUSE="+ettercap +wireless"
QA_PREBUILT="
usr/$(get_libdir)/set/src/payloads/ratte/ratteserver
usr/$(get_libdir)/set/src/payloads/set_payloads/shell.linux
"
# blocker on ruby-1.8.7:
# http://spool.metasploit.com/pipermail/framework/2008-September/003671.html
RDEPEND="virtual/jdk
net-analyzer/metasploit
dev-python/pexpect
net-misc/wget
dev-python/beautifulsoup:python-2
dev-python/pymssql
dev-python/pyopenssl
ettercap? ( net-analyzer/ettercap )
wireless? ( net-wireless/aircrack-ng
net-analyzer/dsniff )
|| ( mail-mta/ssmtp
mail-mta/postfix
mail-mta/sendmail )"
DEPEND=""
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_convert_shebangs -r 2 .
if has_version mail-mta/ssmtp
then
epatch "${FILESDIR}"/${PN}-5.3.4-ssmtp.patch
fi
if has_version mail-mta/postfix
then
sed -e 's:/etc/init.d/sendmail:/etc/init.d/postfix:g' \
-i src/phishing/smtp/client/smtp_web.py \
src/phishing/smtp/client/smtp_client.py
fi
# We forced postfix or sendmail anyway
sed -e 's:SENDMAIL=OFF:SENDMAIL=ON:' -i config/set_config
sed -e 's:METASPLOIT_PATH=.*:METASPLOIT_PATH=/usr/lib/metasploit/:' -i config/set_config
# fix paths for airbase, dnsspoof
sed -e 's|/usr/local/sbin/|/usr/sbin/|' -i config/set_config
}
src_install() {
# We have global agreement
touch "${S}"/src/agreement4
# should be as simple as copying everything into the target...
dodir /usr/$(get_libdir)/${PN}
cp -R "${S}"/* "${D}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
rm -Rf "${D}"/usr/$(get_libdir)/${PN}/readme
#we don't need a dynamically compiled wget, we have that
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/linux
#especially not for MacOSX
rm -rf "${D}"/usr/$(get_libdir)/set/src/webattack/web_clone/osx
#remove more broken staticly compiled crap
rm -rf "${D}"/usr/$(get_libdir)/set/src/wireless/{airbase-ng,airmon-ng}
#remove other unnecessary files
rm -rf "${D}"/usr/$(get_libdir)/set/{setup.py,set-update}
dodir /usr/share/doc/${PF}
cp -R "${S}"/readme/* "${D}"/usr/share/doc/${PF}
dosym /usr/share/doc/${PF} /usr/$(get_libdir)/${PN}/readme
dosbin "${FILESDIR}"/{setoolkit,set-automate,set-proxy,set-web}
#make all tools start with set-<name>
dosym /usr/sbin/setoolkit /usr/sbin/set-toolkit
dosym /usr/sbin/setoolkit /usr/sbin/se-toolkit
chown -R root:0 "${D}"
}
#It's just to buggy that python_mod_optimize doesn't help.
#pkg_postinst() {
# python_mod_optimize /usr/$(get_libdir)/set/src/core/set.py \
# /usr/$(get_libdir)/set/config/update_config.py \
# /usr/$(get_libdir)/set/src/phishing/smtp/client/smtp_web.py
#}
#pkg_postrm() {
# Set is not coded properly.
# We use the workaround below to remove set_config.py and other pyc/pyo files
# rm -rf "/usr/$(get_libdir)/set"
#}

View file

@ -1,12 +1,10 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
EAPI="5"
EAPI=6
PYTHON_DEPEND="2"
inherit multilib eutils python
PYTHON_COMPAT=( python2_7 python3_{3,4} )
inherit eutils python-single-r1 multilib
if [[ ${PV} == "9999" ]]; then
inherit git-r3
@ -27,8 +25,8 @@ SLOT="0"
IUSE="+ettercap +wireless"
QA_PREBUILT="
usr/$(get_libdir)/set/src/payloads/ratte/ratteserver
usr/$(get_libdir)/set/src/payloads/set_payloads/shell.linux
usr/lib/set/src/payloads/ratte/ratteserver
usr/lib/set/src/payloads/set_payloads/shell.linux
"
# blocker on ruby-1.8.7:
@ -43,19 +41,15 @@ RDEPEND="virtual/jdk
ettercap? ( net-analyzer/ettercap )
wireless? ( net-wireless/aircrack-ng
net-analyzer/dsniff )
|| ( mail-mta/ssmtp
mail-mta/postfix
mail-mta/sendmail )"
virtual/mta"
DEPEND=""
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
#pkg_setup() {
# python-single_pkg_setup
#}
src_prepare() {
python_convert_shebangs -r 2 .
python_fix_shebang .
if has_version mail-mta/ssmtp
then
@ -73,6 +67,8 @@ src_prepare() {
# fix paths for airbase, dnsspoof
sed -e 's|/usr/local/sbin/|/usr/sbin/|' -i config/set_config
eapply_user
}
src_install() {
@ -104,16 +100,3 @@ src_install() {
chown -R root:0 "${D}"
}
#It's just to buggy that python_mod_optimize doesn't help.
#pkg_postinst() {
# python_mod_optimize /usr/$(get_libdir)/set/src/core/set.py \
# /usr/$(get_libdir)/set/config/update_config.py \
# /usr/$(get_libdir)/set/src/phishing/smtp/client/smtp_web.py
#}
#pkg_postrm() {
# Set is not coded properly.
# We use the workaround below to remove set_config.py and other pyc/pyo files
# rm -rf "/usr/$(get_libdir)/set"
#}