sys-block/zram-init: bump to 9.1 and fix push.sh reference
authorFelix Neumärker <xdch47@posteo.de>
Fri, 17 Jan 2020 22:41:51 +0000 (23:41 +0100)
committerJason Zaman <perfinion@gentoo.org>
Sun, 16 Feb 2020 13:34:12 +0000 (21:34 +0800)
Closes: https://github.com/gentoo/gentoo/pull/14371
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Felix Neumärker <xdch47@posteo.de>
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
sys-block/zram-init/Manifest
sys-block/zram-init/zram-init-8.1-r1.ebuild [new file with mode: 0644]
sys-block/zram-init/zram-init-9.1.ebuild [new file with mode: 0644]
sys-block/zram-init/zram-init-9999.ebuild

index 8963ed2869decf73fdd0e15db24e6130fa9b0bd4..f0102627e4b43eea0bdde63100e11a238ed0ff30 100644 (file)
@@ -1 +1,2 @@
 DIST zram-init-8.1.tar.gz 9177 BLAKE2B 229a469aeeb0b22b80f48d946d4ff746c7bd5d7b58ea9290db0da011df6d618c7c55ad95810b0be74ff81350182057d9067e834ecba688eb4ffa668521468a8b SHA512 8f688accb7a4231f705f694c4b4e7344bbb338b2b1f09a6dacd900020a4e8583105b25fef5b40f39630db88db6fcc8ec79824945ceaee95ea1279d09d081a994
+DIST zram-init-9.1.tar.gz 11414 BLAKE2B d7f7d1fd49594882a043322b905c02ac9e1f6ea78a626fb35ab0939096a062ef384e759d62e2cc4a990946e124317d70a4325b145e38612ebad173752209fa55 SHA512 4e3c76a389d188df98479f3f70af28405144b065df60ba191777cbec88d9bfe94be472d94bbb16314c0eefd41d177105cba74b45d1f13e82a741ff21a4d69c6a
diff --git a/sys-block/zram-init/zram-init-8.1-r1.ebuild b/sys-block/zram-init/zram-init-8.1-r1.ebuild
new file mode 100644 (file)
index 0000000..74cb80a
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit readme.gentoo-r1 systemd
+
+DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram"
+HOMEPAGE="https://github.com/vaeth/zram-init/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/vaeth/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+RDEPEND=">=app-shells/push-2.0
+       !<sys-apps/openrc-0.13"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="To use zram, activate it in your kernel and add it to default runlevel:
+       rc-config add zram default
+If you use systemd enable zram_swap, tmp, and/or var_tmp with systemctl.
+You might need to modify /etc/modprobe.d/zram.conf"
+
+src_prepare() {
+       use prefix || sed -i \
+               -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \
+               -e 's#PushA_=`push.sh 2>/dev/null`#PushA_=`cat '"${EPREFIX}"'/usr/share/push/push.sh`#' \
+               -- sbin/zram-init || die
+       default
+}
+
+src_install() {
+       doinitd openrc/init.d/*
+       doconfd openrc/conf.d/*
+       systemd_dounit systemd/system/*
+       insinto /etc/modprobe.d
+       doins modprobe.d/*
+       insinto /usr/share/zsh/site-functions
+       doins zsh/*
+       dodoc AUTHORS ChangeLog README.md
+       readme.gentoo_create_doc
+       into /
+       dosbin sbin/*
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}
diff --git a/sys-block/zram-init/zram-init-9.1.ebuild b/sys-block/zram-init/zram-init-9.1.ebuild
new file mode 100644 (file)
index 0000000..87a6d31
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit readme.gentoo-r1 systemd
+
+DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram"
+HOMEPAGE="https://github.com/vaeth/zram-init/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+if [[ ${PV} == *9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/vaeth/${PN}.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+RDEPEND=">=app-shells/push-2.0
+       !<sys-apps/openrc-0.13"
+
+DISABLE_AUTOFORMATTING="true"
+DOC_CONTENTS="To use zram, activate it in your kernel and add it to default runlevel:
+       rc-config add zram default
+If you use systemd enable zram_swap, tmp, and/or var_tmp with systemctl.
+You might need to modify /etc/modprobe.d/zram.conf"
+
+src_prepare() {
+       use prefix || sed -i \
+               -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \
+               -e 's#PushA_=`push.sh 2>/dev/null`#PushA_=`cat '"${EPREFIX}"'/usr/share/push/push.sh`#' \
+               -- sbin/zram-init || die
+       default
+}
+
+src_install() {
+       doinitd openrc/init.d/*
+       doconfd openrc/conf.d/*
+       systemd_dounit systemd/system/*
+       insinto /etc/modprobe.d
+       doins modprobe.d/*
+       insinto /usr/share/zsh/site-functions
+       doins zsh/*
+       dodoc AUTHORS ChangeLog README.md
+       readme.gentoo_create_doc
+       into /
+       dosbin sbin/*
+       doman man/${PN}.8
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}
index 2b9aa4db74d0f76466f14bd8bef80d4e1de56ed4..87a6d31eaf2108596be5f3325b3d96eb2cb12dd9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,7 +31,8 @@ You might need to modify /etc/modprobe.d/zram.conf"
 src_prepare() {
        use prefix || sed -i \
                -e '1s"^#!/usr/bin/env sh$"#!'"${EPREFIX}/bin/sh"'"' \
-               -- sbin/* || die
+               -e 's#PushA_=`push.sh 2>/dev/null`#PushA_=`cat '"${EPREFIX}"'/usr/share/push/push.sh`#' \
+               -- sbin/zram-init || die
        default
 }
 
@@ -47,6 +48,7 @@ src_install() {
        readme.gentoo_create_doc
        into /
        dosbin sbin/*
+       doman man/${PN}.8
 }
 
 pkg_postinst() {