commit:     4f9ccbf688a6cd55a051f50f7565715ff80c6b70
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri May 24 00:53:29 2019 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Fri May 24 00:53:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f9ccbf6

sys-fs/zfs: backport revision number to 0.8.0

no revbump, users will see consistent version strings
zfs -V
zfs-0.8.0-r0-gentoo
zfs-kmod-0.8.0-r0-gentoo

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 sys-fs/zfs/zfs-0.8.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-fs/zfs/zfs-0.8.0.ebuild b/sys-fs/zfs/zfs-0.8.0.ebuild
index b128cd4729d..129f3484544 100644
--- a/sys-fs/zfs/zfs-0.8.0.ebuild
+++ b/sys-fs/zfs/zfs-0.8.0.ebuild
@@ -98,7 +98,12 @@ pkg_setup() {
 src_prepare() {
        default
 
-       [[ ${PV} == "9999" ]] && eautoreconf
+       if [[ ${PV} == "9999" ]]; then
+               eautoreconf
+       else
+               # Set revision number
+               sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die 
"Could not set Gentoo release"
+       fi
 
        # Update paths
        sed -e "s|/sbin/lsmod|/bin/lsmod|" \
@@ -174,7 +179,6 @@ pkg_postinst() {
                einfo "genkernel version 3.5.3.3 and earlier does NOT support"
                einfo " unlocking pools with native zfs encryption enabled at 
boot"
                einfo " use dracut or genkernel-9999 if you requre this 
functionality"
-               einfo
        fi
 
        if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then

Reply via email to