summaryrefslogtreecommitdiff
path: root/sys-block/zram-init
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/zram-init')
-rw-r--r--sys-block/zram-init/Manifest5
-rw-r--r--sys-block/zram-init/zram-init-8.1-r1.ebuild55
-rw-r--r--sys-block/zram-init/zram-init-9.1.ebuild56
-rw-r--r--sys-block/zram-init/zram-init-9999.ebuild6
4 files changed, 119 insertions, 3 deletions
diff --git a/sys-block/zram-init/Manifest b/sys-block/zram-init/Manifest
index 149d6ba101d6..b4e51ef13455 100644
--- a/sys-block/zram-init/Manifest
+++ b/sys-block/zram-init/Manifest
@@ -1,4 +1,7 @@
DIST zram-init-8.1.tar.gz 9177 BLAKE2B 229a469aeeb0b22b80f48d946d4ff746c7bd5d7b58ea9290db0da011df6d618c7c55ad95810b0be74ff81350182057d9067e834ecba688eb4ffa668521468a8b SHA512 8f688accb7a4231f705f694c4b4e7344bbb338b2b1f09a6dacd900020a4e8583105b25fef5b40f39630db88db6fcc8ec79824945ceaee95ea1279d09d081a994
+DIST zram-init-9.1.tar.gz 11414 BLAKE2B d7f7d1fd49594882a043322b905c02ac9e1f6ea78a626fb35ab0939096a062ef384e759d62e2cc4a990946e124317d70a4325b145e38612ebad173752209fa55 SHA512 4e3c76a389d188df98479f3f70af28405144b065df60ba191777cbec88d9bfe94be472d94bbb16314c0eefd41d177105cba74b45d1f13e82a741ff21a4d69c6a
+EBUILD zram-init-8.1-r1.ebuild 1420 BLAKE2B cc89bf351776d5ecf21fbb4cf6f01fde82f66128740691973aba48242247009c7c291a3be9e42aa52b9902d29b667df91eec34cd8c20fa7d225d142269ab8add SHA512 f2458e9cf76bc3649f89fb6badcba7161b22a8a10acb35fc0eae2676e785cf4812c09364383dae3fe7cf621ed303fae26971eb18a1911d2125abf55cbd0de19f
EBUILD zram-init-8.1.ebuild 1316 BLAKE2B 9f7e1876d23a1456ebd9731d85633376afbc6164f87b95200f6df463acede47a6795a3076fe2453ae47e727650a35281905d4e602596bf9fbad5e731b835b8cf SHA512 600376b939292e5cca35d1a976ce39cd291efcf84b26dc6e784fb4eab3fbaee9e9237226df1f80f8cc46509969a9a84e6a9640e52bcbcc85dbc3d6c5619db6ba
-EBUILD zram-init-9999.ebuild 1320 BLAKE2B e022e81e9a24cff8ac8f43bb906a7c45b6b457df4812547115686eba54dc1841b653f1780d5875da7bdb5cebc28f6ebbf32847730ce6fda679da62b8a2398ece SHA512 34c7bd221b263105716355191a4a268ee1be9f2dcf070129c3ed27aade0fbd9456cc759b6aa7358c1e4025c96f2b0e77ea77cd0cbdb98c5b67011eab2a090cea
+EBUILD zram-init-9.1.ebuild 1439 BLAKE2B 19085f5a8606b1dae58ca6b5626b72a300bbdd26d99fb394cfd36bf7da31be21557b16392268f3544c9b2d2b04fe96af7ade8b9c1c55b8709b69acded9a1ae98 SHA512 cab9d4f730e33100b9fe0de001dee70460e7d953f3a92091ca9516efd4ba5aa8bfa0dbe81c17a17c6c76ce9c318a84c35d4a1249a8c05b4cd250b6c4704e7f10
+EBUILD zram-init-9999.ebuild 1439 BLAKE2B 19085f5a8606b1dae58ca6b5626b72a300bbdd26d99fb394cfd36bf7da31be21557b16392268f3544c9b2d2b04fe96af7ade8b9c1c55b8709b69acded9a1ae98 SHA512 cab9d4f730e33100b9fe0de001dee70460e7d953f3a92091ca9516efd4ba5aa8bfa0dbe81c17a17c6c76ce9c318a84c35d4a1249a8c05b4cd250b6c4704e7f10
MISC metadata.xml 328 BLAKE2B 844b8904dd7452f6d78ba5322008aeedcb1cfbc25447320b37cc3a7e810d6725af9399150aaffa1d0b17b6c531e65d2ac5b37a90db7201c99a8d20f7fbfc2d90 SHA512 9f64f5788512ad221a6921fbf60a1cc4c1cab6e0a42e0fddb0f9642b4a1139d366bbe95a6aac5d6bc34f4a223801f3b58fb66290700700cff5b1f3e50c6b5e43
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
index 000000000000..74cb80aa2101
--- /dev/null
+++ b/sys-block/zram-init/zram-init-8.1-r1.ebuild
@@ -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
index 000000000000..87a6d31eaf21
--- /dev/null
+++ b/sys-block/zram-init/zram-init-9.1.ebuild
@@ -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
+}
diff --git a/sys-block/zram-init/zram-init-9999.ebuild b/sys-block/zram-init/zram-init-9999.ebuild
index 2b9aa4db74d0..87a6d31eaf21 100644
--- a/sys-block/zram-init/zram-init-9999.ebuild
+++ b/sys-block/zram-init/zram-init-9999.ebuild
@@ -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() {