From 53cba99042fa967e2a93da9f8db806fe2d035543 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 17 Feb 2020 01:16:38 +0000 Subject: gentoo resync : 17.02.2020 --- sys-block/zram-init/zram-init-9.1.ebuild | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 sys-block/zram-init/zram-init-9.1.ebuild (limited to 'sys-block/zram-init/zram-init-9.1.ebuild') 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 + !/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 +} -- cgit v1.2.3