diff options
author | Craig Andrews <candrews@gentoo.org> | 2019-03-19 14:38:48 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-03-20 11:29:32 -0400 |
commit | f8b26eb06c84b49e3aa40a0f37921ae779c7cbf8 (patch) | |
tree | b824800bf3e4febaeb0ddfdf365994bbe0aea188 /sys-block | |
parent | media-sound/kid3: Bump to version 3.7.1 (diff) | |
download | gentoo-f8b26eb06c84b49e3aa40a0f37921ae779c7cbf8.tar.gz gentoo-f8b26eb06c84b49e3aa40a0f37921ae779c7cbf8.tar.bz2 gentoo-f8b26eb06c84b49e3aa40a0f37921ae779c7cbf8.zip |
sys-block/zram-init: 8.1 version bump, EAPI=7
Closes: https://bugs.gentoo.org/663898
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/zram-init/Manifest | 1 | ||||
-rw-r--r-- | sys-block/zram-init/zram-init-8.1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/sys-block/zram-init/Manifest b/sys-block/zram-init/Manifest index 8ddf1cc1b00c..7eacb8ce0fd0 100644 --- a/sys-block/zram-init/Manifest +++ b/sys-block/zram-init/Manifest @@ -1,2 +1,3 @@ DIST zram-init-3.8.tar.gz 6619 BLAKE2B c22482a619e5b0137c2d3eb45babee82ff36778a32caaed959beaf6ed3683e0010ef42328f8c4db7956696ca9c6a80c9e676c9db7d533f7283832036203beb34 SHA512 c083f34bba6031f8e247f61a1451343e14cc4bc5c4731ad3a32a5f0eea265936a83b27ad0e3cbd2ba0e05e2bec1e6ae739b6e4149d120dafbcc057437188f07f DIST zram-init-7.1.tar.gz 9054 BLAKE2B 70c1aee839db3c4599fa59a0ecda7bb7a905a18cbbd90872865f266364da0602bd6ada85c35d7da5f8e6f4c6f9da122abf01abd57080a0728d4314fc2ed03c0d SHA512 6a9a6568d1c439f941401cb5638645a034a3cb29aaafa0d7595ad19fe7c50296e72c6751393eaa5cd8877b0d2bd0376339fb0f596c9517f9b17d425cc9c5ed53 +DIST zram-init-8.1.tar.gz 9177 BLAKE2B 229a469aeeb0b22b80f48d946d4ff746c7bd5d7b58ea9290db0da011df6d618c7c55ad95810b0be74ff81350182057d9067e834ecba688eb4ffa668521468a8b SHA512 8f688accb7a4231f705f694c4b4e7344bbb338b2b1f09a6dacd900020a4e8583105b25fef5b40f39630db88db6fcc8ec79824945ceaee95ea1279d09d081a994 diff --git a/sys-block/zram-init/zram-init-8.1.ebuild b/sys-block/zram-init/zram-init-8.1.ebuild new file mode 100644 index 000000000000..2b9aa4db74d0 --- /dev/null +++ b/sys-block/zram-init/zram-init-8.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2019 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"'"' \ + -- sbin/* || 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 +} |