Install this version:
emerge -a =sys-apps/swapspace-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-apps/swapspace-9999
Or alternatively:
emerge --autounmask-write -a =sys-apps/swapspace-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools git-r3 systemd
DESCRIPTION="A dynamic swap space manager"
HOMEPAGE="https://github.com/Tookmund/Swapspace"
EGIT_REPO_URI="https://github.com/Tookmund/${PN^}.git"
LICENSE="GPL-2"
SLOT="0"
RDEPEND="acct-user/swapspace"
src_prepare() {
default
# Change paths
sed -i '/ExecStart/s|local/||' swapspace.service \
|| die "sed failed for swapspace.service"
sed -i '/swappath/s|#||;s|/usr/local||' swapspace.conf \
|| die "sed failed for swapspace.conf"
eautoreconf
}
src_configure() {
econf --localstatedir=/var --sysconfdir=/etc/swapspace
}
src_install() {
default
keepdir /var/lib/swapspace
systemd_dounit swapspace.service
newinitd "${FILESDIR}"/swapspace.initd swapspace
newconfd "${FILESDIR}"/swapspace.confd swapspace
}
acct-user/swapspace