/[gentoo-x86]/net-misc/wicd/wicd-1.7.1_beta2-r1.ebuild
Gentoo

Contents of /net-misc/wicd/wicd-1.7.1_beta2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 19 08:25:24 2011 UTC (8 years, 8 months ago) by tomka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Really remove old revision :(

(Portage version: 2.1.9.43/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r1.ebuild,v 1.1 2010/12/21 08:03:17 jlec Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
10 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
11
12 inherit eutils distutils
13
14 MY_P=${P/_beta/b}
15 S="${WORKDIR}/${MY_P}"
16
17 DESCRIPTION="A lightweight wired and wireless network manager for Linux"
18 HOMEPAGE="http://wicd.sourceforge.net/"
19 SRC_URI="http://downloads.wicd.net/src/testing/1.7.x/${MY_P}.tar.bz2"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
24 IUSE="X +gtk ioctl libnotify ncurses nls +pm-utils"
25
26 DEPEND=""
27 # Maybe virtual/dhcp would work, but there are enough problems with
28 # net-misc/dhcp that I want net-misc/dhcpcd to be guarenteed to be considered
29 # first if none are installed.
30 RDEPEND="
31 dev-python/dbus-python
32 X? ( gtk? ( dev-python/pygtk
33 || (
34 x11-misc/ktsuss
35 x11-libs/gksu
36 kde-base/kdesu
37 )
38 )
39 )
40 || (
41 net-misc/dhcpcd
42 net-misc/dhcp
43 net-misc/pump
44 )
45 net-wireless/wireless-tools
46 net-wireless/wpa_supplicant
47 || (
48 sys-apps/net-tools
49 sys-apps/ethtool
50 )
51 !gtk? ( dev-python/pygobject )
52 ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl )
53 libnotify? ( dev-python/notify-python )
54 ncurses? ( >=dev-python/urwid-0.9.9.1 )
55 pm-utils? ( >=sys-power/pm-utils-1.1.1 )
56 "
57 DOCS="CHANGES NEWS AUTHORS README"
58
59 src_prepare() {
60 python_copy_sources
61 }
62
63 src_configure() {
64 local myconf
65 use gtk || myconf="${myconf} --no-install-gtk"
66 use libnotify || myconf="${myconf} --no-use-notifications"
67 use ncurses || myconf="${myconf} --no-install-ncurses"
68 use pm-utils || myconf="${myconf} --no-install-pmutils"
69 configuration() {
70 $(PYTHON) ./setup.py configure --no-install-docs --resume=/usr/share/wicd/scripts/ --suspend=/usr/share/wicd/scripts/ --verbose ${myconf}
71 }
72 python_execute_function -s configuration
73 }
74
75 src_install() {
76 distutils_src_install
77 keepdir /var/lib/wicd/configurations \
78 || die "keepdir failed, critical for this app"
79 keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect} \
80 || die "keepdir failed, critical for this app"
81 keepdir /var/log/wicd \
82 || die "keepdir failed, critical for this app"
83 use nls || rm -rf "${D}"/usr/share/locale
84 }
85
86 pkg_postinst() {
87 distutils_pkg_postinst
88
89 elog "You may need to restart the dbus service after upgrading wicd."
90 echo
91 elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:"
92 elog "- Remove all net.* initscripts (except for net.lo) from all runlevels"
93 elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/conf.d/rc"
94 elog "(For example, RC_PLUG_SERVICES=\"!net.eth0 !net.wlan0\")"
95 # Maintainer's note: the consolekit use flag short circuits a dbus rule and
96 # allows the connection. Else, you need to be in the group.
97 if ! has_version sys-auth/pambase[consolekit]; then
98 ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If"
99 ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf"
100 fi
101 }

  ViewVC Help
Powered by ViewVC 1.1.20