net-misc/wicd: Fix shebang line in openrc init script (bug #573846).
authorLars Wendler <polynomial-c@gentoo.org>
Fri, 27 May 2016 08:35:29 +0000 (10:35 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Fri, 27 May 2016 08:35:42 +0000 (10:35 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-misc/wicd/wicd-1.7.4-r1.ebuild

index 9b5de55b7673a228924901b27629690ad71e4f0a..3b624f0d644ccfb42b1ba7b0fcfabfde0e80838f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -83,7 +83,10 @@ src_prepare() {
          -i setup.py || die "sed failed"
        # Fix misc helper scripts:
        sed -e "s:/usr/bin/env python:/usr/bin/env python2:" \
-               -i wicd/suspend.py wicd/autoconnect.py wicd/monitor.py
+               -i wicd/suspend.py wicd/autoconnect.py wicd/monitor.py || die
+       # fix shebang for openrc init script (bug #573846)
+       sed 's@/sbin/runscript@/sbin/openrc-run@' \
+               -i in/init=gentoo=wicd.in || die
        if use nls; then
          # Asturian is faulty with PyBabel
          # (https://bugs.launchpad.net/wicd/+bug/928589)