|
|
6709efa |
# To build on Fedora 14 due to https://bugzilla.redhat.com/show_bug.cgi?id=715580
|
|
|
6709efa |
#% global _unitdir /lib/systemd/system
|
|
|
6709efa |
|
|
|
806706b |
%global _hardened_build 1
|
|
|
806706b |
|
|
|
9fc53cf |
Name: 3proxy
|
|
|
9fc53cf |
Version: 0.8.13
|
|
|
9fc53cf |
Release: 1%{?dist}
|
|
|
f783ca4 |
|
|
|
9fc53cf |
Summary: Tiny but very powerful proxy
|
|
|
9fc53cf |
Summary(ru): Маленький, но крайне мощный прокси-сервер
|
|
|
f783ca4 |
|
|
|
9fc53cf |
License: BSD or ASL 2.0 or GPLv2+ or LGPLv2+
|
|
|
9fc53cf |
Url: http://3proxy.ru/?l=EN
|
|
|
f783ca4 |
|
|
|
9fc53cf |
Source0: https://github.com/z3APA3A/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
9fc53cf |
Source2: 3proxy.cfg
|
|
|
9fc53cf |
Source3: 3proxy.service
|
|
|
9fc53cf |
BuildRequires: gcc
|
|
|
9fc53cf |
BuildRequires: openssl-devel
|
|
|
f783ca4 |
|
|
|
cd8f98a |
# I correct config path in man only. It is fully Fedora related.
|
|
|
9fc53cf |
Patch0: 3proxy-0.6.1-config-path.patch
|
|
|
cd8f98a |
|
|
|
9fc53cf |
BuildRequires: systemd
|
|
|
9fc53cf |
Requires(post): systemd
|
|
|
9fc53cf |
Requires(preun): systemd
|
|
|
9fc53cf |
Requires(postun): systemd
|
|
|
6709efa |
# This is actually needed for the %triggerun script but Requires(triggerun)
|
|
|
6709efa |
# is not valid. We can use %post because this particular %triggerun script
|
|
|
6709efa |
# should fire just after this package is installed.
|
|
|
9fc53cf |
Requires(post): systemd
|
|
|
9fc53cf |
Obsoletes: 3proxy-sysvinit < 0.8.12
|
|
|
6709efa |
|
|
|
6709efa |
|
|
|
f783ca4 |
%description
|
|
|
6709efa |
%{name} -- light proxy server.
|
|
|
f783ca4 |
Universal proxy server with HTTP, HTTPS, SOCKS v4, SOCKS v4a, SOCKS v5, FTP,
|
|
|
f783ca4 |
POP3, UDP and TCP portmapping, access control, bandwith control, traffic
|
|
|
f783ca4 |
limitation and accounting based on username, client IP, target IP, day time,
|
|
|
f783ca4 |
day of week, etc.
|
|
|
f783ca4 |
|
|
|
f783ca4 |
%description -l ru
|
|
|
6709efa |
%{name} -- маленький прокси сервер.
|
|
|
f783ca4 |
Это универсальное решение поддерживающее HTTP, HTTPS, SOCKS v4, SOCKS v4a,
|
|
|
f783ca4 |
SOCKS v5, FTP, POP3, UDP и TCP проброс портов (portmapping), списки доступа
|
|
|
f783ca4 |
управление скоростью доступа, ограничением трафика и статистикоу, базирующейся
|
|
|
f783ca4 |
на имени пользователя, слиентском IP адресе, IP цели, времени дня, дня недели
|
|
|
f783ca4 |
и т.д.
|
|
|
f783ca4 |
|
|
|
6709efa |
|
|
|
f783ca4 |
%prep
|
|
|
a6246fe |
%autosetup -p0
|
|
|
cd8f98a |
|
|
|
f783ca4 |
# To use "fedora" CFLAGS (exported)
|
|
|
f783ca4 |
sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile.Linux
|
|
|
f783ca4 |
|
|
|
f783ca4 |
%build
|
|
|
a6246fe |
make -f Makefile.Linux
|
|
|
f783ca4 |
|
|
|
f783ca4 |
%install
|
|
|
f783ca4 |
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
0ae3d34 |
mkdir -p %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/
|
|
|
c5cc3de |
mkdir -p %{buildroot}%{_mandir}/man{3,8}
|
|
|
f783ca4 |
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
|
|
6709efa |
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
f783ca4 |
install -m755 -D src/dighosts %{buildroot}%{_bindir}/dighosts
|
|
|
f783ca4 |
install -m755 -D src/ftppr %{buildroot}%{_bindir}/ftppr
|
|
|
f783ca4 |
install -m755 -D src/mycrypt %{buildroot}%{_bindir}/mycrypt
|
|
|
f783ca4 |
install -m755 -D src/pop3p %{buildroot}%{_bindir}/pop3p
|
|
|
6709efa |
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
f783ca4 |
install -m755 -D src/proxy %{buildroot}%{_bindir}/htproxy
|
|
|
f783ca4 |
install -m755 -D src/socks %{buildroot}%{_bindir}/socks
|
|
|
f783ca4 |
install -m755 -D src/tcppm %{buildroot}%{_bindir}/tcppm
|
|
|
f783ca4 |
install -m755 -D src/udppm %{buildroot}%{_bindir}/udppm
|
|
|
f783ca4 |
|
|
|
f783ca4 |
install -pD -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}.cfg
|
|
|
6709efa |
install -pD -m755 %{SOURCE3} %{buildroot}/%{_unitdir}/%{name}.service
|
|
|
f783ca4 |
|
|
|
a6246fe |
for man in man/*.{3,8} ; do
|
|
|
9fc53cf |
install "$man" "%{buildroot}%{_mandir}/man${man:(-1)}/"
|
|
|
a6246fe |
done
|
|
|
0ae3d34 |
|
|
|
0ae3d34 |
|
|
|
f783ca4 |
%post
|
|
|
bf1a26d |
%systemd_post %{name}.service
|
|
|
f783ca4 |
|
|
|
f783ca4 |
%preun
|
|
|
bf1a26d |
%systemd_preun %{name}.service
|
|
|
6709efa |
|
|
|
6709efa |
%postun
|
|
|
bf1a26d |
%systemd_postun_with_restart %{name}.service
|
|
|
6709efa |
|
|
|
f783ca4 |
%files
|
|
|
a6246fe |
%license copying
|
|
|
a6246fe |
%doc README authors Release.notes
|
|
|
f783ca4 |
%{_bindir}/*
|
|
|
f783ca4 |
%config(noreplace) %{_sysconfdir}/%{name}.cfg
|
|
|
f783ca4 |
%{_localstatedir}/log/%{name}
|
|
|
0ae3d34 |
%{_mandir}/man8/*.8.gz
|
|
|
c5cc3de |
%{_mandir}/man3/*.3.gz
|
|
|
6709efa |
%{_unitdir}/%{name}.service
|
|
|
6709efa |
|
|
|
f783ca4 |
%changelog
|
|
|
9fc53cf |
* Tue Oct 22 2019 Pavel Alexeev <Pahan@Hubbitus.info> - 0.8.13-1
|
|
|
9fc53cf |
- Update to 0.8.13 version (bz#1742435).
|
|
|
9fc53cf |
- Try build on epel8 (bz#1757824).
|
|
|
9fc53cf |
- Completely remove SOURCE1 sysvinit legacy.
|
|
|
9fc53cf |
- Reformat with spaces.
|
|
|
9fc53cf |
|
|
|
76bd08d |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.12-3
|
|
|
76bd08d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
76bd08d |
|
|
|
33fc18a |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.12-2
|
|
|
33fc18a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
33fc18a |
|
|
|
a6246fe |
* Sat Nov 17 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.12-1
|
|
|
a6246fe |
- Update 0.8.12
|
|
|
a6246fe |
- Retire sysvinit
|
|
|
a6246fe |
|
|
|
5b05fc0 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-7
|
|
|
5b05fc0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
5b05fc0 |
|
|
|
473bffe |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-6
|
|
|
473bffe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
473bffe |
|
|
|
18430fd |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-5
|
|
|
18430fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
18430fd |
|
|
|
2ecc7ea |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
|
|
|
2ecc7ea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2ecc7ea |
|
|
|
4dd6b43 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
|
|
|
4dd6b43 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
4dd6b43 |
|
|
|
8b4515c |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
|
|
8b4515c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8b4515c |
|
|
|
d77f15e |
* Sat Jan 23 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.8.2-1
|
|
|
d77f15e |
- Major upstream update - 0.8.2. Bz#1300097.
|
|
|
d77f15e |
- Tarballs now on github.
|
|
|
d77f15e |
|
|
|
d77f15e |
* Fri Jan 01 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.1.3-1
|
|
|
d77f15e |
- New upstream release 0.7.1.3 - bz#1263482.
|
|
|
d77f15e |
|
|
|
a264e67 |
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1.2-3
|
|
|
a264e67 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
a264e67 |
|
|
|
4f3a65b |
* Thu Mar 05 2015 Adam Jackson <ajax@redhat.com> 0.7.1.2-2
|
|
|
4f3a65b |
- Drop sysvinit subpackage on F23+
|
|
|
4f3a65b |
|
|
|
de07e62 |
* Mon Feb 23 2015 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.2-1
|
|
|
de07e62 |
- New upstream version 0.7.7.2
|
|
|
de07e62 |
|
|
|
245eee6 |
* Mon Aug 18 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.1-1
|
|
|
245eee6 |
- Update to 0.7.7.1 - bz#1114274.
|
|
|
245eee6 |
|
|
|
53364dd |
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
|
|
|
53364dd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
53364dd |
|
|
|
35513e7 |
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
|
|
|
35513e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
35513e7 |
|
|
|
154a02e |
* Tue Apr 8 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7-1
|
|
|
154a02e |
- Update to 0.7 version bz#1085256.
|
|
|
154a02e |
- Add BR openssl-devel.
|
|
|
154a02e |
|
|
|
7ed7272 |
* Tue Jan 7 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-18
|
|
|
bf1a26d |
- Step to systemd macroses (#850383)
|
|
|
bf1a26d |
|
|
|
d28bf3c |
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-17
|
|
|
d28bf3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
d28bf3c |
|
|
|
806706b |
* Fri Apr 26 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-16
|
|
|
806706b |
- Harden build - bz#955141
|
|
|
806706b |
|
|
|
e9ebe42 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-15
|
|
|
e9ebe42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e9ebe42 |
|
|
|
06e3b0c |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-14
|
|
|
06e3b0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
06e3b0c |
|
|
|
935ec42 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-13
|
|
|
935ec42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
935ec42 |
|
|
|
6709efa |
* Thu Jun 23 2011 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-12
|
|
|
6709efa |
- Make service systemd compliant (BZ#657412).
|
|
|
6709efa |
|
|
|
3b525ef |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-11
|
|
|
3b525ef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3b525ef |
|
|
|
c5cc3de |
* Thu Nov 4 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-10
|
|
|
c5cc3de |
- Add man3/3proxy.cfg.3 man (BZ#648204).
|
|
|
c5cc3de |
- Gone explicit man gzip - leave it for rpm.
|
|
|
c5cc3de |
|
|
|
cd8f98a |
* Sun May 30 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-9
|
|
|
cd8f98a |
- Correct path to config file in man (BUG#596087) add Patch0: 3proxy-0.6.1-config-path.patch
|
|
|
cd8f98a |
|
|
|
c7b25b8 |
* Mon Mar 15 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-8
|
|
|
c7b25b8 |
- Update to version 0.6.1
|
|
|
c7b25b8 |
- In NM event processing replace service restart to condrestart - BZ#572662
|
|
|
c7b25b8 |
|
|
|
40f31a6 |
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-7
|
|
|
40f31a6 |
- Again new init-script for Fix BZ#533144 :).
|
|
|
40f31a6 |
|
|
|
b163d3d |
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-6
|
|
|
b163d3d |
- Forgot commit new init-script for Fix BZ#533144.
|
|
|
b163d3d |
|
|
|
8407b3a |
* Sun Nov 8 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-5
|
|
|
0ae3d34 |
- Fix BZ#533144:
|
|
|
0ae3d34 |
- Add reload section to service file, fix stop.
|
|
|
0ae3d34 |
- Add %%{_sysconfdir}/NetworkManager/dispatcher.d/40-%%{name} (Thanks to Pankaj Pandey)
|
|
|
0ae3d34 |
- Include man-files.
|
|
|
0ae3d34 |
- Add Requires: initscripts as owner directory %%{_sysconfdir}/NetworkManager/dispatcher.d/
|
|
|
0ae3d34 |
|
|
|
f783ca4 |
* Thu Aug 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-3
|
|
|
f783ca4 |
- Fedora Review started - thank you Peter Lemenkov.
|
|
|
f783ca4 |
- Change rights (0755->0644) of config.
|
|
|
f783ca4 |
- Disable service by default.
|
|
|
f783ca4 |
- Add BR dos2unix.
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-2
|
|
|
f783ca4 |
- /usr/bin/proxy renamed to htproxy to avoid name bump with libproxy-bin.
|
|
|
f783ca4 |
- Add Source2: 3proxy.cfg from Alt Linux (slightly modified) - http://sisyphus.ru/ru/srpm/Sisyphus/3proxy/sources/1 (thanks to Afanasov Dmitry).
|
|
|
f783ca4 |
- Add log-dir %%{_localstatedir}/log/%%{name}
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-1
|
|
|
f783ca4 |
- Ressurect old spec. New version 0.6.
|
|
|
f783ca4 |
- Rename spec to classic %%{name}.spec.
|
|
|
f783ca4 |
- Remove Hu part from release and add %%{?dist}.
|
|
|
f783ca4 |
- Change summary, description, URL. Add Russian localisation of sumamry and description.
|
|
|
f783ca4 |
- Strip some old comments.
|
|
|
f783ca4 |
- Add to %%doc Readme Changelog authors copying news.
|
|
|
f783ca4 |
- Turn macros usage from %%name to %%{name} for consistence.
|
|
|
f783ca4 |
- Change group from System/Servers to standard System Environment/Daemons.
|
|
|
f783ca4 |
- Add %%defattr(-,root,root,-) in %%files section.
|
|
|
f783ca4 |
- Add cleanup in %%install section.
|
|
|
f783ca4 |
- Add %%clean section with cleanup buildroot.
|
|
|
f783ca4 |
- License changed from just GPL to "BSD or ASL 2.0 or GPLv2+ or LGPLv2+" (according to Makefile.Linux)
|
|
|
f783ca4 |
- Add %%config(noreplace) mark to all configs.
|
|
|
f783ca4 |
- Add file %%{_initdir}/%%{name}
|
|
|
f783ca4 |
- Old %%{_initdir} macros replaced by %%{_initrddir}
|
|
|
f783ca4 |
- Hack makefile to use system CFLAGS.
|
|
|
f783ca4 |
- Add %%post/%%postun sections.
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Fri Jan 25 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.5.3k
|
|
|
f783ca4 |
- Import from ftp://ftp.nluug.nl/pub/os/Linux/distr/altlinux/4.0/Server/4.0.1/files/SRPMS/3proxy-0.5.3h-alt1.src.rpm
|
|
|
f783ca4 |
Combine with ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/t/th/three-proxy/3proxy-0.5.3g-1.src.rpm
|
|
|
f783ca4 |
- Steep to version 0.5.3k
|
|
|
f783ca4 |
- Comment out packager
|
|
|
f783ca4 |
- Reformat header of spec with tabs
|
|
|
f783ca4 |
- Add desc from second src.rpm of import
|
|
|
f783ca4 |
- Correct source0
|
|
|
f783ca4 |
- Add -c key fo %%setup macro
|
|
|
f783ca4 |
- Add BuildRoot definition (this is not ALT)
|
|
|
f783ca4 |
- Change
|
|
|
f783ca4 |
Release: alt1
|
|
|
f783ca4 |
to
|
|
|
f783ca4 |
Release: 0.Hu.0
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Fri Apr 13 2007 Lunar Child <luch@altlinux.ru> 0.5.3h-alt1
|
|
|
f783ca4 |
- new version
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Wed Mar 21 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt2
|
|
|
f783ca4 |
- Added init script.
|
|
|
f783ca4 |
- Added new trivial config file.
|
|
|
f783ca4 |
|
|
|
f783ca4 |
* Tue Mar 20 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt1
|
|
|
f783ca4 |
- First build for ALT Linux Sisyphus
|