%{!?make_build: %global make_build make %{?_smp_mflags}} %{!?make_install: %global make_install make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"} %if 0%{?el7} %global _hardened_build 1 %endif Name: proxychains-ng Version: 4.15 Release: 1%{?dist}.1sunshine Summary: Redirect connections through proxy servers License: GPLv2+ URL: https://github.com/rofl0r/proxychains-ng Source0: http://ftp.barfooze.de/pub/sabotage/tarballs/proxychains-ng-%{version}.tar.xz Source1: https://salsa.debian.org/debian/proxychains-ng/-/raw/d63e4d92afbd227bfea6cc7837f0b36de05c5f39/debian/proxychains4.1 Patch0: proxychains-ng-4.15-NULL-snprintf.patch # applies on top of Patch0 Patch1: proxychains-ng-4.15-xdg.patch BuildRequires: gcc BuildRequires: make %description ProxyChains NG is based on ProxyChains. ProxyChains NG hooks network-related (TCP only) libc functions in dynamically linked programs via a preloaded DSO (dynamic shared object) and redirects the connections through one or more SOCKS4a/5 or HTTP proxies. Since Proxy Chains NG relies on the dynamic linker, statically linked binaries are not supported. %prep %if 0%{?autosetup} %autosetup -p1 %else %setup -q %(grep -E '^Patch[0-9]+:' %{_specdir}/%{name}.spec | sed -r 's/^P/%p/;s/:[ ]+/ -p1 -b ./;s/.patch$//') %endif %build %configure --disable-static --libdir=%{_libdir}/%{name} %make_build %install %make_install install-config ln -s ../..%{_bindir}/proxychains4 %{buildroot}%{_bindir}/proxychains chmod +x %{buildroot}%{_libdir}/%{name}/libproxychains4.so install -d %{buildroot}%{_mandir}/man1 install -p -m644 %{S:1} %{buildroot}%{_mandir}/man1/ ln -s proxychains4.1 %{buildroot}%{_mandir}/man1/proxychains.1 %files %{!?_licensedir:%global license %%doc} %license COPYING %doc AUTHORS README TODO %config(noreplace) %{_sysconfdir}/proxychains.conf %{_bindir}/proxychains %{_bindir}/proxychains4 %{_bindir}/proxychains4-daemon %dir %{_libdir}/%{name} %{_libdir}/%{name}/libproxychains4.so %{_mandir}/man1/* %changelog * Mon Aug 09 2021 Moritz Barsnick 4.15-1.1sunshine - add man page from Debian - add a patch to supprt XDG config paths - add a patch to fix a potential (sn)printf of a NULL pointer - fix the XDG config paths for the same potential (sn)printf - provide fallbacks for the for the %%autosetup, %%make_build, %%make_install and %%license macros * Tue Jul 27 2021 Michel Alexandre Salim - 4.15-1 - Update to 4.15 - Use relative symlink for `proxychains`, not absolute * Fri Jul 23 2021 Fedora Release Engineering - 4.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jul 16 2021 Michel Alexandre Salim - 4.14-1 - Update to 4.14 - Clean up spec * Wed Jan 27 2021 Fedora Release Engineering - 4.13-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 4.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 4.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 4.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 4.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Dec 29 2018 Pranav Kant - 4.13-2 - Add symlink for /usr/bin/proxychains * Sat Dec 22 2018 Pranav Kant - 4.13-1 - Update to 4.13 * Fri Jul 13 2018 Fedora Release Engineering - 4.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 4.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Nov 17 2017 Pranav Kant 4.12-1 - Update to 4.12 * Thu Aug 03 2017 Fedora Release Engineering - 4.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Feb 13 2016 Pranav Kant 4.11-1 - Update to 4.11 * Thu Feb 04 2016 Fedora Release Engineering - 4.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 4.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 14 2015 Pranav Kant 4.10-1 - Update to 4.10 * Sun Jun 14 2015 Pranav Kant 4.8.1-9 - Fix source URL * Thu May 21 2015 Pranav Kant 4.8.1-8 - Fix CVE-2015-3887 * Fri May 8 2015 Pranav Kant 4.8.1-7 - Fixed fsf patch from upstream - Added Obsoletes * Tue Mar 17 2015 Pranav Kant 4.8.1-6 - Remove legacy script - proxyresolv4 - Move .so file to application-specific directory * Mon Mar 16 2015 Pranav Kant 4.8.1-5 - Remove .so versioning * Mon Mar 16 2015 Pranav Kant 4.8.1-4 - Install .so file with executable flags - Replace old optflags patch with corrected patch * Wed Mar 11 2015 Pranav Kant 4.8.1-3 - Dropped Obsoletes * Mon Feb 2 2015 Pranav Kant 4.8.1-2 - Moved COPYING to %%license - Downstream .so name versioning * Fri Sep 26 2014 Pranav Kant 4.8.1-1 - Changed the URL from sourceforge to github - Consistently used macros instead of variables - Turn PIE on - Fixed minor release numbering issue - Added a patch for makefile to honour optflags