первая публикация

This commit is contained in:
imax-ua
2024-04-09 00:18:28 +00:00
commit afc2039b9c
139 changed files with 5697 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
AUX fstrimDaemon-1.1.1-fixes.patch 603 BLAKE2B 6e878ba86998162ab5f414106fbc5955eef2eacf4403010b571563b302178c3e931b66bdef840e1cb207290dc50062470d8e400cab546cef2f53c92fc821c7c0 SHA512 0a3d15cd3b13ea20d031ede826a7e408e6a374f9cccad95967658afc786270c91c767d9299276008760f91e19456d0f2cc1c1e2c34cff2aa519777a2953bdf08
DIST fstrimDaemon-1.1.1.tar.gz 9950 BLAKE2B 114b37e41240e7a805200fe9e0c7ee52d4dd9967745d65b3c0a1d541f994e2ebcfd0e4ef28a806727e9cebc75da78f2d409238850b9193d9ea9cf538d15a41a2 SHA512 973c2c2b93225cb8f08a1407e59493ac86bd89473981b5adde894f2b91e3c2e437d787aab1b71d616f5fc97cf7fa6ac5e0a42ecf0b30bfc2481cc9c943b9fce6
EBUILD fstrimDaemon-1.1.1.ebuild 871 BLAKE2B 6cb4b87caa2bf9f206e8c9e496f2c4060f09e1f3a690482723a0fc499a9ef8896dfa88008c05fb083b83a3319cc3cd09fa56d457300bf0519c178964d8727045 SHA512 83ab9277510306d6de837016f67f7ae481f61a82f86bf1bfc1327bceaf8e91d048ef48b9ed8f2c820cf3c19f02e6ca05d56126a3573d56fbaf37e79fd1048979

View File

@@ -0,0 +1,23 @@
diff --git etc/conf.d/fstrimDaemon etc/conf.d/fstrimDaemon
index 7707d37..c1b61ff 100644
--- etc/conf.d/fstrimDaemon
+++ etc/conf.d/fstrimDaemon
@@ -33,7 +33,7 @@ IONICE="3"
PID="/var/run/fstrimDaemon.pid"
# Here Daemon logs
-LOG="/var/log/fstrimeDaemon.log"
+LOG="/var/log/fstrimDaemon.log"
# The main daemon script i.e. fstrim-sleep loop
DAEMON="/usr/sbin/fstrimDaemon.sh"
diff --git etc/init.d/fstrimDaemon etc/init.d/fstrimDaemon
index ce7c022..6b0fffc 100755
--- etc/init.d/fstrimDaemon
+++ etc/init.d/fstrimDaemon
@@ -1,4 +1,4 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
checkconfig()
{

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit systemd
DESCRIPTION="Shell script daemon for fstrim to maintain ssd drive performance"
HOMEPAGE="https://github.com/dobek/fstrimDaemon"
if [[ ${PV} == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/dobek/${PN}.git"
KEYWORDS=""
else
SRC_URI="https://github.com/dobek/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
fi
SLOT="0"
LICENSE="GPL-2"
IUSE=""
RDEPEND="sys-apps/util-linux"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-1.1.1-fixes.patch"
eapply_user
}
src_compile() {
:
}
src_install() {
dosbin usr/sbin/fstrimDaemon.sh
dodoc README.md
doinitd etc/init.d/fstrimDaemon
doconfd etc/conf.d/fstrimDaemon
}