[packages/3proxy] - new

qboosh qboosh at pld-linux.org
Fri Jul 20 18:52:28 CEST 2018


commit 74934925fc25e2a7287f6fa5d9141d96f15e43eb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 20 18:54:16 2018 +0200

    - new

 3proxy.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
diff --git a/3proxy.spec b/3proxy.spec
new file mode 100644
index 0000000..b2697c7
--- /dev/null
+++ b/3proxy.spec
@@ -0,0 +1,76 @@
+# TODO:
+# - non-root user
+# - init script
+Summary:	3APA3A 3proxy tiny proxy server
+Summary(pl.UTF-8):	Mały serwer proxy 3APA3A 3proxy
+Name:		3proxy
+Version:	0.8.12
+Release:	1
+License:	BSD or Apache v2.0 or LGPL v2.1+
+Group:		Networking/Daemons
+#Source0Download: https://github.com/z3APA3A/3proxy/releases/
+Source0:	https://github.com/z3APA3A/3proxy/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	f8ccbe689ff8da8ff67942fc440187ae
+URL:		https://3proxy.ru/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+3APA3A 3proxy tiny proxy server.
+
+%description -l pl.UTF-8
+Mały serwer proxy 3APA3A 3proxy.
+
+%prep
+%setup -q
+
+%build
+%{__make} -f Makefile.Linux \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -fno-strict-aliasing -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -c" \
+	LN="%{__cc}" \
+	DCFLAGS="-fPIC" \
+	LDFLAGS="%{rpmldflags} %{rpmcflags} -pthread"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -f Makefile.Linux install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	prefix=%{_prefix} \
+	ETCDIR=$RPM_BUILD_ROOT%{_sysconfdir}/3proxy
+
+# fix page
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man{3,5}
+%{__mv} $RPM_BUILD_ROOT%{_mandir}/man5/3proxy.cfg.{3,5}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README Release.notes authors copying doc/html
+%lang(ru) %doc doc/ru
+%dir %{_sysconfdir}/3proxy
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/3proxy/bandlimiters
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/3proxy/counters
+# FIXME: 3proxy specific user?
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/3proxy/passwd
+%attr(755,root,root) %{_bindir}/3proxy
+%attr(755,root,root) %{_bindir}/dighosts
+%attr(755,root,root) %{_bindir}/ftppr
+%attr(755,root,root) %{_bindir}/mycrypt
+%attr(755,root,root) %{_bindir}/pop3p
+%attr(755,root,root) %{_bindir}/proxy
+%attr(755,root,root) %{_bindir}/socks
+%attr(755,root,root) %{_bindir}/tcppm
+%attr(755,root,root) %{_bindir}/udppm
+%{_mandir}/man5/3proxy.cfg.5*
+%{_mandir}/man8/3proxy.8*
+%{_mandir}/man8/ftppr.8*
+%{_mandir}/man8/icqpr.8*
+%{_mandir}/man8/pop3p.8*
+%{_mandir}/man8/proxy.8*
+%{_mandir}/man8/smtpp.8*
+%{_mandir}/man8/socks.8*
+%{_mandir}/man8/tcppm.8*
+%{_mandir}/man8/udppm.8*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/3proxy.git/commitdiff/74934925fc25e2a7287f6fa5d9141d96f15e43eb



More information about the pld-cvs-commit mailing list