add sys-kernel/zram-init
This commit is contained in:
parent
a391aaba27
commit
52aa46638e
2 changed files with 35 additions and 0 deletions
|
@ -14,3 +14,4 @@ sys-apps
|
|||
x11-apps
|
||||
app-security
|
||||
media-gfx
|
||||
sys-kernel
|
||||
|
|
34
packages/sys-kernel/zram-init/zram-init-8.0.exheres-0
Normal file
34
packages/sys-kernel/zram-init/zram-init-8.0.exheres-0
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue