From 5b8ff298c32fb1a67a3ff18fffaccdd2ebf618cb Mon Sep 17 00:00:00 2001 From: Nigel Sim Date: Sun, 12 Oct 2014 11:59:08 +1000 Subject: [PATCH] fixed up init script and created missing folders --- specs/tinyproxy/tinyproxy.spec | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/specs/tinyproxy/tinyproxy.spec b/specs/tinyproxy/tinyproxy.spec index db60324bd..a49488a9f 100644 --- a/specs/tinyproxy/tinyproxy.spec +++ b/specs/tinyproxy/tinyproxy.spec @@ -4,7 +4,7 @@ Summary: Lightweight, non-caching, optionally anonymizing HTTP proxy Name: tinyproxy Version: 1.8.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: System Environment/Daemons URL: http://tinyproxy.sourceforge.net/ @@ -39,7 +39,7 @@ EOF # # processname: tinyproxy # config: /etc/tinyproxy/tinyproxy.conf -# pidfile: /var/run/tinyproxy.pid +# pidfile: /var/run/tinyproxy/tinyproxy.pid # Source function library. source /etc/rc.d/init.d/functions @@ -52,7 +52,7 @@ source /etc/sysconfig/network [ -f %{_sysconfdir}/tinyproxy/tinyproxy.conf ] || exit 0 -DAEMON="%{_bindir}/tinyproxy" +DAEMON="%{_sbindir}/tinyproxy" OPTIONS= NAME=tinyproxy DESC=tinyproxy @@ -124,6 +124,9 @@ touch %{buildroot}%{_sysconfdir}/tinyproxy/filter %{__install} -Dp -m0755 tinyproxy.sysv %{buildroot}%{_initrddir}/tinyproxy %{__install} -Dp -m0644 tinyproxy.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/tinyproxy +%{__install} -d -m0755 %{buildroot}%{_localstatedir}/log/tinyproxy/ +%{__install} -d -m0755 %{buildroot}%{_localstatedir}/run/tinyproxy/ + ### Clean up buildroot %{__rm} -f %{buildroot}%{_sysconfdir}/tinyproxy-dist @@ -154,8 +157,15 @@ fi %config %{_initrddir}/tinyproxy %{_sbindir}/tinyproxy %{_datadir}/tinyproxy/ +%defattr(-, nobody, nobody, 0700) +%dir %{_localstatedir}/log/tinyproxy/ +%dir %{_localstatedir}/run/tinyproxy/ %changelog +* Sun Oct 12 2014 Nigel Sim - 1.8.2-2 +- Fixed init script +- Create log and run directories + * Thu Oct 21 2010 Dag Wieers - 1.8.2-1 - Fixed initscript. (Johan Huysmans)