1 |
tomka 11/05/07 19:27:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wicd-1.7.1_beta2-r4.ebuild |
5 |
Log: |
6 |
Fix install with Python3 as the main interpreter (Bug 365635, thx for patch by arfrever), fix init script to use sve-start (Bug 365767) |
7 |
|
8 |
(Portage version: 2.1.9.46/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.87 net-misc/wicd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.87&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.87&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?r1=1.86&r2=1.87 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v |
20 |
retrieving revision 1.86 |
21 |
retrieving revision 1.87 |
22 |
diff -u -r1.86 -r1.87 |
23 |
--- ChangeLog 12 Apr 2011 18:18:26 -0000 1.86 |
24 |
+++ ChangeLog 7 May 2011 19:27:31 -0000 1.87 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-misc/wicd |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.86 2011/04/12 18:18:26 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.87 2011/05/07 19:27:31 tomka Exp $ |
30 |
+ |
31 |
+*wicd-1.7.1_beta2-r4 (07 May 2011) |
32 |
+ |
33 |
+ 07 May 2011; Thomas Kahle <tomka@g.o> +wicd-1.7.1_beta2-r4.ebuild, |
34 |
+ +files/wicd-init-sve-start.patch: |
35 |
+ Fix install with Python3 as the main interpreter (Bug 365635, thx for patch |
36 |
+ by arfrever), fix init script to use sve-start (Bug 365767) |
37 |
|
38 |
12 Apr 2011; Thomas Kahle <tomka@g.o> wicd-1.7.1_beta2-r3.ebuild: |
39 |
x86 stable per bug 358715 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-misc/wicd/wicd-1.7.1_beta2-r4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: wicd-1.7.1_beta2-r4.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r4.ebuild,v 1.1 2011/05/07 19:27:31 tomka Exp $ |
53 |
|
54 |
EAPI=3 |
55 |
|
56 |
PYTHON_DEPEND="2" |
57 |
PYTHON_USE_WITH="ncurses? xml" |
58 |
SUPPORT_PYTHON_ABIS="1" |
59 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
60 |
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" |
61 |
|
62 |
inherit eutils distutils |
63 |
|
64 |
MY_P=${P/_beta/b} |
65 |
S="${WORKDIR}/${MY_P}" |
66 |
|
67 |
DESCRIPTION="A lightweight wired and wireless network manager for Linux" |
68 |
HOMEPAGE="http://wicd.sourceforge.net/" |
69 |
SRC_URI="http://downloads.wicd.net/src/testing/1.7.x/${MY_P}.tar.bz2" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
74 |
IUSE="X +gtk ioctl libnotify ncurses nls +pm-utils" |
75 |
|
76 |
DEPEND="" |
77 |
# Maybe virtual/dhcp would work, but there are enough problems with |
78 |
# net-misc/dhcp that I want net-misc/dhcpcd to be guarenteed to be considered |
79 |
# first if none are installed. |
80 |
RDEPEND=" |
81 |
dev-python/dbus-python |
82 |
X? ( gtk? ( dev-python/pygtk |
83 |
|| ( |
84 |
x11-misc/ktsuss |
85 |
x11-libs/gksu |
86 |
kde-base/kdesu |
87 |
) |
88 |
) |
89 |
) |
90 |
|| ( |
91 |
net-misc/dhcpcd |
92 |
net-misc/dhcp |
93 |
net-misc/pump |
94 |
) |
95 |
net-wireless/wireless-tools |
96 |
net-wireless/wpa_supplicant |
97 |
|| ( |
98 |
sys-apps/net-tools |
99 |
sys-apps/ethtool |
100 |
) |
101 |
!gtk? ( dev-python/pygobject ) |
102 |
ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl ) |
103 |
libnotify? ( dev-python/notify-python ) |
104 |
ncurses? ( |
105 |
>=dev-python/urwid-0.9.9.1 |
106 |
dev-python/pygobject |
107 |
) |
108 |
pm-utils? ( >=sys-power/pm-utils-1.1.1 ) |
109 |
" |
110 |
DOCS="CHANGES NEWS AUTHORS README" |
111 |
|
112 |
src_prepare() { |
113 |
epatch "${FILESDIR}"/${P}-init.patch |
114 |
epatch "${FILESDIR}"/${PN}-init-sve-start.patch |
115 |
# Need to ensure that setup.py is run with python-2 |
116 |
sed -e "s:self.python = '/usr/bin/python':self.python = '/usr/bin/python2':" \ |
117 |
-i setup.py || die "sed failed" |
118 |
python_copy_sources |
119 |
} |
120 |
|
121 |
src_configure() { |
122 |
local myconf |
123 |
use gtk || myconf="${myconf} --no-install-gtk" |
124 |
use libnotify || myconf="${myconf} --no-use-notifications" |
125 |
use ncurses || myconf="${myconf} --no-install-ncurses" |
126 |
use pm-utils || myconf="${myconf} --no-install-pmutils" |
127 |
configuration() { |
128 |
$(PYTHON) ./setup.py configure --no-install-docs --resume=/usr/share/wicd/scripts/ --suspend=/usr/share/wicd/scripts/ --verbose ${myconf} |
129 |
} |
130 |
python_execute_function -s configuration |
131 |
} |
132 |
|
133 |
src_install() { |
134 |
distutils_src_install |
135 |
keepdir /var/lib/wicd/configurations \ |
136 |
|| die "keepdir failed, critical for this app" |
137 |
keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect} \ |
138 |
|| die "keepdir failed, critical for this app" |
139 |
keepdir /var/log/wicd \ |
140 |
|| die "keepdir failed, critical for this app" |
141 |
use nls || rm -rf "${D}"/usr/share/locale |
142 |
} |
143 |
|
144 |
pkg_postinst() { |
145 |
distutils_pkg_postinst |
146 |
|
147 |
elog "You may need to restart the dbus service after upgrading wicd." |
148 |
echo |
149 |
elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:" |
150 |
elog "- Remove all net.* initscripts (except for net.lo) from all runlevels" |
151 |
elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/conf.d/rc" |
152 |
elog "(For example, RC_PLUG_SERVICES=\"!net.eth0 !net.wlan0\")" |
153 |
# Maintainer's note: the consolekit use flag short circuits a dbus rule and |
154 |
# allows the connection. Else, you need to be in the group. |
155 |
if ! has_version sys-auth/pambase[consolekit]; then |
156 |
ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If" |
157 |
ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf" |
158 |
fi |
159 |
} |