Files
gentoo-zh/sys-apps/sysd/sysd-0.6.2.ebuild
T

33 lines
746 B
Bash

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lmctfy/lmctfy-0.5.0.ebuild,v 1.1 2014/07/14 03:55:16 patrick Exp $
EAPI=5
inherit eutils systemd
DESCRIPTION="The daemon who supplies firsthand system data"
HOMEPAGE="https://github.com/hacking-thursday/sysd"
SRC_URI="https://github.com/hacking-thursday/${PN}/releases/download/v${PV}/${P}.tar.gz"
SLOT="0"
LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="
dev-lang/go
"
RDEPEND="${DEPEND}"
src_install() {
emake \
PREFIX=/usr \
MANDIR=/usr/share/man \
DESTDIR="${D}" \
install
newinitd "${FILESDIR}"/sysd.init sysd
systemd_dounit "${FILESDIR}/sysd.service"
}