diff --git a/metadata/categories.conf b/metadata/categories.conf index 9c9372b..fadbb22 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -14,3 +14,4 @@ sys-apps x11-apps app-security media-gfx +sys-kernel diff --git a/packages/sys-kernel/zram-init/zram-init-8.0.exheres-0 b/packages/sys-kernel/zram-init/zram-init-8.0.exheres-0 new file mode 100644 index 0000000..11e47d8 --- /dev/null +++ b/packages/sys-kernel/zram-init/zram-init-8.0.exheres-0 @@ -0,0 +1,34 @@ +# Copyright 2018 Martin Sekera +# 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 +}