summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-admin/istatd/ChangeLog9
-rw-r--r--app-admin/istatd/Manifest6
-rw-r--r--app-admin/istatd/files/istatd-conf2
-rw-r--r--app-admin/istatd/files/istatd-init26
-rw-r--r--app-admin/istatd/istatd-0.5.7.ebuild39
-rw-r--r--app-admin/istatd/metadata.xml11
6 files changed, 93 insertions, 0 deletions
diff --git a/app-admin/istatd/ChangeLog b/app-admin/istatd/ChangeLog
new file mode 100644
index 000000000..1f8cfe340
--- /dev/null
+++ b/app-admin/istatd/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-admin/istatd
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 15 Jul 2010; Dane Smith (smithdanea) <smithdanea@gmail.com>
+ +istatd-0.5.7.ebuild, +files/istatd-conf, +files/istatd-init,
+ +metadata.xml:
+ New ebuild for bug 326965.
+
diff --git a/app-admin/istatd/Manifest b/app-admin/istatd/Manifest
new file mode 100644
index 000000000..5eaeea2cb
--- /dev/null
+++ b/app-admin/istatd/Manifest
@@ -0,0 +1,6 @@
+AUX istatd-conf 45 RMD160 3b6a32ea9e464d49da0b3c7380f349ebde19269b SHA1 59e3a19e80ae89ab4dc28236e70bf3980cde1cd9 SHA256 0d7f006c8b5c54b6bc8e4171143be5e665cb531668b548ec9b6fb7a3d18c5a33
+AUX istatd-init 500 RMD160 b466f4a1adf9ee2a7ab2f1aa9a532b660f8a4df9 SHA1 b733baf4eb9c018697d9e0c63e76c77ac33c7ad1 SHA256 24f0e19dbffd9570be371002eeab010ee11661842926ca3b7f1201f52e4ad558
+DIST istatd-0.5.7.tar.gz 157067 RMD160 6b43228a0b73b9c9c6f1b97eba9e06a05732dd43 SHA1 3cb5d6c6f11edc792e474846a2cb7409829f07ee SHA256 52804d507f03c098b64bf45a6c58dd6c9d77961741024d7cc7e476997b9c8a35
+EBUILD istatd-0.5.7.ebuild 894 RMD160 4da7787682cc27eb833a9675c4cb2897c419e265 SHA1 4616ac8989bdb9413c38bf06be8bcd0c62087a5c SHA256 4d9ce1f8725f493d2e0e94e414407e5ef7480bfe48f50c3ff738bbae77dfc3ca
+MISC ChangeLog 290 RMD160 d0e8cf3c0b264a2825fbfda8f945c1b9ba29226a SHA1 1159ad8f1520a579f4811e40038ceaaa8d49732d SHA256 2d7deb0c1266d24cc7d91aa8cffb4e70f90e60ee71daeae2494b4e1150785a4a
+MISC metadata.xml 330 RMD160 bd944096352b2af193bb33f0d7d2f9b129a5f85a SHA1 bdc3494aa842ee8ebdb74bca97f118e7f7060021 SHA256 0e673453208122eca8e0d12882b5f7a0279daa219d2b68a88160002007802ad3
diff --git a/app-admin/istatd/files/istatd-conf b/app-admin/istatd/files/istatd-conf
new file mode 100644
index 000000000..421498880
--- /dev/null
+++ b/app-admin/istatd/files/istatd-conf
@@ -0,0 +1,2 @@
+#Options for the istat daemon
+ISTATD_OPTS=""
diff --git a/app-admin/istatd/files/istatd-init b/app-admin/istatd/files/istatd-init
new file mode 100644
index 000000000..1d3e79c2f
--- /dev/null
+++ b/app-admin/istatd/files/istatd-init
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+PID=/var/run/istatd/istat.pid
+
+start() {
+ ebegin "Starting istatd"
+ start-stop-daemon --start \
+ --exec /usr/bin/istatd \
+ --make-pidfile \
+ --chuid istatd:istatd \
+ --pidfile ${PID} \
+ --background \
+ -- "${ISTATD_OPTS}" \
+ >> /var/log/istatd 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping istatd"
+ start-stop-daemon --stop \
+ --pidfile ${PID}
+ eend $?
+}
diff --git a/app-admin/istatd/istatd-0.5.7.ebuild b/app-admin/istatd/istatd-0.5.7.ebuild
new file mode 100644
index 000000000..131d24dcd
--- /dev/null
+++ b/app-admin/istatd/istatd-0.5.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 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
+}
diff --git a/app-admin/istatd/metadata.xml b/app-admin/istatd/metadata.xml
new file mode 100644
index 000000000..0446f1225
--- /dev/null
+++ b/app-admin/istatd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+ <use>
+ <flag name='qnaptemp'>Read temperature from procfs on qnap NAS
+ products</flag>
+ </use>
+
+</pkgmetadata>