Files
tinyproxy/tinyproxy.spec

104 lines
2.9 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package tinyproxy
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: tinyproxy
Version: 1.11.2
Release: 0
Summary: Minimalist WWW proxy
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
License: GPL-2.0-or-later
Group: Productivity/Networking/Web/Proxy
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
URL: https://tinyproxy.github.io/
Source: https://github.com/tinyproxy/tinyproxy/releases/download/%version/%name-%version.tar.xz
Source1: %name.logrotate
BuildRequires: systemd-rpm-macros
BuildRequires: sysuser-tools
BuildRequires: xz
Requires: logrotate
%sysusers_requires
%description
Tinyproxy is a light-weight HTTP/HTTPS proxy daemon for POSIX
operating systems. Designed from the ground up to be fast and yet
small, it is an ideal solution for use cases such as embedded
deployments where a full featured HTTP proxy is required, but the
system resources for a larger proxy are unavailable.
%prep
%autosetup -p1
%build
%configure
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
%make_build
%install
%make_install
b="%buildroot"
install -d -m0750 "$b/%_localstatedir/log/%name"
install -D -m0644 "%SOURCE1" "$b/%_sysconfdir/logrotate.d/%name"
mkdir -p "$b/%_unitdir" "$b/%_tmpfilesdir" "$b/%_sysusersdir"
cat >>"$b/%_unitdir/tinyproxy.service" <<-EOF
[Unit]
Description=A small HTTP/1 proxy
After=network.target named.service nss-lookup.service
[Service]
Type=simple
User=tinyproxy
Group=tinyproxy
ExecStart=%_bindir/tinyproxy -d
[Install]
WantedBy=multi-user.target
EOF
cat >>"$b/%_tmpfilesdir/%name.conf" <<-EOF
d /run/tinyproxy 0755 tinyproxy tinyproxy -
EOF
echo 'u tinyproxy - "Tinyproxy" %_datadir/%name' >system-user-tinyproxy.conf
cp -a system-user-tinyproxy.conf "$b/%_sysusersdir/"
%sysusers_generate_pre system-user-tinyproxy.conf random system-user-tinyproxy.conf
rm -rf "$b/%_datadir/doc/%name"
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
%pre -f random.pre
%service_add_pre tinyproxy.service
%post
systemd-tmpfiles --create tinyproxy.conf || :
%service_add_post tinyproxy.service
%preun
%service_del_preun tinyproxy.service
%postun
%service_del_postun tinyproxy.service
%files
%license COPYING
Accepting request 828198 from home:dirkmueller:branches:server:proxy - update to 1.10.0: * Add support for basic HTTP authentication * Add socks upstream support * Log to stdout if no logfile is specified * Activate reverse proxy by default * Support bind with transparent mode * Install tinyproxy to bin/ instead of sbin/ * Ship manpages as part of distribution tarball * Allow multiple listen statements in the configuration * Coverity fixes * Simplified configure and build * Improved selftest environment * Included security fixes * Fix CVE-2017-11747: Create PID file before dropping privileges. * Fix CVE-2012-3505: algorithmic complexity DoS in hashmap * Bugfixes * BB#110: fix algorithmic complexity DoS in hashmap * BB#106: fix CONNECT requests with IPv6 literal addresses as host * BB#116: fix invalid free for GET requests to ipv6 literal address * BB#63: conf: Allow multiple Listen statements in the config * BB#81: allow listening on multiple families when no Listen is provided in config * BB#115: Drop supplementary groups * BB#112: build: fix build with autoconf >= 2.69 * BB#103: Move files installed in /etc/ to /etc/tinyproxy/ * BB#109: Fix crash (infinite loop) when writing to log file fails * BB#90: Fix bug in ACL netmask generation * BB#95: Fix FilterURLs with transparent proxy support * BB#91: Fix upstream proxy support * BB#74: Create log and pid files after we drop privs * BB#89: Don't recompile regular expressions OBS-URL: https://build.opensuse.org/request/show/828198 OBS-URL: https://build.opensuse.org/package/show/server:proxy/tinyproxy?expand=0&rev=21
2020-08-25 18:31:43 +00:00
%doc NEWS README README.md
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/*.conf
%config %_sysconfdir/logrotate.d/%name
%_bindir/tinyproxy
%_mandir/man*/*
%_datadir/%name
%_unitdir/*.service
%_tmpfilesdir/*
%_sysusersdir/*
%attr(750,%name,root) %_localstatedir/log/%name
%changelog