public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/zram-init/
Date: Sun, 05 Oct 2025 02:38:45 +0000 (UTC)	[thread overview]
Message-ID: <1759631763.ecf4580ac78fbc85c7f98d2cacb467a76f96fdc2.sam@gentoo> (raw)

commit:     ecf4580ac78fbc85c7f98d2cacb467a76f96fdc2
Author:     Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail <DOT> com>
AuthorDate: Sat Oct  4 15:34:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  5 02:36:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf4580a

sys-block/zram-init: add 13.0.1

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44038
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-block/zram-init/Manifest                |  1 +
 sys-block/zram-init/zram-init-13.0.1.ebuild | 75 +++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/sys-block/zram-init/Manifest b/sys-block/zram-init/Manifest
index 14b4615ee452..28434a8d7d16 100644
--- a/sys-block/zram-init/Manifest
+++ b/sys-block/zram-init/Manifest
@@ -1,4 +1,5 @@
 DIST zram-init-11.1.tar.gz 21117 BLAKE2B c6e99e9df97fe44b4081ce304dd2cd72fbdfa3c705f6cc02787df0376dd04a93cd8fbbf327c05f2f96ad8b6383f4c155e2859c0718c81a6bff50d0b91fb93322 SHA512 dcbfe9bb085e1bb1856f53fb5722fc008a8b7b8099423be174f02fcaa4093c19e24c33f08deeec9d1525b9512b7c5640c4ac396c60f7b6016b56edeb38a64285
 DIST zram-init-12.2.1.tar.gz 21457 BLAKE2B d4b7c4b8a094e3ce13ec44a497efe205388e756a8c7ddbacdb424a02dd4b04a559d67ca793347cfe1c945f89444fafd8587ddb04dfbd9751afbb02058b7b242d SHA512 f8318ef0fd570791dc2b38a558d3fd98559f1ef34280417629b563f9a93ae4d45833c70151eb123e08cc08881a5bd32318f89a5331e8c8eb593c4ae8bf96b518
 DIST zram-init-12.2.2.tar.gz 21447 BLAKE2B 28fd3891b3a58b67705d016c7bff387020446dcd0bf9cd97cd6df0ca66b6a0b2841f660427d21e057e66e28dee1f291334372a8184e4fc23297203081ce0408e SHA512 74de3b26a6e30b2112fa1a1f903103a4363d594600f069d6d57bd01d5aadb42d820e2fb6b35415c5de1057b8eb57e3eb78ee177f8cb54317b5f04bb73f820a4b
+DIST zram-init-13.0.1.tar.gz 21264 BLAKE2B e57f22e16209fb81cb10797f2fc739aa58adf699c6a83f13aaece2e9da74f75882984fa96c34e3b531619634c12a13e5f8ab930ad527da6d38930e75c7fdff39 SHA512 b6c72d6857d6d6a8b7017c0a0435e0c6bbc937bbae62644047399b2fc6322a723097df10358f203b1413e9cddcfed3840a462090c1ce2d61711585aef12b1437
 DIST zram-init-13.0.tar.gz 21233 BLAKE2B 2966930d11f226ef6a8f0fcbf235eed86c3f5955e3cc4dd648c239254275b5f0faef1fc25339766eb5a81c5d7eba15a0d41096dd9c3fc02dc8e875967ecc0cae SHA512 66345d24ff25fff022e8326e04de0fdaac06a4423bd59bf80a409ce0fc94eb8ebb707129c5bf0ec4f5a922f6f835d5bed06a8561027d03c4d4e8f8659d25d01b

diff --git a/sys-block/zram-init/zram-init-13.0.1.ebuild b/sys-block/zram-init/zram-init-13.0.1.ebuild
new file mode 100644
index 000000000000..800c11683cfc
--- /dev/null
+++ b/sys-block/zram-init/zram-init-13.0.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit prefix readme.gentoo-r1
+
+DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zRAM"
+HOMEPAGE="https://github.com/vaeth/zram-init/"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/vaeth/${PN}.git"
+else
+	SRC_URI="https://github.com/vaeth/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+RESTRICT="binchecks strip test"
+
+BDEPEND="sys-devel/gettext"
+
+RDEPEND="
+	>=app-shells/push-2.0
+	>=sys-apps/util-linux-2.41
+	virtual/libintl
+	|| ( sys-apps/openrc sys-apps/systemd )
+"
+
+DISABLE_AUTOFORMATTING=true
+DOC_CONTENTS="\
+To use zram-init, activate it in your kernel and add it to the default
+runlevel:
+	rc-update add zram-init default
+If you use systemd enable zram_swap, zram_tmp, and/or zram_var_tmp with
+systemctl. You might need to modify the following file depending on the number
+of devices that you want to create:
+	/etc/modprobe.d/zram.conf.
+If you use the \$TMPDIR as zram device with OpenRC, you should add zram-init to
+the boot runlevel:
+	rc-update add zram-init boot
+Still for the same case, you should add in the OpenRC configuration file for
+the services using \$TMPDIR the following line:
+	rc_need=\"zram-init\""
+
+src_prepare() {
+	default
+
+	hprefixify "${S}/man/${PN}.8"
+
+	hprefixify -e "s%(}|:)(/(usr/)?sbin)%\1${EPREFIX}\2%g" \
+		"${S}/sbin/${PN}.in"
+
+	hprefixify -e "s%( |=)(/tmp)%\1${EPREFIX}\2%g" \
+		"${S}/systemd/system"/* \
+		"${S}/openrc"/*/*
+}
+
+src_compile() {
+	emake PREFIX="${EPREFIX}/usr" MODIFY_SHEBANG=FALSE
+}
+
+src_install() {
+	einstalldocs
+	readme.gentoo_create_doc
+
+	emake DESTDIR="${ED}" PREFIX="/usr" BINDIR="${ED}/sbin" SYSCONFDIR="/etc" \
+		SYSTEMDDIR="${ED}/lib/systemd/system" install
+}
+
+pkg_postinst() {
+	readme.gentoo_print_elog
+}


             reply	other threads:[~2025-10-05  2:38 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-05  2:38 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-05  2:38 [gentoo-commits] repo/gentoo:master commit in: sys-block/zram-init/ Sam James
2025-09-22 19:50 Arthur Zamarin
2025-05-21 21:19 Sam James
2025-05-06 18:57 Sam James
2025-04-22  9:54 Michał Górny
2024-07-21  0:31 Sam James
2024-03-12 20:42 Arthur Zamarin
2023-06-26 14:42 Sam James
2023-06-26  8:19 Sam James
2023-06-24  1:18 Sam James
2023-06-24  1:18 Sam James
2023-06-24  1:18 Sam James
2021-08-06 20:49 Sam James
2021-06-21 21:21 Marek Szuba
2021-06-20 22:05 Jason Zaman
2021-03-04  4:24 Sam James
2021-02-26 19:02 Sam James
2020-10-26 17:27 Jason Zaman
2020-10-26 17:09 Jason Zaman
2020-10-26 16:57 Jason Zaman
2020-02-16 13:35 Jason Zaman
2019-07-18 13:07 Agostino Sarubbo
2019-07-18 13:06 Agostino Sarubbo
2019-04-29 14:24 Jason Zaman
2019-04-29 14:24 Jason Zaman
2019-03-20 15:29 Craig Andrews
2019-03-20 15:29 Craig Andrews
2018-10-05  9:44 Jason Zaman
2018-06-08  9:56 Jason Zaman
2018-06-05  4:33 Jason Zaman
2018-06-05  4:33 Jason Zaman
2017-10-09 14:44 Sergei Trofimovich
2017-05-24  8:10 Michael Weber
2017-05-24  8:00 Michael Weber
2016-08-10 12:01 Jason Zaman
2016-08-10 12:01 Jason Zaman
2016-08-07  8:28 Pacho Ramos
2016-03-04  3:16 Stephen Klimaszewski
2016-01-24 18:34 Jauhien Piatlicki
2016-01-01 21:28 Jauhien Piatlicki
2015-09-01 18:25 Jauhien Piatlicki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1759631763.ecf4580ac78fbc85c7f98d2cacb467a76f96fdc2.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox