1 Summary: Open proxy monitor and blocker, designed for use with ircds
7 Group: Applications/Communications
8 Source0: http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
9 # Source0-md5: ab1b7494c4242eef957b5fca61c92b18
12 Patch0: %{name}-DESTDIR.patch
13 URL: http://www.blitzed.org/bopm/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: findutils
17 BuildRequires: libtool
18 BuildRequires: rpmbuild(macros) >= 1.202
19 Requires: rc-scripts >= 0.4.0.17
20 Requires(post): /sbin/chkconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Blitzed Open Proxy Monitor is designed to connect to an IRC server
25 and become an IRC operator. It then watches connect notices in order
26 to scan all connecting clients for open (insecure) proxies. Such
27 insecure proxies are commonly used for spamming, floods and other
30 BOPM can detect WinGates, HTTP proxies, SOCKS 4/5 proxies and Cisco
31 routers with default passwords. BOPM also has support for checking
32 against a DNS-Based Blacklist (similar to MAPS RBL) and can be
33 configured to report new proxies back to the Blitzed Open Proxy
40 find -name CVS | xargs -r rm -rf
41 rm -f contrib/bopm.spec
50 --localstatedir=/var/log/%{name} \
56 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/{run,log}/%{name}}
60 DESTDIR=$RPM_BUILD_ROOT
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
63 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
64 > $RPM_BUILD_ROOT/var/log/%{name}/bopm.log
65 > $RPM_BUILD_ROOT/var/log/%{name}/scan.log
68 rm -rf $RPM_BUILD_ROOT
71 %groupadd -g 151 %{name}
72 %useradd -u 151 -c "BOPM Daemon" -g %{name} %{name}
75 /sbin/chkconfig --add %{name}
76 if [ -f /var/lock/subsys/%{name} ]; then
77 /etc/rc.d/init.d/%{name} restart 1>&2
79 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start BOPM daemon."
83 if [ "$1" = "0" ]; then
84 if [ -f /var/lock/subsys/%{name} ]; then
85 /etc/rc.d/init.d/%{name} stop 1>&2
87 /sbin/chkconfig --del %{name}
91 %defattr(644,root,root,755)
92 %doc ChangeLog INSTALL README bopm.conf.sample
93 %doc contrib/ network-bopm/
94 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
95 %attr(754,root,root) /etc/rc.d/init.d/%{name}
96 %attr(755,root,root) %{_sbindir}/%{name}
98 %attr(770,root,bopm) %dir /var/run/%{name}
99 %attr(770,root,bopm) %dir /var/log/%{name}
100 %attr(640,bopm,bopm) %ghost /var/log/%{name}/bopm.log
101 %attr(640,bopm,bopm) %ghost /var/log/%{name}/scan.log