summaryrefslogtreecommitdiff
blob: 58be4a21542910a6f665ec9f0073d9405aef7c49 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit eutils

DESCRIPTION="Monitoring daemon serving statistics to your iStat iPhone application"
HOMEPAGE="http://bjango.com/apps/istat/"
SRC_URI="http://github.com/downloads/tiwilliam/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="qnaptemp"

DEPEND="dev-libs/libxml2"
RDEPEND="${DEPEND}"

pkg_setup() {
	enewgroup istatd
	enewuser istatd -1 -1 -1 "istatd"
}

src_configure() {
	econf $(use_with qnaptemp)
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"

	dodir /var/{run,cache}/${PN} || die
	fowners istatd:istatd /var/{run,cache}/${PN} || die

	newinitd "${FILESDIR}/istatd-init" ${PN} || die
	newconfd "${FILESDIR}/istatd-conf" ${PN} || die

	dodoc AUTHORS.txt DEVELOPERS.txt CHANGELOG.txt README.txt || die
}