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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 19 08:23:54 2011 UTC (8 years, 8 months ago) by tomka
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removed old beta revisions.

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

  ViewVC Help
Powered by ViewVC 1.1.20