add sys-kernel/zram-init

This commit is contained in:
Martin Sekera 2018-12-15 16:24:55 +01:00
parent a391aaba27
commit 52aa46638e
2 changed files with 35 additions and 0 deletions

View file

@ -14,3 +14,4 @@ sys-apps
x11-apps x11-apps
app-security app-security
media-gfx media-gfx
sys-kernel

View file

@ -0,0 +1,34 @@
# Copyright 2018 Martin Sekera <sekerama@gmail.com>
# Distributed under the terms of the GNU General Public License v2
require github [ user=vaeth tag="v${PV}" ]
require systemd-service [ systemd_files=[ systemd/system ] ]
require zsh-completion
SUMMARY="Scripts to support compressed swap devices or ramdisks with zram"
HOMEPAGE="https://github.com/vaeth/zram-init/"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~armv7 ~x86"
MYOPTIONS="zsh-completion"
DEPENDENCIES="
run:
zsh-completion? ( app-shells/zsh )
"
src_install() {
if option zsh-completion; then
dozshcompletion zsh/_zram-init _zram-init
fi
insinto /etc/modprobe.d
doins modprobe.d/zram.conf
dodoc AUTHORS ChangeLog README.md
dobin sbin/zram-init
install_systemd_files
}