summaryrefslogtreecommitdiff
blob: 542ec6f226c2fe5f0438d6733e71748b064582eb (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit perl-module

DESCRIPTION="Watt's Up Monitoring Daemon"
HOMEPAGE="https://dev.gentoo.org/~robbat2/wattsup-daemon/"
SRC_URI="https://dev.gentoo.org/~robbat2/wattsup-daemon/${P}.tar.gz"

SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

BDEPEND="dev-perl/Device-SerialPort
		dev-perl/Time-TAI64
		virtual/perl-Time-HiRes"
RDEPEND="${BDEPEND}"

PATCHES=( "${FILESDIR}/${P}-openrc.patch" )

mydoc="AUTHORS doc/wattsup_spec_v442.txt"

src_install() {
	perl-module_src_install
	newinitd gentoo/wattsup-daemon.initd wattsup-daemon
	newconfd gentoo/wattsup-daemon.confd wattsup-daemon
}