diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-24 07:26:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-24 07:26:21 +0100 |
commit | e28a6e6eb5373071be3a09aa457f0488d753c80c (patch) | |
tree | 9ee566eff30cce9e22de0c44094909588e14027d /sys-block/zram-init/zram-init-9999.ebuild | |
parent | a152c669e7ec3bb6ae13b747b985e2ece3b58b0a (diff) |
gentoo auto-resync : 24:06:2023 - 07:26:21
Diffstat (limited to 'sys-block/zram-init/zram-init-9999.ebuild')
-rw-r--r-- | sys-block/zram-init/zram-init-9999.ebuild | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/sys-block/zram-init/zram-init-9999.ebuild b/sys-block/zram-init/zram-init-9999.ebuild index e6b8db2062ea..f8d4f93e9610 100644 --- a/sys-block/zram-init/zram-init-9999.ebuild +++ b/sys-block/zram-init/zram-init-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit prefix readme.gentoo-r1 @@ -12,12 +12,13 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/vaeth/${PN}.git" else - SRC_URI="https://github.com/vaeth/zram-init/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86" + 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" @@ -30,14 +31,18 @@ RDEPEND=" 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 +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. +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 +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\"" +the services using \$TMPDIR the following line: + rc_need=\"zram-init\"" src_prepare() { default @@ -60,8 +65,8 @@ src_install() { einstalldocs readme.gentoo_create_doc - emake DESTDIR="${ED}" PREFIX="/usr" SYSCONFDIR="/etc" \ - BINDIR="${ED}/sbin" SYSTEMDDIR="${ED}/lib/systemd/system" install + emake DESTDIR="${ED}" PREFIX="/usr" BINDIR="${ED}/sbin" SYSCONFDIR="/etc" \ + SYSTEMDDIR="${ED}/lib/systemd/system" install } pkg_postinst() { |