Files
guru/sys-block/systemd-swap/systemd-swap-4.0.1.ebuild
Theo Anderson 2f0b38c210 sys-block/systemd-swap: fix sandbox violation
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
2020-12-23 23:26:16 +13:00

28 lines
661 B
Bash

# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info
DESCRIPTION="Script for creating swap space from zram swaps, swap files and swap partitions."
HOMEPAGE="https://github.com/Nefelim4ag/systemd-swap/"
if [[ ${PV} == *9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Nefelim4ag/${PN}.git"
else
SRC_URI="https://github.com/Nefelim4ag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
fi
LICENSE="GPL-3"
SLOT="0"
CONFIG_CHECK="~ZRAM ~ZSWAP"
src_install() {
emake PREFIX="${ED}" install
keepdir /var/lib/systemd-swap
}