diff options
author | Jason Zaman <perfinion@gentoo.org> | 2016-08-10 19:59:17 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2016-08-10 20:00:42 +0800 |
commit | 51116fa2944f0fb872cd635086cee015e175c890 (patch) | |
tree | fdc802d517c0dade290c24859e6d5992a995228d /sys-block/zram-init | |
parent | sys-block/zram-init: add myself as maintainer (diff) | |
download | gentoo-51116fa2944f0fb872cd635086cee015e175c890.tar.gz gentoo-51116fa2944f0fb872cd635086cee015e175c890.tar.bz2 gentoo-51116fa2944f0fb872cd635086cee015e175c890.zip |
sys-block/zram-init: bump to 3.8
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-block/zram-init')
-rw-r--r-- | sys-block/zram-init/Manifest | 1 | ||||
-rw-r--r-- | sys-block/zram-init/zram-init-3.8.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/sys-block/zram-init/Manifest b/sys-block/zram-init/Manifest index f3aa8ce90c13..7593acc6984f 100644 --- a/sys-block/zram-init/Manifest +++ b/sys-block/zram-init/Manifest @@ -2,3 +2,4 @@ DIST zram-init-2.7.tar.gz 4821 SHA256 205765243bd36bf62c471363c4fddf8173275d37f5 DIST zram-init-3.0.tar.gz 5578 SHA256 a1b4bf7f90497a44388f349c3c766e13e575ff7b52168f74058e9b352244b71a SHA512 f962aaa9c5d7f8f7566e9e405de4709fcfd0b659c7dcf79008ca5b7b18ab44545f363e8a695bfff07068e0889ec79ce54af578493f82be3848ca306865d6555a WHIRLPOOL 6304d5192b81490e33962e3162f18729e5a8438bb3f10b90744045014c3ef91a18c2a65538b97f02811cc793d88fb7eddc7efa3129c3b150e70cddfb3694305f DIST zram-init-3.4.tar.gz 5825 SHA256 39e121d209a03a29f98bbb0be47ce666bf6c0ef7185af30f118976fbe68a8788 SHA512 985cbe5dd63c900ce88bf8f8989bc04f982b27104dbc40e9c4cf504310aca335efafba842d801e0b9250e8b6925d063bcd2c555122fc7c7295128687ccd4080f WHIRLPOOL 086426e0f334c500f9dc65273afad1acdbd7696882cd0a9f54f7b27fac347777f8dea0899a2719626648da9dee1c837f6f3ccebd8cf1e1c9dc550624c2eb9416 DIST zram-init-3.6.tar.gz 6207 SHA256 cfd611395ffd808108921059a93db7c84c80b3ecbfcd92bbc17d450519189e1d SHA512 535104beca6de225aeb482ebb7a01a2498c841784a68d60e8e09f04ab193e6a8ae3ea55797308c89d54f3ce66bdac3f8c535059561ea6ccf848582c594b7f667 WHIRLPOOL 6cac97687f121d307992420f4fd71cefe76bae13bf9541b0ff803ad91b3ce7479229a640fb9c8eb5a37f9e9dff63e32abc0c708c586b10aa74c330b2607642d5 +DIST zram-init-3.8.tar.gz 6619 SHA256 4a43c424739dda6c4ffe62b5431b6fb1f476afd9f8b9b9149eb32314cd34a3a6 SHA512 c083f34bba6031f8e247f61a1451343e14cc4bc5c4731ad3a32a5f0eea265936a83b27ad0e3cbd2ba0e05e2bec1e6ae739b6e4149d120dafbcc057437188f07f WHIRLPOOL e4fdcdd49c8eb5eb74faa0200af7fa1db5e6e0128a531d9b4a1e02d57ced03c36bce00313e6ddc6de16c9fc6bac25b0f803f3160c20029bdaa4d3558f00124f6 diff --git a/sys-block/zram-init/zram-init-3.8.ebuild b/sys-block/zram-init/zram-init-3.8.ebuild new file mode 100644 index 000000000000..665d820ce343 --- /dev/null +++ b/sys-block/zram-init/zram-init-3.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit readme.gentoo-r1 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 + eapply_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 +} + +pkg_postinst() { + readme.gentoo_print_elog +} |