packetstormexploits: merge all into one universal ebuild, symlinking

This commit is contained in:
blshkv 2018-07-24 10:20:17 +08:00
parent 998946a00c
commit 0c42872991
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
11 changed files with 17 additions and 147 deletions

View file

@ -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"

View file

@ -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 *
}

View file

@ -0,0 +1 @@
packetstormexploits-2013.12.ebuild

View file

@ -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 *
}

View file

@ -0,0 +1 @@
packetstormexploits-2013.12.ebuild

View file

@ -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 *
}

View file

@ -0,0 +1 @@
packetstormexploits-2013.12.ebuild

View file

@ -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 *
}

View file

@ -0,0 +1 @@
packetstormexploits-2013.12.ebuild

View file

@ -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 *
}

View file

@ -0,0 +1 @@
packetstormexploits-2013.12.ebuild