aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Heidelberg <david@ixit.cz>2020-05-11 16:36:09 +0200
committerDavid Heidelberg <david@ixit.cz>2020-05-11 16:37:51 +0200
commit686afe33a1ee66c85eec7c1613f053b126874a41 (patch)
tree6cf7a92618c9598f437e9731345efebe70374dab /sys-block
parentdev-python/quantities: new package (diff)
downloadguru-686afe33a1ee66c85eec7c1613f053b126874a41.tar.gz
guru-686afe33a1ee66c85eec7c1613f053b126874a41.tar.bz2
guru-686afe33a1ee66c85eec7c1613f053b126874a41.zip
sys-block/systemd-swap: New package.
Inteligent swapping script for systemd. Signed-off-by: David Heidelberg <david@ixit.cz>
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/systemd-swap/Manifest1
-rw-r--r--sys-block/systemd-swap/metadata.xml12
-rw-r--r--sys-block/systemd-swap/systemd-swap-4.0.1.ebuild25
3 files changed, 38 insertions, 0 deletions
diff --git a/sys-block/systemd-swap/Manifest b/sys-block/systemd-swap/Manifest
new file mode 100644
index 000000000..ef74f9f81
--- /dev/null
+++ b/sys-block/systemd-swap/Manifest
@@ -0,0 +1 @@
+DIST systemd-swap-4.0.1.tar.gz 20349 BLAKE2B 1e4e83b89ea5a0bd3195db951477920cdb185d4f44b6b7bfcc06a9b4bd6086e4c427b34de9a584a58a5a424c21ee9e4c25b9485332ef5811f7ee5db6c02c904c SHA512 c0ba9fa5a3d456376679fe8383550ae0fb26126d8b6c04d2d7d782911709e4c96c42b5a4db3d23b7e921881950d06cc81b60514055b27134106815595da97020
diff --git a/sys-block/systemd-swap/metadata.xml b/sys-block/systemd-swap/metadata.xml
new file mode 100644
index 000000000..279edc11f
--- /dev/null
+++ b/sys-block/systemd-swap/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>david@ixit.cz</email>
+ <name>David Heidelberg</name>
+ </maintainer>
+
+ <upstream>
+ <remote-id type="github">Nefelim4ag/systemd-swap</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-block/systemd-swap/systemd-swap-4.0.1.ebuild b/sys-block/systemd-swap/systemd-swap-4.0.1.ebuild
new file mode 100644
index 000000000..ce2d4b9b3
--- /dev/null
+++ b/sys-block/systemd-swap/systemd-swap-4.0.1.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
+}