diff options
author | Martin Väth <martin@mvath.de> | 2011-02-08 01:34:43 +0100 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-10-11 10:46:28 +0200 |
commit | cdf6f8594a55332c6eef03b81a4cf620966e8c65 (patch) | |
tree | dc89a26ae185f6894ce8064e96b4b0d88e727983 /sys-block/zram-init/zram-init-2.ebuild | |
parent | compcache-tools -> zram-init (diff) | |
download | mv-cdf6f8594a55332c6eef03b81a4cf620966e8c65.tar.gz mv-cdf6f8594a55332c6eef03b81a4cf620966e8c65.tar.bz2 mv-cdf6f8594a55332c6eef03b81a4cf620966e8c65.zip |
Rewrite of zram-init. Download from homepage
Diffstat (limited to 'sys-block/zram-init/zram-init-2.ebuild')
-rw-r--r-- | sys-block/zram-init/zram-init-2.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-block/zram-init/zram-init-2.ebuild b/sys-block/zram-init/zram-init-2.ebuild new file mode 100644 index 00000000..0441950e --- /dev/null +++ b/sys-block/zram-init/zram-init-2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header $ + +EAPI="4" +RESTRICT="mirror" + +DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram" +HOMEPAGE="http://www.mathematik.uni-wuerzburg.de/~vaeth/download/index.html" +SRC_URI="http://www.mathematik.uni-wuerzburg.de/~vaeth/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="zsh-completion" + +src_install() { + dosbin zram-init + newinitd zram-init.initd zram-init + newconfd zram-init.confd zram-init + if use zsh-completion + then insinto /usr/share/zsh/site-functions + doins _zram-init + fi +} + +pkg_postinst() { + elog + elog "To use zram, activate it in your kernel and add it to default runlevel:" + elog "rc-config add zram default" + elog +} |