Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions specs/tinyproxy/tinyproxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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 <nigel.sim@gmail.com> - 1.8.2-2
- Fixed init script
- Create log and run directories

* Thu Oct 21 2010 Dag Wieers <dag@wieers.com> - 1.8.2-1
- Fixed initscript. (Johan Huysmans)

Expand Down