/[gentoo-x86]/net-misc/wicd/wicd-1.6.0_beta3.ebuild
Gentoo

Contents of /net-misc/wicd/wicd-1.6.0_beta3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jun 5 15:33:17 2009 UTC (10 years, 6 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, 1.6.0 final, new USE flag to allow ppc64 keyword
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.6.0_beta3.ebuild,v 1.1 2009/05/28 03:40:04 darkside Exp $
4
5 EAPI="2"
6
7 inherit distutils eutils
8
9 MY_P=${P/_beta/b}
10
11 DESCRIPTION="A lightweight wired and wireless network manager for Linux"
12 HOMEPAGE="http://wicd.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="ioctl libnotify ncurses"
19
20 DEPEND=""
21 RDEPEND="
22 dev-python/dbus-python
23 dev-python/pygtk
24 || (
25 net-misc/dhcpcd
26 net-misc/dhcp
27 net-misc/pump
28 )
29 net-wireless/wireless-tools
30 net-wireless/wpa_supplicant
31 || (
32 sys-apps/net-tools
33 sys-apps/ethtool
34 )
35 || (
36 x11-misc/ktsuss
37 x11-libs/gksu
38 kde-base/kdesu
39 )
40 >=sys-power/pm-utils-1.1.1
41 ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl )
42 libnotify? ( dev-python/notify-python )
43 ncurses? ( >=dev-python/urwid-0.9.8.4 )
44 "
45
46 S="${WORKDIR}/${MY_P}"
47
48 src_compile() {
49 local myconf
50 use ncurses || myconf="${myconf} --no-install-ncurses"
51 use libnotify || myconf="${myconf} --no-use-notifications"
52 ${python} ./setup.py configure --no-install-docs --resume=/usr/share/wicd/scripts/ --suspend=/usr/share/wicd/scripts/ --verbose ${myconf}
53 distutils_src_compile
54 }
55
56 src_install() {
57 DOCS="CHANGES"
58 distutils_src_install
59 newinitd "${FILESDIR}/wicd-init.d" wicd || die "newinitd failed"
60 keepdir /var/lib/wicd/configurations || die "keepdir failed, critical for this app"
61 }
62
63 pkg_postinst() {
64 distutils_pkg_postinst
65
66 elog "You may need to restart the dbus service after upgrading wicd."
67 echo
68 elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:"
69 elog "- Remove all net.* initscripts (except for net.lo) from all runlevels"
70 elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/conf.d/rc"
71 elog "(For example, RC_PLUG_SERVICES=\"!net.eth0 !net.wlan0\")"
72 elog
73 ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If"
74 ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf
75 "
76 }

  ViewVC Help
Powered by ViewVC 1.1.20