[istatd] Initial import (#891941).

Lorenzo Dalrio lorenzodalrio at fedoraproject.org
Wed Apr 24 13:25:01 UTC 2013


commit 953d490d90ba369c8a7eac9177b74ec6cc8e3c4b
Author: Lorenzo Dalrio <lorenzo.dalrio at gmail.com>
Date:   Wed Apr 24 15:24:13 2013 +0200

    Initial import (#891941).

 .gitignore           |    1 +
 istatd-tmpfiles.conf |    1 +
 istatd.service       |   16 +++++++++
 istatd.spec          |   89 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 5 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8885598 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/istatd-0.5.8.tar.gz
diff --git a/istatd-tmpfiles.conf b/istatd-tmpfiles.conf
new file mode 100644
index 0000000..6e7eea4
--- /dev/null
+++ b/istatd-tmpfiles.conf
@@ -0,0 +1 @@
+d /run/istat 0750 istat istat -
diff --git a/istatd.service b/istatd.service
new file mode 100644
index 0000000..76ee4da
--- /dev/null
+++ b/istatd.service
@@ -0,0 +1,16 @@
+#
+# istat Daemon service unit file
+#
+
+[Unit]
+Description=Daemon serving statistics to your iStat iPhone application
+Documentation=man:istatd(1) 
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/istatd
+Restart=on-abort
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target
diff --git a/istatd.spec b/istatd.spec
new file mode 100644
index 0000000..8e2464b
--- /dev/null
+++ b/istatd.spec
@@ -0,0 +1,89 @@
+Name:		istatd
+Version:	0.5.8
+Release:	4%{?dist}
+Summary:	Daemon serving statistics to your iStat iPhone application
+
+Group:		Applications/System
+License:	BSD
+URL:		https://github.com/tiwilliam/istatd
+Source0:	https://github.com/downloads/tiwilliam/istatd/istatd-%{version}.tar.gz
+Source1:	istatd.service
+Source2:	istatd-tmpfiles.conf
+
+BuildRequires:	libxml2-devel
+Requires(pre):	shadow-utils
+Requires(post):	systemd
+Requires(preun):	systemd
+Requires(postun):	systemd
+
+
+%description
+istatd is a daemon serving statistics to your iStat iPhone
+application from Linux, Solaris & FreeBSD.
+istatd collects data such as CPU, memory, network and disk
+usage and keeps the history.
+Once connecting from the iPhone and entering the lock code
+this data will be sent to the iPhone and shown in fancy graphs.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+mkdir -p %{buildroot}/run/istat
+mkdir -p %{buildroot}/%{_var}/cache/istat
+mkdir -p %{buildroot}/%{_unitdir}
+mkdir -p %{buildroot}/%{_tmpfilesdir}
+install -p -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/
+install -p -m 644 %{SOURCE2} %{buildroot}/%{_tmpfilesdir}/istatd.conf
+
+
+%pre
+getent group istat >/dev/null || groupadd -r istat
+getent passwd istat >/dev/null || \
+    useradd -r -g istat -d /var/run/istat -s /sbin/nologin \
+    -c "istatd daemon user" istat
+exit 0
+
+
+%post
+%systemd_post istatd.service
+
+%preun
+%systemd_preun istatd.service
+
+%postun
+%systemd_postun_with_restart istatd.service
+
+%files
+%doc AUTHORS.txt CHANGELOG.txt DEVELOPERS.txt README.txt
+%{_bindir}/istatd
+%config(noreplace) %{_sysconfdir}/istat.conf
+%{_mandir}/man1/istatd.1.gz
+%{_mandir}/man5/istat.conf.5.gz
+%attr(750, istat, istat) %{_var}/cache/istat
+%attr(750, istat, istat) /run/istat
+%{_unitdir}/istatd.service
+%{_tmpfilesdir}/istatd.conf
+
+
+%changelog
+* Fri Apr 12 2013 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 0.5.8-4
+- Modified tmpfiles.d file macro
+
+* Wed Apr 10 2013 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 0.5.8-3
+- Applied corrections as requested in package review
+
+* Fri Jan 04 2013 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 0.5.8-2
+- Specfile cleanup
+
+* Tue Oct 30 2012 Lorenzo Dalrio <lorenzo.dalrio at gmail.com> - 0.5.8-1
+- Initial release
+
diff --git a/sources b/sources
index e69de29..51724bb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3657b9f6fb1aa3b063973726d0f16f86  istatd-0.5.8.tar.gz


More information about the scm-commits mailing list