summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/cnetworkmanager/cnetworkmanager-0.8.4.ebuild')
-rw-r--r--net-misc/cnetworkmanager/cnetworkmanager-0.8.4.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/net-misc/cnetworkmanager/cnetworkmanager-0.8.4.ebuild b/net-misc/cnetworkmanager/cnetworkmanager-0.8.4.ebuild
new file mode 100644
index 0000000..a4dc274
--- /dev/null
+++ b/net-misc/cnetworkmanager/cnetworkmanager-0.8.4.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit python
+
+EAPI="2"
+
+DESCRIPTION="Command-line client for NetworkManager"
+HOMEPAGE="http://vidner.net/martin/software/cnetworkmanager/"
+SRC_URI="http://vidner.net/martin/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/python-2.5[xml]
+ dev-python/pygobject
+ dev-python/dbus-python"
+
+src_compile() {
+ sed -e '/docdir/d' -i Makefile || die "Sed failed"
+ emake DESTDIR=${D} PREFIX=/usr sysconfdir=/etc || die "emake failed"
+}
+
+src_install() {
+ insinto "$(python_get_sitedir)"
+ doins pbkdf2.py
+ dobin cnetworkmanager
+ dodoc NEWS README
+}
+
+pkg_postinst() {
+ python_need_rebuild
+ python_mod_optimize "$(python_get_sitedir)/pbkdf2.py"
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/pbkdf2.py
+}