/[gentoo-x86]/net-misc/wicd/wicd-1.7.0_alpha2.ebuild
Gentoo

Contents of /net-misc/wicd/wicd-1.7.0_alpha2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Dec 24 03:03:32 2009 UTC (10 years, 1 month ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump for next alpha release, fixes bugs in 1.7 development
(Portage version: 2.1.7.15/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20