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 - 0.5.8-4 - Modified tmpfiles.d file macro * Wed Apr 10 2013 Lorenzo Dalrio - 0.5.8-3 - Applied corrections as requested in package review * Fri Jan 04 2013 Lorenzo Dalrio - 0.5.8-2 - Specfile cleanup * Tue Oct 30 2012 Lorenzo Dalrio - 0.5.8-1 - Initial release