Gentoo Archives: gentoo-commits

From: "Thomas Kahle (tomka)" <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/wicd: wicd-1.7.1-r2.ebuild ChangeLog
Date: Mon, 27 Feb 2012 21:05:35
Message-Id: 20120227210411.19CCE2004B@flycatcher.gentoo.org
1 tomka 12/02/27 21:04:11
2
3 Modified: ChangeLog
4 Added: wicd-1.7.1-r2.ebuild
5 Log:
6 init script provides net per bug 405775
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.114 net-misc/wicd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.114&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.114&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?r1=1.113&r2=1.114
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v
20 retrieving revision 1.113
21 retrieving revision 1.114
22 diff -u -r1.113 -r1.114
23 --- ChangeLog 9 Feb 2012 14:40:05 -0000 1.113
24 +++ ChangeLog 27 Feb 2012 21:04:11 -0000 1.114
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/wicd
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.113 2012/02/09 14:40:05 tomka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.114 2012/02/27 21:04:11 tomka Exp $
30 +
31 +*wicd-1.7.1-r2 (27 Feb 2012)
32 +
33 + 27 Feb 2012; Thomas Kahle <tomka@g.o> +wicd-1.7.1-r2.ebuild,
34 + +files/wicd-1.7.1-provide-net.patch:
35 + init script provides net per bug 405775
36
37 *wicd-1.7.1-r1 (09 Feb 2012)
38
39
40
41
42 1.1 net-misc/wicd/wicd-1.7.1-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: wicd-1.7.1-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1-r2.ebuild,v 1.1 2012/02/27 21:04:11 tomka Exp $
52
53 EAPI=3
54
55 PYTHON_DEPEND="2"
56 PYTHON_USE_WITH="ncurses? xml"
57 SUPPORT_PYTHON_ABIS="1"
58 RESTRICT_PYTHON_ABIS="3.* *-jython"
59 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
60
61 inherit eutils distutils systemd
62
63 DESCRIPTION="A lightweight wired and wireless network manager for Linux"
64 HOMEPAGE="http://wicd.sourceforge.net/"
65 SRC_URI="http://launchpad.net/wicd/1.7/${PV}/+download/${P}.tar.gz
66 mac4lin? ( http://dev.gentoo.org/~anarchy/dist/wicd-mac4lin-icons.tar.xz )
67 ambiance? ( http://freetimesblog.altervista.org/blog/wp-content/uploads/downloads/2010/05/Icone-Wicd-Lucid.tar.gz )"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72 IUSE="X ambiance +gtk ioctl libnotify mac4lin ncurses nls +pm-utils"
73
74 DEPEND=""
75 # Maybe virtual/dhcp would work, but there are enough problems with
76 # net-misc/dhcp that I want net-misc/dhcpcd to be guarenteed to be considered
77 # first if none are installed.
78 RDEPEND="
79 dev-python/dbus-python
80 X? ( gtk? ( dev-python/pygtk
81 || (
82 x11-misc/ktsuss
83 x11-libs/gksu
84 kde-base/kdesu
85 )
86 )
87 )
88 || (
89 net-misc/dhcpcd
90 net-misc/dhcp
91 net-misc/pump
92 )
93 net-wireless/wireless-tools
94 net-wireless/wpa_supplicant
95 || (
96 sys-apps/net-tools
97 sys-apps/ethtool
98 )
99 !gtk? ( dev-python/pygobject:2 )
100 ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl )
101 libnotify? ( dev-python/notify-python )
102 ncurses? (
103 dev-python/urwid
104 dev-python/pygobject:2
105 )
106 pm-utils? ( >=sys-power/pm-utils-1.1.1 )
107 "
108 DOCS="CHANGES NEWS AUTHORS README"
109
110 src_prepare() {
111 epatch "${FILESDIR}"/${PN}-1.7.1_beta2-init.patch
112 epatch "${FILESDIR}"/${PN}-init-sve-start.patch
113 # Add a template for hex psk's and wpa (Bug 306423)
114 epatch "${FILESDIR}"/${PN}-1.7.1_pre20111210-wpa-psk-hex-template.patch
115 # get rid of opts variable to fix bug 381885
116 sed -i "/opts/d" "in/init=gentoo=wicd.in" || die
117 # Make init script provide net per bug 405775
118 epatch "${FILESDIR}"/${PN}-1.7.1-provide-net.patch
119 # Need to ensure that generated scripts use Python 2 at run time.
120 sed -e "s:self.python = '/usr/bin/python':self.python = '/usr/bin/python2':" \
121 -i setup.py || die "sed failed"
122 python_copy_sources
123 }
124
125 src_configure() {
126 local myconf
127 use gtk || myconf="${myconf} --no-install-gtk"
128 use libnotify || myconf="${myconf} --no-use-notifications"
129 use ncurses || myconf="${myconf} --no-install-ncurses"
130 use pm-utils || myconf="${myconf} --no-install-pmutils"
131 configuration() {
132 $(PYTHON) ./setup.py configure --no-install-docs --resume=/usr/share/wicd/scripts/ --suspend=/usr/share/wicd/scripts/ --verbose ${myconf}
133 }
134 python_execute_function -s configuration
135 }
136
137 src_install() {
138 distutils_src_install
139 keepdir /var/lib/wicd/configurations \
140 || die "keepdir failed, critical for this app"
141 keepdir /etc/wicd/scripts/{postconnect,disconnect,preconnect} \
142 || die "keepdir failed, critical for this app"
143 keepdir /var/log/wicd \
144 || die "keepdir failed, critical for this app"
145 use nls || rm -rf "${D}"/usr/share/locale
146 systemd_dounit "${S}/other/wicd.service"
147
148 if use mac4lin; then
149 rm -rf "${D}"/usr/share/pixmaps/wicd || die "Failed to remove old icons"
150 mv "${WORKDIR}"/wicd "${D}"/usr/share/pixmaps/
151 fi
152 if use ambiance; then
153 # Overwrite tray icons with ambiance icon
154 rm "${WORKDIR}/Icone Wicd Lucid"/signal*
155 cp "${WORKDIR}/Icone Wicd Lucid"/*.png "${D}"/usr/share/pixmaps/wicd/
156 fi
157 }
158
159 pkg_postinst() {
160 distutils_pkg_postinst
161
162 elog "You may need to restart the dbus service after upgrading wicd."
163 echo
164 elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:"
165 elog "- Remove all net.* initscripts (except for net.lo) from all runlevels"
166 elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/rc.conf"
167 elog "(For example, rc_hotplug=\"!net.eth* !net.wlan*\")"
168 # Maintainer's note: the consolekit use flag short circuits a dbus rule and
169 # allows the connection. Else, you need to be in the group.
170 if ! has_version sys-auth/pambase[consolekit]; then
171 ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If"
172 ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf"
173 fi
174 }