summaryrefslogtreecommitdiff
path: root/sys-apps/deswappify-auto
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/deswappify-auto')
-rw-r--r--sys-apps/deswappify-auto/Manifest2
-rw-r--r--sys-apps/deswappify-auto/deswappify-auto-20210509.ebuild33
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-apps/deswappify-auto/Manifest b/sys-apps/deswappify-auto/Manifest
new file mode 100644
index 0000000..2c67df1
--- /dev/null
+++ b/sys-apps/deswappify-auto/Manifest
@@ -0,0 +1,2 @@
+DIST deswappify-auto-20210509.zip 23668 BLAKE2B f1c4f216061b7d2cfaa772261be7386cc6e55a4d0f16b8a062fb4212ffef3ad52e6840ac9809b1cf06c4ec0148a8f7101dea96ef1b37e6e943391ff897d8cc68 SHA512 352a3096e6f7eb85138ae39cf4c0909ec8569145420d179b86a946744b39b9ef55b477917c81193b086c50f7c160f6f449b631577ba7bf91ee19e83823fbae00
+EBUILD deswappify-auto-20210509.ebuild 860 BLAKE2B 5b5a064a7163d3a873691c21ab37dd7b0d88c8162ab63f2c0a8cf7936227124ed46048f8d5f3c56dfea6f815ab44a53353cc7695d17d5c3a2c67467aec50de63 SHA512 e1a34cd36007b84add845cae3a295328be8c8e74e045598cf889c8718798966692c67ead1a0f5b32e2ad2d52fd7848c27475240a6eb08569a8909279896c1a25
diff --git a/sys-apps/deswappify-auto/deswappify-auto-20210509.ebuild b/sys-apps/deswappify-auto/deswappify-auto-20210509.ebuild
new file mode 100644
index 0000000..36cb37e
--- /dev/null
+++ b/sys-apps/deswappify-auto/deswappify-auto-20210509.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{5..11} )
+inherit python-single-r1 systemd
+
+ID="edd256a886cdfcf04bab08559ba9e45464a59a20"
+DESCRIPTION="Automatically fetch swapped pages to physical memory when enough memory is available"
+HOMEPAGE="https://github.com/wiedemannc/deswappify-auto"
+SRC_URI="https://github.com/wiedemannc/deswappify-auto/archive/$ID.zip -> ${P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/python-systemd[${PYTHON_SINGLE_USEDEP}]
+ dev-python/psutil[${PYTHON_SINGLE_USEDEP}]"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare() {
+ default
+ sed -i 's|/usr/local/bin/|| ; /^#/d' deswappify.service
+}
+
+src_install() {
+ python_doscript deswappify_auto.py
+ systemd_dounit deswappify.service
+}
+
+S="${WORKDIR}/${PN}-${ID}"