Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tinyproxy: fixed up init script and created missing folders #349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 <[email protected]> - 1.8.2-2
- Fixed init script
- Create log and run directories

* Thu Oct 21 2010 Dag Wieers <[email protected]> - 1.8.2-1
- Fixed initscript. (Johan Huysmans)

Expand Down