From 0c42872991b4141a36638fcb29881f9c1c2135b7 Mon Sep 17 00:00:00 2001 From: blshkv Date: Tue, 24 Jul 2018 10:20:17 +0800 Subject: [PATCH] packetstormexploits: merge all into one universal ebuild, symlinking --- ...ild => packetstormexploits-2012.12.ebuild} | 0 ...ild => packetstormexploits-2013.12.ebuild} | 15 ++++++-- .../packetstormexploits-2013.13.ebuild | 30 --------------- .../packetstormexploits-2014.12.ebuild | 1 + .../packetstormexploits-2014.13.ebuild | 30 --------------- .../packetstormexploits-2015.12.ebuild | 1 + .../packetstormexploits-2015.13.ebuild | 24 ------------ .../packetstormexploits-2016.12.ebuild | 1 + .../packetstormexploits-2016.13.ebuild | 24 ------------ .../packetstormexploits-2017.12.ebuild | 1 + .../packetstormexploits-2018.06.ebuild | 37 +------------------ 11 files changed, 17 insertions(+), 147 deletions(-) rename app-exploits/packetstormexploits/{packetstormexploits-2012.13.ebuild => packetstormexploits-2012.12.ebuild} (100%) rename app-exploits/packetstormexploits/{packetstormexploits-2017.13.ebuild => packetstormexploits-2013.12.ebuild} (59%) delete mode 100644 app-exploits/packetstormexploits/packetstormexploits-2013.13.ebuild create mode 120000 app-exploits/packetstormexploits/packetstormexploits-2014.12.ebuild delete mode 100644 app-exploits/packetstormexploits/packetstormexploits-2014.13.ebuild create mode 120000 app-exploits/packetstormexploits/packetstormexploits-2015.12.ebuild delete mode 100644 app-exploits/packetstormexploits/packetstormexploits-2015.13.ebuild create mode 120000 app-exploits/packetstormexploits/packetstormexploits-2016.12.ebuild delete mode 100644 app-exploits/packetstormexploits/packetstormexploits-2016.13.ebuild create mode 120000 app-exploits/packetstormexploits/packetstormexploits-2017.12.ebuild mode change 100644 => 120000 app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild diff --git a/app-exploits/packetstormexploits/packetstormexploits-2012.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2012.12.ebuild similarity index 100% rename from app-exploits/packetstormexploits/packetstormexploits-2012.13.ebuild rename to app-exploits/packetstormexploits/packetstormexploits-2012.12.ebuild diff --git a/app-exploits/packetstormexploits/packetstormexploits-2017.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2013.12.ebuild similarity index 59% rename from app-exploits/packetstormexploits/packetstormexploits-2017.13.ebuild rename to app-exploits/packetstormexploits/packetstormexploits-2013.12.ebuild index caec575fc..b4d1d9853 100644 --- a/app-exploits/packetstormexploits/packetstormexploits-2017.13.ebuild +++ b/app-exploits/packetstormexploits/packetstormexploits-2013.12.ebuild @@ -12,13 +12,22 @@ MY_PV_MM="${AVC[1]}" DESCRIPTION="Archive of packetstorm exploits" HOMEPAGE="http://packetstormsecurity.net" -#Use yearly archivers -SRC_URI="https://dl.packetstormsecurity.net/${MY_PV_YY}$((${MY_PV_MM}-1))-exploits/${MY_PV_YYYY}-exploits.tgz" +IUSE="" + +if [[ ${MY_PV_MM} == "12" ]]; then + #Use yearly archivers + SRC_URI="https://dl.packetstormsecurity.net/${MY_PV_YY}${MY_PV_MM}-exploits/${MY_PV_YYYY}-exploits.tgz" +else + #Use monthly archivers + for MY_M in $(eval echo "{01..$MY_PV_MM}"); do + SRC_URI="${SRC_URI} https://dl.packetstormsecurity.net/${MY_PV_YY}${MY_M}-exploits/${MY_PV_YY}${MY_M}-exploits.tgz" + done +fi LICENSE="HPND" SLOT="${MY_PV_YYYY}" + KEYWORDS="amd64 x86 arm" -IUSE="" DEPEND="" RDEPEND="!app-exploits/packetstormexploits:0" diff --git a/app-exploits/packetstormexploits/packetstormexploits-2013.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2013.13.ebuild deleted file mode 100644 index 0e3a59c1d..000000000 --- a/app-exploits/packetstormexploits/packetstormexploits-2013.13.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Archive of packetstorm exploits" -HOMEPAGE="http://packetstormsecurity.net" -IUSE="" - -#Use yearly archivers -SRC_URI="https://dl.packetstormsecurity.net/1312-exploits/2013-exploits.tgz" - -LICENSE="HPND" -SLOT="2013" -KEYWORDS="amd64 x86 arm" - -DEPEND="" -RDEPEND="!app-exploits/packetstormexploits:0" - -QA_PREBUILT="/usr/share/exploits/packetstormexploits/0001-exploits/bnc246 - /usr/share/exploits/packetstormexploits/0212-exploits/kadmin - /usr/share/exploits/packetstormexploits/9902-exploits/SDI-lsof - /usr/share/exploits/packetstormexploits/0204-exploits/7350fun" - -S="${WORKDIR}" - -src_install() { - insinto /usr/share/exploits/${PN}/ - doins -r * -} diff --git a/app-exploits/packetstormexploits/packetstormexploits-2014.12.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2014.12.ebuild new file mode 120000 index 000000000..b3dad4aac --- /dev/null +++ b/app-exploits/packetstormexploits/packetstormexploits-2014.12.ebuild @@ -0,0 +1 @@ +packetstormexploits-2013.12.ebuild \ No newline at end of file diff --git a/app-exploits/packetstormexploits/packetstormexploits-2014.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2014.13.ebuild deleted file mode 100644 index 1b02ed3fe..000000000 --- a/app-exploits/packetstormexploits/packetstormexploits-2014.13.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Archive of packetstorm exploits" -HOMEPAGE="http://packetstormsecurity.net" -IUSE="" - -#Use yearly archivers -SRC_URI="https://dl.packetstormsecurity.net/1412-exploits/2014-exploits.tgz" - -LICENSE="HPND" -SLOT="2014" -KEYWORDS="amd64 x86 arm" - -DEPEND="" -RDEPEND="!app-exploits/packetstormexploits:0" - -QA_PREBUILT="/usr/share/exploits/packetstormexploits/0001-exploits/bnc246 - /usr/share/exploits/packetstormexploits/0212-exploits/kadmin - /usr/share/exploits/packetstormexploits/9902-exploits/SDI-lsof - /usr/share/exploits/packetstormexploits/0204-exploits/7350fun" - -S="${WORKDIR}" - -src_install() { - insinto /usr/share/exploits/${PN}/ - doins -r * -} diff --git a/app-exploits/packetstormexploits/packetstormexploits-2015.12.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2015.12.ebuild new file mode 120000 index 000000000..b3dad4aac --- /dev/null +++ b/app-exploits/packetstormexploits/packetstormexploits-2015.12.ebuild @@ -0,0 +1 @@ +packetstormexploits-2013.12.ebuild \ No newline at end of file diff --git a/app-exploits/packetstormexploits/packetstormexploits-2015.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2015.13.ebuild deleted file mode 100644 index a0c7e1fce..000000000 --- a/app-exploits/packetstormexploits/packetstormexploits-2015.13.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Archive of packetstorm exploits" -HOMEPAGE="http://packetstormsecurity.net" -#Use yearly archivers -SRC_URI="https://dl.packetstormsecurity.net/1512-exploits/2015-exploits.tgz" - -LICENSE="HPND" -SLOT="2015" -KEYWORDS="amd64 x86 arm" -IUSE="" - -DEPEND="" -RDEPEND="!app-exploits/packetstormexploits:0" - -S="${WORKDIR}" - -src_install() { - insinto /usr/share/exploits/${PN}/ - doins -r * -} diff --git a/app-exploits/packetstormexploits/packetstormexploits-2016.12.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2016.12.ebuild new file mode 120000 index 000000000..b3dad4aac --- /dev/null +++ b/app-exploits/packetstormexploits/packetstormexploits-2016.12.ebuild @@ -0,0 +1 @@ +packetstormexploits-2013.12.ebuild \ No newline at end of file diff --git a/app-exploits/packetstormexploits/packetstormexploits-2016.13.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2016.13.ebuild deleted file mode 100644 index 884c73e04..000000000 --- a/app-exploits/packetstormexploits/packetstormexploits-2016.13.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -DESCRIPTION="Archive of packetstorm exploits" -HOMEPAGE="http://packetstormsecurity.net" -#Use yearly archivers -SRC_URI="https://dl.packetstormsecurity.net/1612-exploits/2016-exploits.tgz" - -LICENSE="HPND" -SLOT="2016" -KEYWORDS="amd64 x86 arm" -IUSE="" - -DEPEND="" -RDEPEND="!app-exploits/packetstormexploits:0" - -S="${WORKDIR}" - -src_install() { - insinto /usr/share/exploits/${PN}/ - doins -r * -} diff --git a/app-exploits/packetstormexploits/packetstormexploits-2017.12.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2017.12.ebuild new file mode 120000 index 000000000..b3dad4aac --- /dev/null +++ b/app-exploits/packetstormexploits/packetstormexploits-2017.12.ebuild @@ -0,0 +1 @@ +packetstormexploits-2013.12.ebuild \ No newline at end of file diff --git a/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild deleted file mode 100644 index bbc4b956f..000000000 --- a/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit versionator - -AVC=( $(get_version_components) ) -MY_PV_YYYY="${AVC[0]}" -MY_PV_YY="${AVC[0]:2:4}" -MY_PV_MM="${AVC[1]}" - -DESCRIPTION="Archive of packetstorm exploits" -HOMEPAGE="http://packetstormsecurity.net" -IUSE="" - -#Use monthly archivers -SRC_URI="" -for MY_M in $(eval echo "{01..$MY_PV_MM}"); do - SRC_URI="${SRC_URI} https://dl.packetstormsecurity.net/${MY_PV_YY}${MY_M}-exploits/${MY_PV_YY}${MY_M}-exploits.tgz" -done - -LICENSE="HPND" -SLOT="${MY_PV_YYYY}" - -KEYWORDS="amd64 x86 arm" - -DEPEND="" -RDEPEND="!app-exploits/packetstormexploits:0" - -S="${WORKDIR}" - -src_install() { - insinto /usr/share/exploits/${PN}/ - doins -r * -} diff --git a/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild b/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild new file mode 120000 index 000000000..b3dad4aac --- /dev/null +++ b/app-exploits/packetstormexploits/packetstormexploits-2018.06.ebuild @@ -0,0 +1 @@ +packetstormexploits-2013.12.ebuild \ No newline at end of file