aboutsummaryrefslogtreecommitdiff
blob: 76e3f6d5ea26e994d849991036524c5c85df0c94 (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
39
40
41
42
43
44
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="6"

inherit readme.gentoo-r1 eutils git-r3

DESCRIPTION="logitechmediaserver process cleanup and restarter"
HOMEPAGE="https://github.com/lmiphay/lms-restart"
EGIT_REPO_URI="https://github.com/lmiphay/lms-restart.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	media-sound/logitechmediaserver-bin
	virtual/cron
"

DISABLE_AUTOFORMATTING=1
FORCE_PRINT_ELOG=1
DOC_CONTENTS="
  This is a simple bouncer for logitechmediaserver.

  Note it is configured to run once a day - you may want to pick/configure
  a specific time.
"

src_install() {
	dobin lms-restart

	insinto /etc/cron.daily
	newins lms-restart.cron lms-restart
	fperms 755 "/etc/cron.daily/lms-restart"

	readme.gentoo_create_doc
}

pkg_postinst() {
	readme.gentoo_print_elog
}