Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2012 00:41
Show Gist options
  • Save anonymous/2791494 to your computer and use it in GitHub Desktop.
Save anonymous/2791494 to your computer and use it in GitHub Desktop.
post-it-dos-9999.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit subversion python
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
DESCRIPTION="A simple piece of PoC code written to demonstrate HTTP POST Denial of Service vulnerabilies"
HOMEPAGE="http://code.google.com/p/post-it-dos/"
SRC_URI=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
#DEPEND="dev-python/python-2"
RDEPEND="${DEPEND}"
ESVN_REPO_URI="http://post-it-dos.googlecode.com/svn/trunk/"
ESVN_PROJECT="postit"
chmod +x postit.py
src_install() {
installation() {
mkdir -p "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin"
cp postit.py "${T}/images/${PYTHON_ABI}${EPREFIX}/usr/bin/postit"
}
python_execute_function installation
python_merge_intermediate_installation_images "${T}/images"
#ualist
insinto /usr/share/postit
doins ualist.txt
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment