summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smitdane@gmail.com>2010-07-16 21:45:06 -0400
committerDane Smith <smitdane@gmail.com>2010-07-16 21:45:06 -0400
commite3d40e6d354fbdd02123c17ae37750134877f29d (patch)
tree09d768bb16d241123eda9802445eb9c14c2bf716 /app-admin/istatd
downloadsmithdanea-e3d40e6d354fbdd02123c17ae37750134877f29d.tar.gz
smithdanea-e3d40e6d354fbdd02123c17ae37750134877f29d.tar.bz2
smithdanea-e3d40e6d354fbdd02123c17ae37750134877f29d.zip
Intial commit for my public overlay.
All working projects.
Diffstat (limited to 'app-admin/istatd')
-rw-r--r--app-admin/istatd/Manifest5
-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
5 files changed, 83 insertions, 0 deletions
diff --git a/app-admin/istatd/Manifest b/app-admin/istatd/Manifest
new file mode 100644
index 0000000..181c880
--- /dev/null
+++ b/app-admin/istatd/Manifest
@@ -0,0 +1,5 @@
+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 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 0000000..4214988
--- /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 0000000..1d3e79c
--- /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 0000000..131d24d
--- /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 0000000..0446f12
--- /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>