blob: 07ce5613316bbd33eb0d4d44c5ab284f78ea7d44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
EGIT_REPO_URI="https://github.com/dobek/fstrimDaemon.git"
inherit git-2
DESCRIPTION="Shell script daemon for fstrim to maintain ssd drive performance"
HOMEPAGE="https://github.com/dobek/fstrimDaemon"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="systemd"
RDEPEND="sys-apps/util-linux"
DEPEND="${RDEPEND}"
src_compile() {
:
}
src_install() {
dosbin usr/sbin/fstrimDaemon.sh
dodoc README.md
if ! use systemd ; then
sed -i -e "s|sbin/runscript|sbin/openrc-run|" etc/init.d/fstrimDaemon
doinitd etc/init.d/fstrimDaemon
doconfd etc/conf.d/fstrimDaemon
else
systemd_dounit usr/lib/systemd/system/fstrimDaemon.service
fi
}
|