34 lines
756 B
Bash
34 lines
756 B
Bash
# 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
|
|
}
|