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: ChangeLog wicd-1.7.1.ebuild
Date: Sun, 05 Feb 2012 16:21:49
Message-Id: 20120205162138.17CCD2004B@flycatcher.gentoo.org
1 tomka 12/02/05 16:21:38
2
3 Modified: ChangeLog
4 Added: wicd-1.7.1.ebuild
5 Log:
6 bump to 1.7.1
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.112 net-misc/wicd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 1 Feb 2012 18:06:10 -0000 1.111
24 +++ ChangeLog 5 Feb 2012 16:21:38 -0000 1.112
25 @@ -1,6 +1,11 @@
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.111 2012/02/01 18:06:10 tomka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.112 2012/02/05 16:21:38 tomka Exp $
30 +
31 +*wicd-1.7.1 (05 Feb 2012)
32 +
33 + 05 Feb 2012; Thomas Kahle <tomka@g.o> +wicd-1.7.1.ebuild:
34 + bump to 1.7.1
35
36 *wicd-1.7.1_pre20120127-r1 (01 Feb 2012)
37
38
39
40
41 1.1 net-misc/wicd/wicd-1.7.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wicd/wicd-1.7.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wicd-1.7.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1.ebuild,v 1.1 2012/02/05 16:21:38 tomka Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="2"
55 PYTHON_USE_WITH="ncurses? xml"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="3.* *-jython"
58 DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
59
60 inherit eutils distutils systemd
61
62 DESCRIPTION="A lightweight wired and wireless network manager for Linux"
63 HOMEPAGE="http://wicd.sourceforge.net/"
64 SRC_URI="http://launchpad.net/wicd/1.7/${PV}/+download/${P}.tar.gz
65 mac4lin? ( http://dev.gentoo.org/~anarchy/dist/wicd-mac4lin-icons.tar.xz )"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="X +gtk ioctl libnotify mac4lin ncurses nls +pm-utils"
71
72 DEPEND=""
73 # Maybe virtual/dhcp would work, but there are enough problems with
74 # net-misc/dhcp that I want net-misc/dhcpcd to be guarenteed to be considered
75 # first if none are installed.
76 RDEPEND="
77 dev-python/dbus-python
78 X? ( gtk? ( dev-python/pygtk
79 || (
80 x11-misc/ktsuss
81 x11-libs/gksu
82 kde-base/kdesu
83 )
84 )
85 )
86 || (
87 net-misc/dhcpcd
88 net-misc/dhcp
89 net-misc/pump
90 )
91 net-wireless/wireless-tools
92 net-wireless/wpa_supplicant
93 || (
94 sys-apps/net-tools
95 sys-apps/ethtool
96 )
97 !gtk? ( dev-python/pygobject:2 )
98 ioctl? ( dev-python/python-iwscan dev-python/python-wpactrl )
99 libnotify? ( dev-python/notify-python )
100 ncurses? (
101 dev-python/urwid
102 dev-python/pygobject:2
103 )
104 pm-utils? ( >=sys-power/pm-utils-1.1.1 )
105 "
106 DOCS="CHANGES NEWS AUTHORS README"
107
108 src_prepare() {
109 epatch "${FILESDIR}"/${PN}-1.7.1_beta2-init.patch
110 epatch "${FILESDIR}"/${PN}-init-sve-start.patch
111 # Add a template for hex psk's and wpa (Bug 306423)
112 epatch "${FILESDIR}"/${PN}-1.7.1_pre20111210-wpa-psk-hex-template.patch
113 # get rid of opts variable to fix bug 381885
114 sed -i "/opts/d" "in/init=gentoo=wicd.in" || die
115 # Need to ensure that generated scripts use Python 2 at run time.
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 systemd_dounit "${S}/other/wicd.service"
143
144 if use mac4lin; then
145 rm -rf "${D}"/usr/share/pixmaps/wicd || die "Failed to remove old icons"
146 mv "${WORKDIR}"/wicd "${D}"/usr/share/pixmaps/
147 fi
148 }
149
150 pkg_postinst() {
151 distutils_pkg_postinst
152
153 elog "You may need to restart the dbus service after upgrading wicd."
154 echo
155 elog "To start wicd at boot, add /etc/init.d/wicd to a runlevel and:"
156 elog "- Remove all net.* initscripts (except for net.lo) from all runlevels"
157 elog "- Add these scripts to the RC_PLUG_SERVICES line in /etc/rc.conf"
158 elog "(For example, rc_hotplug=\"!net.eth* !net.wlan*\")"
159 # Maintainer's note: the consolekit use flag short circuits a dbus rule and
160 # allows the connection. Else, you need to be in the group.
161 if ! has_version sys-auth/pambase[consolekit]; then
162 ewarn "Wicd-1.6 and newer requires your user to be in the 'users' group. If"
163 ewarn "you are not in that group, then modify /etc/dbus-1/system.d/wicd.conf"
164 fi
165 }