mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-block/zram-init: bump to 9.1 and fix push.sh reference
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>
This commit is contained in:
committed by
Jason Zaman
parent
0b5b790d30
commit
ccba6ee861
@@ -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
|
||||
|
||||
55
sys-block/zram-init/zram-init-8.1-r1.ebuild
Normal file
55
sys-block/zram-init/zram-init-8.1-r1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
56
sys-block/zram-init/zram-init-9.1.ebuild
Normal file
56
sys-block/zram-init/zram-init-9.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user