Merge pull request #347 from gkroon/commix

Submitting ebuild for #65
This commit is contained in:
Anton Bolshakov 2018-08-29 23:10:19 +06:00 committed by GitHub
commit dee925592b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST commix-2.5.tar.gz 215830 BLAKE2B a4e8c46d35f6b4d99f5e6de179cca6d6e7550887243e5a1998742c9a9e409eb13ed5988300dca5f54418fb84d2592d3eea29903dd345cd9d728ec6ee16ffff7f SHA512 8c226493e8d5b08cbc4c7ecdf55239acae43389fb2de4fae7419d1542cc286afc4702494df4a9451d9b546380fe7c8bbd55210cd09509ced153514a75d8e632d

View file

@ -0,0 +1,49 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
EGO_PN=github.com/commixproject/${PN}
inherit python-single-r1 multilib
MY_PV="${PV}-20180713"
if [[ ${PV} = *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/commixproject/commix.git"
KEYWORDS=""
else
KEYWORDS="~amd64 ~x86"
EGIT_COMMIT="v${MY_PV}"
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
fi
DESCRIPTION="A tool to test web-based applications to find bugs, errors or injection attacks."
HOMEPAGE="https://github.com/commixproject/commix"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}"/"${PN}"-"${MY_PV}"
src_prepare() {
python_fix_shebang .
default
}
src_install(){
insinto /usr/$(get_libdir)/${PN}
doins -r *
fperms +x /usr/$(get_libdir)/${PN}/${PN}.py
dosym $(get_libdir)/${PN}/${PN}.py ${PN}
python_optimize "${D}"usr/$(get_libdir)/${PN}
}