sys-fs/zfs-0.6.5-r1: Fix OpenRC scripts
authorRichard Yao <richard.yao@clusterhq.com>
Thu, 1 Oct 2015 22:52:18 +0000 (18:52 -0400)
committerRichard Yao <ryao@gentoo.org>
Thu, 1 Oct 2015 22:59:51 +0000 (18:59 -0400)
https://github.com/zfsonlinux/zfs/pull/3800

Package-Manager: portage-2.2.20.1
Signed-off-by: Richard Yao <ryao@gentoo.org>
sys-fs/zfs/zfs-0.6.5.2-r1.ebuild [moved from sys-fs/zfs/zfs-0.6.5.2.ebuild with 97% similarity]

similarity index 97%
rename from sys-fs/zfs/zfs-0.6.5.2.ebuild
rename to sys-fs/zfs/zfs-0.6.5.2-r1.ebuild
index 54dd3410ffc3902d8d31ca9c3edf442067f68fd3..83049e7f4ec05b97562d85c85cf68e178962509a 100644 (file)
@@ -86,6 +86,12 @@ pkg_setup() {
 }
 
 src_prepare() {
+if [ ${PV} != "9999" ]
+       then
+               # Fix OpenRC scripts
+               epatch "${FILESDIR}/zfs-0.6.5-fix-openrc-scripts.patch"
+       fi
+
        # Update paths
        sed -e "s|/sbin/lsmod|/bin/lsmod|" \
                -e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \