diff --git a/sys-block/systemd-swap/Manifest b/sys-block/systemd-swap/Manifest new file mode 100644 index 0000000..67c09af --- /dev/null +++ b/sys-block/systemd-swap/Manifest @@ -0,0 +1 @@ +DIST systemd-swap-4.4.0.tar.gz 29066 BLAKE2B 7278b0f5fac52039c91e901f29d72275e5ce4579001926f3d105c3f4bad026d2bcd21106d4006e9e971f92ecd66b81716b8e92f291230776de78e8fcd2580252 SHA512 39cf297d0d82f4d5fbae64f323bda2c286dd24665321892f068dc5bceea4ea5ddcacdcef14576cab869edbed7d258de759baec36535403051bb2b925406db0b3 diff --git a/sys-block/systemd-swap/metadata.xml b/sys-block/systemd-swap/metadata.xml new file mode 100644 index 0000000..9bd3e10 --- /dev/null +++ b/sys-block/systemd-swap/metadata.xml @@ -0,0 +1,11 @@ + + + + + themainone@mailu.io + TheMainOne + + + Nefelim4ag/systemd-swap + + diff --git a/sys-block/systemd-swap/systemd-swap-4.4.0.ebuild b/sys-block/systemd-swap/systemd-swap-4.4.0.ebuild new file mode 100644 index 0000000..ce2d4b9 --- /dev/null +++ b/sys-block/systemd-swap/systemd-swap-4.4.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-info systemd + +DESCRIPTION="Script for creating swap space from zram swaps, swap files and swap partitions." +HOMEPAGE="https://github.com/Nefelim4ag/systemd-swap/" + +LICENSE="GPL-3" +SLOT="0" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/Nefelim4ag/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/Nefelim4ag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +CONFIG_CHECK="~ZRAM ~ZSWAP" + +src_install() { + emake PREFIX="${ED}/" install +} diff --git a/sys-block/systemd-swap/systemd-swap-9999.ebuild b/sys-block/systemd-swap/systemd-swap-9999.ebuild new file mode 100644 index 0000000..ce2d4b9 --- /dev/null +++ b/sys-block/systemd-swap/systemd-swap-9999.ebuild @@ -0,0 +1,25 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit linux-info systemd + +DESCRIPTION="Script for creating swap space from zram swaps, swap files and swap partitions." +HOMEPAGE="https://github.com/Nefelim4ag/systemd-swap/" + +LICENSE="GPL-3" +SLOT="0" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/Nefelim4ag/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/Nefelim4ag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +CONFIG_CHECK="~ZRAM ~ZSWAP" + +src_install() { + emake PREFIX="${ED}/" install +}