summaryrefslogtreecommitdiff
blob: a67ec6623b2c9c5381ad6b97d2e9b76f09b2b6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw-frontends/ufw-frontends-0.2.0.ebuild,v 1.2 2011/10/24 06:03:57 tetromino Exp $

EAPI=3
PYTHON_DEPEND="2:2.6"
inherit distutils

DESCRIPTION="Provides graphical frontend to ufw"
HOMEPAGE="http://code.google.com/p/ufw-frontends/"
SRC_URI="http://ufw-frontends.googlecode.com/files/${P}.tar.gz"

# CC* is for a png file
LICENSE="GPL-3 CCPL-Attribution-ShareAlike-NonCommercial-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	dev-python/pygobject:2
	dev-python/pygtk
	net-firewall/ufw
	x11-libs/gksu"

pkg_setup() {
	python_set_active_version 2
	python_pkg_setup
}

src_prepare() {
	sed -i 's/^Exec=su-to-root -X -c/Exec=gksu/' \
		share/ufw-gtk.desktop || die
	# Qt version is unusable for now
	rm gfw/frontend_qt.py || die
	distutils_src_prepare
}