Name: tinyproxy
Summary: Lightweight, non-caching, optionally anonymizing HTTP proxy
Version: 1.6.5
Release: 2
License: GPL
Group: System Environment/Daemons
URL: http://tinyproxy.sourceforge.net/
Description: tinyproxy is an anonymizing http proxy which is very light on system
resources, ideal for smaller networks and similar situations where
other proxies (such as Squid) may be overkill and/or a security risk.
tinyproxy can also be configured to anonymize http requests (allowing for exceptions on a per-header basis).
The build was succesful. The following RPMs were generated:
The build was succesful. The following RPMs were generated:
The spec file used by the build system currently has the following contents:
# $Id$
# Authority: dag
Summary: Lightweight, non-caching, optionally anonymizing HTTP proxy
Name: tinyproxy
Version: 1.6.5
Release: 2%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://tinyproxy.sourceforge.net/
Source: https://www.banu.com/pub/tinyproxy/1.6/tinyproxy-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: asciidoc
%description
tinyproxy is an anonymizing http proxy which is very light on system
resources, ideal for smaller networks and similar situations where
other proxies (such as Squid) may be overkill and/or a security risk.
tinyproxy can also be configured to anonymize http requests (allowing
for exceptions on a per-header basis).
%prep
%setup
%{__cat} <<EOF >tinyproxy.sysconfig
OPTIONS="-c %{_sysconfdir}/tinyproxy/tinyproxy.conf"
EOF
%{__cat} <<'EOF' >tinyproxy.sysv
#!/bin/bash
#
# Initfile for Tinyproxy daemon
#
# chkconfig: 345 90 25
# description: A small, efficient HTTP/SSL proxy daemon.
#
# processname: tinyproxy
# config: /etc/tinyproxy/tinyproxy.conf
# pidfile: /var/run/tinyproxy.pid
# Source function library.
source /etc/rc.d/init.d/functions
# Source networking configuration.
source /etc/sysconfig/network
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
[ -f /etc/tinyproxy/tinyproxy.conf ] || exit 0
DAEMON="%{_bindir}/tinyproxy"
OPTIONS=
NAME=tinyproxy
DESC=tinyproxy
if [ -r /etc/sysconfig/tinyproxy ]; then
. /etc/sysconfig/tinyproxy
fi
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: "
daemon $DAEMON $OPTIONS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$NAME
;;
stop)
echo -n "Stopping $DESC: "
killproc $DAEMON
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME
;;
reload|force-reload)
echo -n "Reloading $DESC configuration files."
killproc $DAEMON -HUP
echo
;;
status)
status $DAEMON
;;
restart)
echo -n "Restarting $DESC: "
echo
$0 stop
$0 start
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload|status}"
exit 1
;;
esac
exit $RETVAL
EOF
%build
%configure \
--program-prefix="%{?_program_prefix}" \
--enable-filter \
--enable-tunnel \
--enable-upstream \
--enable-xtinyproxy \
--with-config="%{_sysconfdir}/tinyproxy" \
--with-stathost="localhost"
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_sysconfdir}/tinyproxy/
%{__make} install DESTDIR="%{buildroot}"
%{__install} -Dp -m0644 doc/tinyproxy.conf %{buildroot}%{_sysconfdir}/tinyproxy/tinyproxy.conf
touch %{buildroot}%{_sysconfdir}/tinyproxy/filter
%{__install} -Dp -m0755 tinyproxy.sysv %{buildroot}%{_initrddir}/tinyproxy
%{__install} -Dp -m0644 tinyproxy.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/tinyproxy
### Clean up buildroot
%{__rm} -f %{buildroot}%{_sysconfdir}/tinyproxy-dist
%clean
%{__rm} -rf %{buildroot}
%post
/sbin/chkconfig --add tinyproxy
%preun
if [ $1 -eq 0 ]; then
/sbin/service tinyproxy stop &>/dev/null || :
/sbin/chkconfig --del tinyproxy
fi
%postun
/sbin/service tinyproxy condrestart &>/dev/null || :
%files
%defattr(-, root, root, 0755)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%doc doc/{HTTP_ERROR_CODES,RFC_INFO,report.sh,tinyproxy.conf,filter-howto.txt}
%doc %{_mandir}/man8/tinyproxy.8*
%config(noreplace) %{_sysconfdir}/tinyproxy/
%config(noreplace) %{_sysconfdir}/sysconfig/tinyproxy
%config %{_initrddir}/tinyproxy
%{_sbindir}/tinyproxy
%{_datadir}/tinyproxy/
%changelog
* Thu Oct 21 2010 Dag Wieers <dag@wieers.com> - 1.6.5-2
- Fixed initscript. (Johan Huysmans)
* Tue Mar 23 2010 Dag Wieers <dag@wieers.com> - 1.6.5-1
- Updated to release 1.6.5.
* Mon Feb 25 2008 Dag Wieers <dag@wieers.com> - 1.6.3-1
- Initial package. (using DAR)