diff options
author | Martin Väth <martin@mvath.de> | 2015-11-02 23:25:48 +0100 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-11-02 23:25:48 +0100 |
commit | c334d37ea02b7cf2b27e0a9e93adf269f77c3f98 (patch) | |
tree | 31130c9e454dfdcc9252d26e2196c2e6303d0026 /sys-block/zram-init/zram-init-3.5.ebuild | |
parent | www-plugins/noscript: Version bump (diff) | |
download | mv-c334d37ea02b7cf2b27e0a9e93adf269f77c3f98.tar.gz mv-c334d37ea02b7cf2b27e0a9e93adf269f77c3f98.tar.bz2 mv-c334d37ea02b7cf2b27e0a9e93adf269f77c3f98.zip |
sys-block/zram-init: Version bump
Diffstat (limited to 'sys-block/zram-init/zram-init-3.5.ebuild')
-rw-r--r-- | sys-block/zram-init/zram-init-3.5.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sys-block/zram-init/zram-init-3.5.ebuild b/sys-block/zram-init/zram-init-3.5.ebuild new file mode 100644 index 00000000..f5849676 --- /dev/null +++ b/sys-block/zram-init/zram-init-3.5.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +RESTRICT="mirror" +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/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="!<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 + 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 +} |