summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2012-10-04 20:56:52 +0000
committerAgostino Sarubbo <ago@gentoo.org>2012-10-04 20:56:52 +0000
commit9d72c3c78653b57162741fc970a682329e66f4fa (patch)
tree7b0d58f30e328573b65c45531333efbc18b99439 /net-wireless/wifi-radar
parentupdated HOMEPAGE and SRC_URI as per upstream request (diff)
downloadgentoo-2-9d72c3c78653b57162741fc970a682329e66f4fa.tar.gz
gentoo-2-9d72c3c78653b57162741fc970a682329e66f4fa.tar.bz2
gentoo-2-9d72c3c78653b57162741fc970a682329e66f4fa.zip
move sed to src_prepare
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'net-wireless/wifi-radar')
-rw-r--r--net-wireless/wifi-radar/ChangeLog5
-rw-r--r--net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild13
2 files changed, 11 insertions, 7 deletions
diff --git a/net-wireless/wifi-radar/ChangeLog b/net-wireless/wifi-radar/ChangeLog
index fed0e2fddfeb..3164ee7b1e21 100644
--- a/net-wireless/wifi-radar/ChangeLog
+++ b/net-wireless/wifi-radar/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-wireless/wifi-radar
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wifi-radar/ChangeLog,v 1.26 2012/10/03 04:08:10 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wifi-radar/ChangeLog,v 1.27 2012/10/04 20:56:52 ago Exp $
+
+ 04 Oct 2012; Agostino Sarubbo <ago@gentoo.org> wifi-radar-2.0.8-r1.ebuild:
+ move sed to src_prepare
*wifi-radar-2.0.8-r1 (03 Oct 2012)
diff --git a/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild b/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild
index ad737e964136..298b21956e73 100644
--- a/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild
+++ b/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild,v 1.1 2012/10/03 04:08:10 zerochaos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/wifi-radar/wifi-radar-2.0.8-r1.ebuild,v 1.2 2012/10/04 20:56:52 ago Exp $
EAPI=4
@@ -27,11 +27,13 @@ RDEPEND=">=dev-python/pygtk-2.16.0-r1
S="${WORKDIR}/${PN}-${MY_PV}"
-src_install ()
-{
+src_prepare() {
+ sed -i "s:/etc/wpa_supplicant.conf:/etc/wpa_supplicant/wpa_supplicant.conf:" wifi-radar || die
+}
+
+src_install() {
python_convert_shebangs -r 2 .
dosbin wifi-radar
- sed "s:/etc/wpa_supplicant.conf:/etc/wpa_supplicant/wpa_supplicant.conf:" /usr/sbin/wifi-radar
dobin wifi-radar.sh
doicon -s scalable pixmaps/wifi-radar.svg
doicon -s 32 pixmaps/wifi_radar_32x32.png
@@ -45,8 +47,7 @@ src_install ()
keepdir /etc/wifi-radar
}
-pkg_postinst()
-{
+pkg_postinst() {
einfo "Remember to edit configuration file /etc/wifi-radar.conf to suit your needs..."
echo
einfo "To use wifi-radar with a normal user (with sudo) add:"