You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/python-iptables/python-iptables-0.3.0_p2013...

34 lines
877 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-iptables/python-iptables-0.3.0_p20130331.ebuild,v 1.1 2014/04/01 17:39:39 chutzpah Exp $
EAPI=5
PYTHON_COMPAT=(python2_7)
inherit distutils-r1
DESCRIPTION="Python bindings for iptables."
HOMEPAGE="https://github.com/ldx/python-iptables"
#SRC_URI="https://github.com/ldx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="mirror://gentoo/${P}.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="net-firewall/iptables"
RDEPEND="${DEPEND}"
# tests manipulate live iptables rules, so disable them by default
RESTRICT=test
# needed for running tests
#RESTRICT=userpriv
PATCHES=(
"${FILESDIR}/${PN}-0.2.0-tests.patch"
)
python_test() {
${PYTHON} test.py || die "tests fail with ${EPYTHON}"
}