diff options
author | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-10-13 20:34:52 +0000 |
---|---|---|
committer | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-10-13 20:34:52 +0000 |
commit | 40223812f7a536940bda412b0fe1c5149becd6ac (patch) | |
tree | f7c2cd9634b3bf294b8968eca200a47653b6cc07 /sys-block | |
parent | Marked ~hppa (bug #525246). Conditionally depend on dev-db/mongodb (bug #5253... (diff) | |
download | gentoo-2-40223812f7a536940bda412b0fe1c5149becd6ac.tar.gz gentoo-2-40223812f7a536940bda412b0fe1c5149becd6ac.tar.bz2 gentoo-2-40223812f7a536940bda412b0fe1c5149becd6ac.zip |
add old version back, see bug 525302, thanks to NP-Hardass
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/zram-init/ChangeLog | 7 | ||||
-rw-r--r-- | sys-block/zram-init/zram-init-2.7-r1.ebuild | 39 |
2 files changed, 45 insertions, 1 deletions
diff --git a/sys-block/zram-init/ChangeLog b/sys-block/zram-init/ChangeLog index 454283582ec4..80b52eace4e2 100644 --- a/sys-block/zram-init/ChangeLog +++ b/sys-block/zram-init/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-block/zram-init # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-block/zram-init/ChangeLog,v 1.2 2014/09/29 21:48:20 jauhien Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-block/zram-init/ChangeLog,v 1.3 2014/10/13 20:34:52 jauhien Exp $ + +*zram-init-2.7-r1 (13 Oct 2014) + + 13 Oct 2014; Jauhien Piatlicki <jauhien@gentoo.org> +zram-init-2.7-r1.ebuild: + add old version back, see bug 525302, thanks to NP-Hardass *zram-init-3.0 (29 Sep 2014) diff --git a/sys-block/zram-init/zram-init-2.7-r1.ebuild b/sys-block/zram-init/zram-init-2.7-r1.ebuild new file mode 100644 index 000000000000..8b6aba1fbd51 --- /dev/null +++ b/sys-block/zram-init/zram-init-2.7-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-block/zram-init/zram-init-2.7-r1.ebuild,v 1.3 2014/10/13 20:34:52 jauhien Exp $ + +EAPI=5 +inherit eutils readme.gentoo systemd + +DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram" +HOMEPAGE="https://github.com/vaeth/zram-init/" +SRC_URI="https://github.com/vaeth/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +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 + epatch_user +} + +src_install() { + dosbin sbin/* + 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/* + readme.gentoo_create_doc +} |