mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-24 02:55:40 +08:00
added rpm-related files
This commit is contained in:
parent
9c8e18f0b5
commit
9169425b5c
20
contrib/rpm/3proxy-0.6.1-config-path.patch
Normal file
20
contrib/rpm/3proxy-0.6.1-config-path.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- man/3proxy.8.orig 2009-07-13 17:52:25.000000000 +0400
|
||||
+++ man/3proxy.8 2010-05-30 21:39:19.000000000 +0400
|
||||
@@ -84,7 +84,7 @@
|
||||
configuration from stdin. It makes it possible to use 3proxy.cfg file as
|
||||
executable script just by setting +x mode and adding
|
||||
.br
|
||||
-#!/usr/local/3proxy/3proxy
|
||||
+#!/etc/3proxy
|
||||
.br
|
||||
as a first line in 3proxy.cfg
|
||||
.TP
|
||||
@@ -133,7 +133,7 @@
|
||||
wget to automate this task.
|
||||
.SH FILES
|
||||
.TP
|
||||
-.I "/usr/local/3proxy/3proxy.cfg (3proxy.cfg)"
|
||||
+.I "/etc/3proxy.cfg (3proxy.cfg)"
|
||||
.BR 3proxy
|
||||
configuration file
|
||||
.SH BUGS
|
178
contrib/rpm/3proxy.cfg
Normal file
178
contrib/rpm/3proxy.cfg
Normal file
@ -0,0 +1,178 @@
|
||||
# Yes, 3proxy.cfg can be executable, in this case you should place
|
||||
# something like
|
||||
#config /usr/local/3proxy/3proxy.cfg
|
||||
# to show which configuration 3proxy should re-read on realod.
|
||||
|
||||
#system "echo Hello world!"
|
||||
# you may use system to execute some external command if proxy starts
|
||||
|
||||
# We can configure nservers to avoid unsafe gethostbyname() usage
|
||||
#nserver 10.1.2.1
|
||||
#nserver 10.2.2.2
|
||||
# nscache is good to save speed, traffic and bandwidth
|
||||
nscache 65536
|
||||
|
||||
#nsrecord porno.security.nnov.ru 0.0.0.0
|
||||
# nobody will be able to access porno.security.nnov.ru by the name.
|
||||
#nsrecord wpad.security.nnov.ru www.security.nnov.ru
|
||||
# wpad.security.nnov.ru will resolve to www.security.nnov.ru for
|
||||
# clients
|
||||
|
||||
|
||||
timeouts 1 5 30 60 180 1800 15 60
|
||||
# Here we can change timeout values
|
||||
|
||||
users 3APA3A:CL:3apa3a "test:CR:$1$qwer$CHFTUFGqkjue9HyhcMHEe1"
|
||||
# note that "" required, overvise $... is treated as include file name.
|
||||
# $1$qwer$CHFTUFGqkjue9HyhcMHEe1 is 'test' in MD5 crypt format.
|
||||
#users $/usr/local/etc/3proxy/passwd
|
||||
# this example shows you how to include passwd file. For included files
|
||||
# <CR> and <LF> are treated as field separators.
|
||||
|
||||
daemon
|
||||
# now we will not depend on any console (daemonize). daemon must be given
|
||||
# before any significant command on *nix.
|
||||
|
||||
#service
|
||||
# service is required under NT if you want 3proxy to start as service
|
||||
|
||||
#log /usr/local/etc/3proxy/logs/3proxy.log D
|
||||
log /var/log/3proxy/3proxy.log
|
||||
# log allows to specify log file location and rotation, D means logfile
|
||||
# is created daily
|
||||
|
||||
# in log file we want to have underscores instead of spaces
|
||||
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
|
||||
#logformat "L%d-%m-%Y %H:%M:%S %z %N.%p %E %U %C:%c %R:%r %O %I %h %T"
|
||||
#logformat "Linsert into log (l_date, l_user, l_service, l_in, l_out, l_descr) values ('%d-%m-%Y %H:%M:%S', '%U', '%N', %I, %O, '%T')"
|
||||
|
||||
archiver gz /bin/gzip %F
|
||||
#archiver zip zip -m -qq %A %F
|
||||
#archiver zip pkzipc -add -silent -move %A %F
|
||||
#archiver rar rar a -df -inul %A %F
|
||||
# if archiver specified log file will be compressed after closing.
|
||||
# you should specify extension, path to archiver and command line, %A will be
|
||||
# substituted with archive file name, %f - with original file name.
|
||||
# Original file will not be removed, so archiver should care about it.
|
||||
|
||||
rotate 30
|
||||
# We will keep last 30 log files
|
||||
|
||||
auth iponly
|
||||
#auth nbname
|
||||
#auth strong
|
||||
# auth specifies type of user authentication. If you specify none proxy
|
||||
# will not do anything to check name of the user. If you specify
|
||||
# nbname proxy will send NetBIOS name request packet to UDP/137 of
|
||||
# client and parse request for NetBIOS name of messanger service.
|
||||
# Strong means that proxy will check password. For strong authentication
|
||||
# unknown user will not be allowed to use proxy regardless of ACL.
|
||||
# If you do not want username to be checked but wanna ACL to work you should
|
||||
# specify auth iponly.
|
||||
|
||||
|
||||
#allow ADMINISTRATOR,root
|
||||
#allow * 127.0.0.1,192.168.1.1 * *
|
||||
#redirect 192.168.1.2 80 * * * 80
|
||||
#allow * 192.168.1.0/24 * 25,53,110,20-21,1024-65535
|
||||
# we will allow everything if username matches ADMINISTRATOR or root or
|
||||
# client ip is 127.0.0.1 or 192.168.1.1. Overwise we will redirect any request
|
||||
# to port 80 to our Web-server 192.168.0.2.
|
||||
# We will allow any outgoing connections from network 192.168.1.0/24 to
|
||||
# SMTP, POP3, FTP, DNS and unprivileged ports.
|
||||
# Note, that redirect may also be used with proxy or portmapper. It will
|
||||
# allow you to redirect requests to different ports or different server
|
||||
# for different clients.
|
||||
|
||||
# sharing access to internet
|
||||
|
||||
#external 10.1.1.1
|
||||
external 0.0.0.0
|
||||
# external is address 3proxy uses for outgoing connections. 0.0.0.0 means any
|
||||
# interface. Using 0.0.0.0 is not good because it allows to connect to 127.0.0.1
|
||||
|
||||
#internal 192.168.1.1
|
||||
internal 127.0.0.1
|
||||
# internal is address of interface proxy will listen for incoming requests
|
||||
# 127.0.0.1 means only localhost will be able to use this proxy. This is
|
||||
# address you should specify for clients as proxy IP.
|
||||
# You MAY use 0.0.0.0 but you shouldn't, because it's a chance for you to
|
||||
# have open proxy in your network in this case.
|
||||
|
||||
auth none
|
||||
# no authentication is requires
|
||||
|
||||
dnspr
|
||||
|
||||
# dnsproxy listens on UDP/53 to answer client's DNS requests. It requires
|
||||
# nserver/nscache configuration.
|
||||
|
||||
|
||||
#external $./external.ip
|
||||
#internal $./internal.ip
|
||||
# this is just an alternative form fo giving external and internal address
|
||||
# allows you to read this addresses from files
|
||||
|
||||
auth strong
|
||||
# We want to protect internal interface
|
||||
deny * * 127.0.0.1,192.168.1.1
|
||||
# and llow HTTP and HTTPS traffic.
|
||||
allow * * * 80-88,8080-8088 HTTP
|
||||
allow * * * 443,8443 HTTPS
|
||||
proxy -n
|
||||
|
||||
auth none
|
||||
# pop3p will be used without any authentication. It's bad choice
|
||||
# because it's possible to use pop3p to access any port
|
||||
pop3p
|
||||
|
||||
tcppm 25 mail.my.provider 25
|
||||
#udppm -s 53 ns.my.provider 53
|
||||
# we can portmap port TCP/25 to provider's SMTP server and UDP/53
|
||||
# to provider's DNS.
|
||||
# Now we can use our proxy as SMTP and DNS server.
|
||||
# -s switch for UDP means "single packet" service - instead of setting
|
||||
# association for period of time association will only be set for 1 packet.
|
||||
# It's very userfull for services like DNS but not for some massive services
|
||||
# like multimedia streams or online games.
|
||||
|
||||
auth strong
|
||||
flush
|
||||
allow 3APA3A,test
|
||||
maxconn 20
|
||||
socks
|
||||
# for socks we will use password authentication and different access control -
|
||||
# we flush previously configured ACL list and create new one to allow users
|
||||
# test and 3APA3A to connect from any location
|
||||
|
||||
|
||||
auth strong
|
||||
flush
|
||||
internal 127.0.0.1
|
||||
allow 3APA3A 127.0.0.1
|
||||
maxconn 3
|
||||
admin
|
||||
#only allow acces to admin interface for user 3APA3A from 127.0.0.1 address
|
||||
#via 127.0.0.1 address.
|
||||
|
||||
# map external 80 and 443 ports to internal Web server
|
||||
# examples below show how to use 3proxy to publish Web server in internal
|
||||
# network to Internet. We must switch internal and external addresses and
|
||||
# flush any ACLs
|
||||
|
||||
#auth none
|
||||
#flush
|
||||
#external $./internal.ip
|
||||
#internal $./external.ip
|
||||
#maxconn 300
|
||||
#tcppm 80 websrv 80
|
||||
#tcppm 443 websrv 443
|
||||
|
||||
|
||||
#chroot /usr/local/jail
|
||||
#setgid 65535
|
||||
#setuid 65535
|
||||
# now we needn't any root rights. We can chroot and setgid/setuid.
|
||||
|
||||
|
||||
###$Id: 3proxy.cfg.sample,v 1.5 2004/07/16 12:37:20 vlad Exp $#######
|
85
contrib/rpm/3proxy.init
Normal file
85
contrib/rpm/3proxy.init
Normal file
@ -0,0 +1,85 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Init file for Software Watchdog daemon.
|
||||
#
|
||||
# Written by Dag Wieers <dag@wieers.com>.
|
||||
# Rewrote for ALT Linux by Pavlov Konstantin <thresh@altlinux.ru>
|
||||
# Modifyed for Fedora by Pavel Alexeev aka Pahan-Hubbitus <Pahan@hubbitus.info>
|
||||
#
|
||||
# chkconfig: - 02 98
|
||||
# description: 3proxy Proxy Server
|
||||
#
|
||||
# processname: 3proxy
|
||||
# config: /etc/3proxy.cfg
|
||||
|
||||
WITHOUT_RC_COMPAT=1
|
||||
|
||||
. /etc/init.d/functions
|
||||
|
||||
### Default variables
|
||||
prog=3proxy
|
||||
CONFIG=/etc/3proxy.cfg
|
||||
PROXY=/usr/bin/3proxy
|
||||
RETVAL=0
|
||||
LOCKFILE=/var/lock/subsys/3proxy
|
||||
#LOGFILE=/var/log/3proxy.log
|
||||
|
||||
start() {
|
||||
echo -n $"Starting $prog: "
|
||||
# daemon --pidfile "${PIDFILE}" sh -c "exec \"$PROXY\" \"$CONFIG\" 2>&1 > \"$LOGFILE\" &"
|
||||
daemon "$PROXY" "$CONFIG"
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ 0 -eq $RETVAL ] && touch ${LOCKFILE}
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
stop() {
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc -d 3 "$prog"
|
||||
RETVAL=$?
|
||||
echo
|
||||
[ 0 -eq $RETVAL ] && rm -f ${LOCKFILE}
|
||||
return $RETVAL
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
reload(){
|
||||
echo -n $"Reloading $prog: "
|
||||
killproc $prog -USR1
|
||||
RETVAL=$?
|
||||
echo
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
reload)
|
||||
reload
|
||||
;;
|
||||
condrestart)
|
||||
[ -e $LOCKFILE ] && restart
|
||||
RETVAL=$?
|
||||
;;
|
||||
status)
|
||||
status "$PROXY"
|
||||
RETVAL=$?
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|restart|condrestart|status|reload}"
|
||||
RETVAL=1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $RETVAL
|
10
contrib/rpm/3proxy.service
Normal file
10
contrib/rpm/3proxy.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=3proxy Proxy Server
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/3proxy /etc/3proxy.cfg
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
255
contrib/rpm/3proxy.spec
Normal file
255
contrib/rpm/3proxy.spec
Normal file
@ -0,0 +1,255 @@
|
||||
%global _hardened_build 1
|
||||
%global contrib_dir %{_builddir}/%{name}-%{version}/contrib/rpm/
|
||||
%define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} == 1315)
|
||||
|
||||
Name: 3proxy
|
||||
Version: 0.8.7
|
||||
Release: 1%{?dist}
|
||||
|
||||
Summary: Tiny but very powerful proxy
|
||||
Summary(ru): Маленький, но крайне мощный прокси-сервер
|
||||
|
||||
License: BSD or ASL 2.0 or GPLv2+ or LGPLv2+
|
||||
Group: System Environment/Daemons
|
||||
Url: https://github.com/z3APA3A/3proxy
|
||||
|
||||
Source0: https://github.com/z3APA3A/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
%if %{use_systemd}
|
||||
BuildRequires: systemd
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%else
|
||||
Requires(post): systemd-sysv, systemd-units
|
||||
Requires: initscripts
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{name} -- light proxy server.
|
||||
Universal proxy server with HTTP, HTTPS, SOCKS v4, SOCKS v4a, SOCKS v5, FTP,
|
||||
POP3, 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.
|
||||
|
||||
%description -l ru
|
||||
%{name} -- маленький прокси сервер.
|
||||
Это универсальное решение поддерживающее HTTP, HTTPS, SOCKS v4, SOCKS v4a,
|
||||
SOCKS v5, FTP, POP3, UDP и TCP проброс портов (portmapping), списки доступа
|
||||
управление скоростью доступа, ограничением трафика и статистикоу, базирующейся
|
||||
на имени пользователя, слиентском IP адресе, IP цели, времени дня, дня недели
|
||||
и т.д.
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{version}
|
||||
patch -p0 -s -b < %{contrib_dir}/3proxy-0.6.1-config-path.patch
|
||||
# To use "fedora" CFLAGS (exported)
|
||||
sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile.Linux
|
||||
|
||||
%build
|
||||
%{__make} -f Makefile.Linux
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_mandir}/man{3,8}
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
||||
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -m755 -D src/dighosts %{buildroot}%{_bindir}/dighosts
|
||||
install -m755 -D src/ftppr %{buildroot}%{_bindir}/ftppr
|
||||
install -m755 -D src/mycrypt %{buildroot}%{_bindir}/mycrypt
|
||||
install -m755 -D src/pop3p %{buildroot}%{_bindir}/pop3p
|
||||
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -m755 -D src/proxy %{buildroot}%{_bindir}/htproxy
|
||||
install -m755 -D src/socks %{buildroot}%{_bindir}/socks
|
||||
install -m755 -D src/tcppm %{buildroot}%{_bindir}/tcppm
|
||||
install -m755 -D src/udppm %{buildroot}%{_bindir}/udppm
|
||||
install -pD -m644 %{contrib_dir}/%{name}.cfg %{buildroot}/%{_sysconfdir}/%{name}.cfg
|
||||
|
||||
%if %{use_systemd}
|
||||
install -pD -m755 %{contrib_dir}/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service
|
||||
%else
|
||||
install -pD -m755 %{contrib_dir}/%{name}.init %{buildroot}/%{_initrddir}/%{name}
|
||||
%endif
|
||||
|
||||
for man in man/*.{3,8} ; do
|
||||
install "$man" "%{buildroot}%{_mandir}/man${man:(-1)}/"
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%if %{use_systemd}
|
||||
%systemd_post %{name}.service
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %{use_systemd}
|
||||
%systemd_preun %{name}.service
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if %{use_systemd}
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.cfg
|
||||
%{_localstatedir}/log/%{name}
|
||||
%doc README authors copying Release.notes
|
||||
%{_mandir}/man8/*.8.gz
|
||||
%{_mandir}/man3/*.3.gz
|
||||
|
||||
%if %{use_systemd}
|
||||
%{_unitdir}/%{name}.service
|
||||
%else
|
||||
%{_initrddir}/%{name}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Oct 23 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 0.8.7-2
|
||||
- upstream update - 0.8.7
|
||||
- removed unneeded NetworkManager dispatcher
|
||||
- fixes: added support Centos 6 (with init), Centos 7 (with systemd)
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sat Jan 23 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.8.2-1
|
||||
- Major upstream update - 0.8.2. Bz#1300097.
|
||||
- Tarballs now on github.
|
||||
|
||||
* Fri Jan 01 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.1.3-1
|
||||
- New upstream release 0.7.1.3 - bz#1263482.
|
||||
|
||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu Mar 05 2015 Adam Jackson <ajax@redhat.com> 0.7.1.2-2
|
||||
- Drop sysvinit subpackage on F23+
|
||||
|
||||
* Mon Feb 23 2015 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.2-1
|
||||
- New upstream version 0.7.7.2
|
||||
|
||||
* Mon Aug 18 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.1-1
|
||||
- Update to 0.7.7.1 - bz#1114274.
|
||||
|
||||
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Apr 8 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7-1
|
||||
- Update to 0.7 version bz#1085256.
|
||||
- Add BR openssl-devel.
|
||||
|
||||
* Tue Jan 7 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-18
|
||||
- Step to systemd macroses (#850383)
|
||||
|
||||
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Apr 26 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-16
|
||||
- Harden build - bz#955141
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Thu Jun 23 2011 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-12
|
||||
- Make service systemd compliant (BZ#657412).
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Nov 4 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-10
|
||||
- Add man3/3proxy.cfg.3 man (BZ#648204).
|
||||
- Gone explicit man gzip - leave it for rpm.
|
||||
|
||||
* Sun May 30 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-9
|
||||
- Correct path to config file in man (BUG#596087) add Patch0: 3proxy-0.6.1-config-path.patch
|
||||
|
||||
* Mon Mar 15 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-8
|
||||
- Update to version 0.6.1
|
||||
- In NM event processing replace service restart to condrestart - BZ#572662
|
||||
|
||||
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-7
|
||||
- Again new init-script for Fix BZ#533144 :).
|
||||
|
||||
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-6
|
||||
- Forgot commit new init-script for Fix BZ#533144.
|
||||
|
||||
* Sun Nov 8 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-5
|
||||
- Fix BZ#533144:
|
||||
- Add reload section to service file, fix stop.
|
||||
- Add %%{_sysconfdir}/NetworkManager/dispatcher.d/40-%%{name} (Thanks to Pankaj Pandey)
|
||||
- Include man-files.
|
||||
- Add Requires: initscripts as owner directory %%{_sysconfdir}/NetworkManager/dispatcher.d/
|
||||
|
||||
* Thu Aug 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-3
|
||||
- Fedora Review started - thank you Peter Lemenkov.
|
||||
- Change rights (0755->0644) of config.
|
||||
- Disable service by default.
|
||||
- Add BR dos2unix.
|
||||
|
||||
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-2
|
||||
- /usr/bin/proxy renamed to htproxy to avoid name bump with libproxy-bin.
|
||||
- Add Source2: 3proxy.cfg from Alt Linux (slightly modified) - http://sisyphus.ru/ru/srpm/Sisyphus/3proxy/sources/1 (thanks to Afanasov Dmitry).
|
||||
- Add log-dir %%{_localstatedir}/log/%%{name}
|
||||
|
||||
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-1
|
||||
- Ressurect old spec. New version 0.6.
|
||||
- Rename spec to classic %%{name}.spec.
|
||||
- Remove Hu part from release and add %%{?dist}.
|
||||
- Change summary, description, URL. Add Russian localisation of sumamry and description.
|
||||
- Strip some old comments.
|
||||
- Add to %%doc Readme Changelog authors copying news.
|
||||
- Turn macros usage from %%name to %%{name} for consistence.
|
||||
- Change group from System/Servers to standard System Environment/Daemons.
|
||||
- Add %%defattr(-,root,root,-) in %%files section.
|
||||
- Add cleanup in %%install section.
|
||||
- Add %%clean section with cleanup buildroot.
|
||||
- License changed from just GPL to "BSD or ASL 2.0 or GPLv2+ or LGPLv2+" (according to Makefile.Linux)
|
||||
- Add %%config(noreplace) mark to all configs.
|
||||
- Add file %%{_initdir}/%%{name}
|
||||
- Old %%{_initdir} macros replaced by %%{_initrddir}
|
||||
- Hack makefile to use system CFLAGS.
|
||||
- Add %%post/%%postun sections.
|
||||
|
||||
* Fri Jan 25 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.5.3k
|
||||
- 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
|
||||
Combine with ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/t/th/three-proxy/3proxy-0.5.3g-1.src.rpm
|
||||
- Steep to version 0.5.3k
|
||||
- Comment out packager
|
||||
- Reformat header of spec with tabs
|
||||
- Add desc from second src.rpm of import
|
||||
- Correct source0
|
||||
- Add -c key fo %%setup macro
|
||||
- Add BuildRoot definition (this is not ALT)
|
||||
- Change
|
||||
Release: alt1
|
||||
to
|
||||
Release: 0.Hu.0
|
||||
|
||||
* Fri Apr 13 2007 Lunar Child <luch@altlinux.ru> 0.5.3h-alt1
|
||||
- new version
|
||||
|
||||
* Wed Mar 21 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt2
|
||||
- Added init script.
|
||||
- Added new trivial config file.
|
||||
|
||||
* Tue Mar 20 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt1
|
||||
- First build for ALT Linux Sisyphus
|
255
contrib/rpm/git/3proxy.spec
Normal file
255
contrib/rpm/git/3proxy.spec
Normal file
@ -0,0 +1,255 @@
|
||||
%global _hardened_build 1
|
||||
%global contrib_dir %{_builddir}/%{name}-%{version}/contrib/rpm/
|
||||
%define build_timestamp %(date +"%Y%m%d%H%M")
|
||||
%define use_systemd (0%{?fedora} && 0%{?fedora} >= 18) || (0%{?rhel} && 0%{?rhel} >= 7) || (0%{?suse_version} == 1315)
|
||||
|
||||
Name: 3proxy
|
||||
Version: 0.8.7
|
||||
Release: git%{build_timestamp}%{?dist}
|
||||
Summary: Tiny but very powerful proxy
|
||||
Summary(ru): Маленький, но крайне мощный прокси-сервер
|
||||
|
||||
License: BSD or ASL 2.0 or GPLv2+ or LGPLv2+
|
||||
Group: System Environment/Daemons
|
||||
Url: https://github.com/z3APA3A/3proxy
|
||||
|
||||
Source0: https://github.com/z3APA3A/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
%if %{use_systemd}
|
||||
BuildRequires: systemd
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
%else
|
||||
Requires(post): systemd-sysv, systemd-units
|
||||
Requires: initscripts
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{name} -- light proxy server.
|
||||
Universal proxy server with HTTP, HTTPS, SOCKS v4, SOCKS v4a, SOCKS v5, FTP,
|
||||
POP3, 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.
|
||||
|
||||
%description -l ru
|
||||
%{name} -- маленький прокси сервер.
|
||||
Это универсальное решение поддерживающее HTTP, HTTPS, SOCKS v4, SOCKS v4a,
|
||||
SOCKS v5, FTP, POP3, UDP и TCP проброс портов (portmapping), списки доступа
|
||||
управление скоростью доступа, ограничением трафика и статистикоу, базирующейся
|
||||
на имени пользователя, слиентском IP адресе, IP цели, времени дня, дня недели
|
||||
и т.д.
|
||||
|
||||
%prep
|
||||
%setup -n %{name}-%{version}
|
||||
patch -p0 -s -b < %{contrib_dir}/3proxy-0.6.1-config-path.patch
|
||||
# To use "fedora" CFLAGS (exported)
|
||||
sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile.Linux
|
||||
|
||||
%build
|
||||
%{__make} -f Makefile.Linux
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_mandir}/man{3,8}
|
||||
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
|
||||
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -m755 -D src/dighosts %{buildroot}%{_bindir}/dighosts
|
||||
install -m755 -D src/ftppr %{buildroot}%{_bindir}/ftppr
|
||||
install -m755 -D src/mycrypt %{buildroot}%{_bindir}/mycrypt
|
||||
install -m755 -D src/pop3p %{buildroot}%{_bindir}/pop3p
|
||||
install -m755 -D src/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -m755 -D src/proxy %{buildroot}%{_bindir}/htproxy
|
||||
install -m755 -D src/socks %{buildroot}%{_bindir}/socks
|
||||
install -m755 -D src/tcppm %{buildroot}%{_bindir}/tcppm
|
||||
install -m755 -D src/udppm %{buildroot}%{_bindir}/udppm
|
||||
install -pD -m644 %{contrib_dir}/%{name}.cfg %{buildroot}/%{_sysconfdir}/%{name}.cfg
|
||||
|
||||
%if %{use_systemd}
|
||||
install -pD -m755 %{contrib_dir}/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service
|
||||
%else
|
||||
install -pD -m755 %{contrib_dir}/%{name}.init %{buildroot}/%{_initrddir}/%{name}
|
||||
%endif
|
||||
|
||||
for man in man/*.{3,8} ; do
|
||||
install "$man" "%{buildroot}%{_mandir}/man${man:(-1)}/"
|
||||
done
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%if %{use_systemd}
|
||||
%systemd_post %{name}.service
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%if %{use_systemd}
|
||||
%systemd_preun %{name}.service
|
||||
%endif
|
||||
|
||||
%postun
|
||||
%if %{use_systemd}
|
||||
%systemd_postun_with_restart %{name}.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.cfg
|
||||
%{_localstatedir}/log/%{name}
|
||||
%doc README authors copying Release.notes
|
||||
%{_mandir}/man8/*.8.gz
|
||||
%{_mandir}/man3/*.3.gz
|
||||
|
||||
%if %{use_systemd}
|
||||
%{_unitdir}/%{name}.service
|
||||
%else
|
||||
%{_initrddir}/%{name}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun Oct 23 2016 Anatolii Vorona <vorona.tolik@gmail.com> - 0.8.7-git
|
||||
- upstream update - 0.8.7
|
||||
- removed unneeded NetworkManager dispatcher
|
||||
- fixes: added support Centos 6 (with init), Centos 7 (with systemd)
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Sat Jan 23 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.8.2-1
|
||||
- Major upstream update - 0.8.2. Bz#1300097.
|
||||
- Tarballs now on github.
|
||||
|
||||
* Fri Jan 01 2016 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.1.3-1
|
||||
- New upstream release 0.7.1.3 - bz#1263482.
|
||||
|
||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Thu Mar 05 2015 Adam Jackson <ajax@redhat.com> 0.7.1.2-2
|
||||
- Drop sysvinit subpackage on F23+
|
||||
|
||||
* Mon Feb 23 2015 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.2-1
|
||||
- New upstream version 0.7.7.2
|
||||
|
||||
* Mon Aug 18 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7.7.1-1
|
||||
- Update to 0.7.7.1 - bz#1114274.
|
||||
|
||||
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Apr 8 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.7-1
|
||||
- Update to 0.7 version bz#1085256.
|
||||
- Add BR openssl-devel.
|
||||
|
||||
* Tue Jan 7 2014 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-18
|
||||
- Step to systemd macroses (#850383)
|
||||
|
||||
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Apr 26 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-16
|
||||
- Harden build - bz#955141
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Thu Jun 23 2011 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-12
|
||||
- Make service systemd compliant (BZ#657412).
|
||||
|
||||
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Nov 4 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-10
|
||||
- Add man3/3proxy.cfg.3 man (BZ#648204).
|
||||
- Gone explicit man gzip - leave it for rpm.
|
||||
|
||||
* Sun May 30 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-9
|
||||
- Correct path to config file in man (BUG#596087) add Patch0: 3proxy-0.6.1-config-path.patch
|
||||
|
||||
* Mon Mar 15 2010 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.1-8
|
||||
- Update to version 0.6.1
|
||||
- In NM event processing replace service restart to condrestart - BZ#572662
|
||||
|
||||
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-7
|
||||
- Again new init-script for Fix BZ#533144 :).
|
||||
|
||||
* Wed Nov 25 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-6
|
||||
- Forgot commit new init-script for Fix BZ#533144.
|
||||
|
||||
* Sun Nov 8 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-5
|
||||
- Fix BZ#533144:
|
||||
- Add reload section to service file, fix stop.
|
||||
- Add %%{_sysconfdir}/NetworkManager/dispatcher.d/40-%%{name} (Thanks to Pankaj Pandey)
|
||||
- Include man-files.
|
||||
- Add Requires: initscripts as owner directory %%{_sysconfdir}/NetworkManager/dispatcher.d/
|
||||
|
||||
* Thu Aug 20 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-3
|
||||
- Fedora Review started - thank you Peter Lemenkov.
|
||||
- Change rights (0755->0644) of config.
|
||||
- Disable service by default.
|
||||
- Add BR dos2unix.
|
||||
|
||||
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-2
|
||||
- /usr/bin/proxy renamed to htproxy to avoid name bump with libproxy-bin.
|
||||
- Add Source2: 3proxy.cfg from Alt Linux (slightly modified) - http://sisyphus.ru/ru/srpm/Sisyphus/3proxy/sources/1 (thanks to Afanasov Dmitry).
|
||||
- Add log-dir %%{_localstatedir}/log/%%{name}
|
||||
|
||||
* Mon Aug 17 2009 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6-1
|
||||
- Ressurect old spec. New version 0.6.
|
||||
- Rename spec to classic %%{name}.spec.
|
||||
- Remove Hu part from release and add %%{?dist}.
|
||||
- Change summary, description, URL. Add Russian localisation of sumamry and description.
|
||||
- Strip some old comments.
|
||||
- Add to %%doc Readme Changelog authors copying news.
|
||||
- Turn macros usage from %%name to %%{name} for consistence.
|
||||
- Change group from System/Servers to standard System Environment/Daemons.
|
||||
- Add %%defattr(-,root,root,-) in %%files section.
|
||||
- Add cleanup in %%install section.
|
||||
- Add %%clean section with cleanup buildroot.
|
||||
- License changed from just GPL to "BSD or ASL 2.0 or GPLv2+ or LGPLv2+" (according to Makefile.Linux)
|
||||
- Add %%config(noreplace) mark to all configs.
|
||||
- Add file %%{_initdir}/%%{name}
|
||||
- Old %%{_initdir} macros replaced by %%{_initrddir}
|
||||
- Hack makefile to use system CFLAGS.
|
||||
- Add %%post/%%postun sections.
|
||||
|
||||
* Fri Jan 25 2008 Pavel Alexeev <Pahan [ at ] Hubbitus [ DOT ] info> - 0.5.3k
|
||||
- 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
|
||||
Combine with ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/t/th/three-proxy/3proxy-0.5.3g-1.src.rpm
|
||||
- Steep to version 0.5.3k
|
||||
- Comment out packager
|
||||
- Reformat header of spec with tabs
|
||||
- Add desc from second src.rpm of import
|
||||
- Correct source0
|
||||
- Add -c key fo %%setup macro
|
||||
- Add BuildRoot definition (this is not ALT)
|
||||
- Change
|
||||
Release: alt1
|
||||
to
|
||||
Release: 0.Hu.0
|
||||
|
||||
* Fri Apr 13 2007 Lunar Child <luch@altlinux.ru> 0.5.3h-alt1
|
||||
- new version
|
||||
|
||||
* Wed Mar 21 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt2
|
||||
- Added init script.
|
||||
- Added new trivial config file.
|
||||
|
||||
* Tue Mar 20 2007 Lunar Child <luch@altlinux.ru> 0.5.3g-alt1
|
||||
- First build for ALT Linux Sisyphus
|
Loading…
Reference in New Issue
Block a user