1 Summary: Open proxy monitor and blocker, designed for use with ircds
2 Summary(pl): Monitorowanie i blokowanie otwartych proxy do u¿ywania z ircd
8 Group: Applications/Communications
9 Source0: http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
10 # Source0-md5: ab1b7494c4242eef957b5fca61c92b18
13 Patch0: %{name}-DESTDIR.patch
14 URL: http://www.blitzed.org/bopm/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libtool
18 BuildRequires: rpmbuild(macros) >= 1.202
19 PreReq: rc-scripts >= 0.4.0.17
20 Requires(pre): /bin/id
21 Requires(pre): /usr/bin/getgid
22 Requires(pre): /usr/sbin/groupadd
23 Requires(pre): /usr/sbin/useradd
24 Requires(postun): /usr/sbin/userdel
25 Requires(postun): /usr/sbin/groupdel
26 Requires(post,preun): /sbin/chkconfig
27 Provides: group(%{name})
28 Provides: user(%{name})
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The Blitzed Open Proxy Monitor is designed to connect to an IRC server
33 and become an IRC operator. It then watches connect notices in order
34 to scan all connecting clients for open (insecure) proxies. Such
35 insecure proxies are commonly used for spamming, floods and other
38 BOPM can detect WinGates, HTTP proxies, SOCKS 4/5 proxies and Cisco
39 routers with default passwords. BOPM also has support for checking
40 against a DNS-Based Blacklist (similar to MAPS RBL) and can be
41 configured to report new proxies back to the Blitzed Open Proxy
45 Blitzed Open Proxy Monitor jest zaprojektowany tak, ¿e ³±czy siê z
46 serwerem IRC i staje operatorem. Nastêpnie ogl±da informacje o
47 po³±czeniach w celu skanowania wszystkich klientów pod k±tem otwartych
48 (niebezpiecznych) proxy. Takie niebezpieczne proxy zwykle s± u¿ywane
49 do spamowania, floodowania i innych nadu¿yæ.
51 BOPM jest w stanie wykryæ WinGates, proxy HTTP, proxy SOCKS 4/5 oraz
52 routery Cisco z domy¶lnymi has³ami. BOPM obs³uguje tak¿e sprawdzanie
53 czarnych list opartych na DNS (takich jak MAPS RBL) i mo¿e byæ
54 skonfigurowany do zg³aszania nowych proxy z powrotem do projektu
55 Blitzed Open Proxy Monitoring.
61 find -name CVS | xargs -r rm -rf
62 rm -f contrib/bopm.spec
71 --localstatedir=/var/log/%{name} \
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/{run,log}/%{name}}
81 DESTDIR=$RPM_BUILD_ROOT
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
84 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
85 > $RPM_BUILD_ROOT/var/log/%{name}/bopm.log
86 > $RPM_BUILD_ROOT/var/log/%{name}/scan.log
89 rm -rf $RPM_BUILD_ROOT
92 %groupadd -g 151 %{name}
93 %useradd -u 151 -c "BOPM Daemon" -g %{name} %{name}
96 /sbin/chkconfig --add %{name}
97 if [ -f /var/lock/subsys/%{name} ]; then
98 /etc/rc.d/init.d/%{name} restart 1>&2
100 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start BOPM daemon."
104 if [ "$1" = "0" ]; then
105 if [ -f /var/lock/subsys/%{name} ]; then
106 /etc/rc.d/init.d/%{name} stop 1>&2
108 /sbin/chkconfig --del %{name}
112 if [ "$1" = "0" ]; then
118 %defattr(644,root,root,755)
119 %doc ChangeLog INSTALL README bopm.conf.sample
120 %doc contrib/ network-bopm/
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
122 %attr(754,root,root) /etc/rc.d/init.d/%{name}
123 %attr(755,root,root) %{_sbindir}/%{name}
125 %attr(770,root,bopm) %dir /var/run/%{name}
126 %attr(770,root,bopm) %dir /var/log/%{name}
127 %attr(640,bopm,bopm) %ghost /var/log/%{name}/bopm.log
128 %attr(640,bopm,bopm) %ghost /var/log/%{name}/scan.log