# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Archive of packetstorm exploits"
HOMEPAGE="https://packetstormsecurity.com/"
IUSE="1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 +2010 +2011 +2012"

#Use yearly archivers
SRC_URI="1999? ( https://dl.packetstormsecurity.net/9912-exploits/1999-exploits.tgz )
	2000? ( https://dl.packetstormsecurity.net/0012-exploits/2000-exploits.tgz )
	2001? ( https://dl.packetstormsecurity.net/0112-exploits/2001-exploits.tgz )
	2002? ( https://dl.packetstormsecurity.net/0212-exploits/2002-exploits.tgz )
	2003? ( https://dl.packetstormsecurity.net/0312-exploits/2003-exploits.tgz )
	2004? ( https://dl.packetstormsecurity.net/0412-exploits/2004-exploits.tgz )
	2005? ( https://dl.packetstormsecurity.net/0512-exploits/2005-exploits.tgz )
	2006? ( https://dl.packetstormsecurity.net/0612-exploits/2006-exploits.tgz )
	2007? ( https://dl.packetstormsecurity.net/0712-exploits/2007-exploits.tgz )
	2008? ( https://dl.packetstormsecurity.net/0812-exploits/2008-exploits.tgz )
	2009? ( https://dl.packetstormsecurity.net/0912-exploits/2009-exploits.tgz )
	2010? ( https://dl.packetstormsecurity.net/1012-exploits/2010-exploits.tgz )
	2011? ( https://dl.packetstormsecurity.net/1112-exploits/2011-exploits.tgz )
	2012? ( https://dl.packetstormsecurity.net/1212-exploits/2012-exploits.tgz )"

LICENSE="HPND"
SLOT="2012"
KEYWORDS="amd64 arm64 x86"

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