Files
3proxy/3proxy.spec

96 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package 3proxy
#
# Copyright (c) 2025 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- Updated to 0.9.4+git20240718 * Fixed build with gcc14. - Added files: 3proxy.service, 3proxy-socks.firewalld and 3proxy.cfg. - Added user and group proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Removed file system-pcre.patch. - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=4
2024-08-28 13:50:51 +00:00
%define _user proxy
%define _group proxy
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%define _home %{_localstatedir}/lib/%{name}
%define plugdir %{_libdir}/%{name}/plugins
Name: 3proxy
Version: 0.9.5
Release: 0
Summary: Tiny proxy servers set
License: BSD-3-Clause OR Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
URL: https://github.com/%{name}/%{name}
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
Source1: %{name}.service
- Updated to 0.9.4+git20240718 * Fixed build with gcc14. - Added files: 3proxy.service, 3proxy-socks.firewalld and 3proxy.cfg. - Added user and group proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Removed file system-pcre.patch. - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=4
2024-08-28 13:50:51 +00:00
Source2: %{name}-socks.firewalld
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
Source3: %{name}.cfg
BuildRequires: openssl-devel
BuildRequires: pam-devel
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
Requires(pre): shadow
Provides: group(%{_group})
Provides: user(%{_user})
%description
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
Universal proxy server with HTTP, HTTPS, SOCKS v5, FTP,PO P3, UDP and TCP
portmapping, access control, bandwith control, traffic limitation and accounting
based on username, client IP, target IP, day time, day of week, etc.
%prep
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%autosetup -p1
sed -i -e 's/USER/%{_user}/' -e 's/GROUP/%{_group}/' %{SOURCE1}
sed -i -e 's/CFLAGS = -g/CFLAGS = %{optflags}/' -e 's/LDFLAGS = /LDFLAGS = %{optflags} /' Makefile.Linux
sed -i -e '/^LIBS =/d' -e 's/^#LIBS =/LIBS =/' -e '/^PLUGINS =/d' -e 's/^#PLUGINS =/PLUGINS =/' Makefile.Linux
%build
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%make_build -f Makefile.Linux
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{plugdir}
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
mkdir -p %{buildroot}%{_mandir}/man{3,8}
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
install -pm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
install -pm0755 bin/*.ld.so %{buildroot}%{plugdir}
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
install -pm0644 man/%{name}.cfg.3 %{buildroot}%{_mandir}/man3/%{name}.cfg.3
install -pm0644 man/%{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8
install -Dpm0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
- Updated to 0.9.4+git20240718 * Fixed build with gcc14. - Added files: 3proxy.service, 3proxy-socks.firewalld and 3proxy.cfg. - Added user and group proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Removed file system-pcre.patch. - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=4
2024-08-28 13:50:51 +00:00
install -Dpm0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/services/%{name}-socks.xml
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
install -Dpm0660 %{SOURCE3} %{buildroot}%{_home}/%{name}.cfg
%pre
getent group %{_group} &> /dev/null || groupadd -r %{_group}
getent passwd %{_user} &> /dev/null || %{_sbindir}/useradd -rc 'User for tiny proxy servers set.' -s /bin/false -d %{_home} -g %{_group} %{_user}
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license copying
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%doc authors cfg README
%config(noreplace) %attr(0660,%{_user},%{_group}) %{_home}/%{name}.cfg
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%dir %{plugdir}
%{plugdir}/*.ld.so
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%{_mandir}/man3/%{name}.cfg.3%{?ext_man}
%{_mandir}/man8/%{name}.8%{?ext_man}
%{_unitdir}/%{name}.service
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Removed file system-pcre.patch. - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=3
2024-08-28 07:44:26 +00:00
%{_prefix}/lib/firewalld
- Added files: 3proxy.service, 3proxy.firewalld and 3proxy.cfg. - Added user and group 3proxy for secure work via systemd service. - Added /var/log/3proxy directory with correct permissions. - Disabled allplugins build target (plugins don't building). - Updated to 0.9.4 * Added socket options, interface binding. * Added connection limiting / connection rate limiting. * Added RADIUS support. * Added zero copy (splice) support for Linux. * Added possibility to limit user to single IP (via authentication cache). * Fixed socket may be closed before all data received/sent. * Fixed bandlimin non-working. * Fixed few race conditions. * Added deb/rpm build, systemd support. * Fixed bandwidth limiters (once again). * Fixed data filtering plugins (PCREPlugin, SSLPlugin). SSLPlugin use on Linux requires to disable splice (-s0). * FIxed standalone proxies do not react on HUP (Ctrl+C) in Linux/Unix. * Added arm support. * Added openssl 1.1 support for SSLPlugin. * Fixed systemd description file (proxy may fail to start after reboot). * Fixed countall/nocounall do not work in some configurations. * Fixed counters do not work if counter file is not specified. * Fixed counters without rotation (type N) are incorrectly shown in web admin interface. * Fixed %n may be incomplete or missed in long log records. * Fixed connect back functionality does not work. * Added docker builds. * Fixed invalid handling of '-' character in ACL hostname. * Added parentretry command (defaults to 2) to retry connections to parent proxies. * Removed icqpr related code (OSCAR proxy). OBS-URL: https://build.opensuse.org/package/show/server:proxy/3proxy?expand=0&rev=2
2024-08-21 13:59:06 +00:00
%dir %attr(-,%{_user},%{_group}) %{_home}
%dir %attr(-,%{_user},%{_group}) %{_localstatedir}/log/%{name}
%changelog