]> git.pld-linux.org Git - packages/bopm.git/blob - bopm.spec
- sorted
[packages/bopm.git] / bopm.spec
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
3 Name:           bopm
4 Version:        3.1.2
5 Release:        0.11
6 Epoch:          0
7 License:        GPL
8 Group:          Applications/Communications
9 Source0:        http://static.blitzed.org/www.blitzed.org/bopm/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  ab1b7494c4242eef957b5fca61c92b18
11 Source1:        %{name}.init
12 Source2:        %{name}.conf
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)
30
31 %description
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
36 abusive activities.
37
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
42 Monitoring project.
43
44 %description -l pl
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æ.
50
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. 
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 find -name CVS | xargs -r rm -rf
62 rm -f contrib/bopm.spec
63
64 %build
65 %{__libtoolize}
66 %{__aclocal}
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --localstatedir=/var/log/%{name} \
72         --bindir=%{_sbindir}
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/{run,log}/%{name}}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
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
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %pre
92 %groupadd -g 151 %{name}
93 %useradd -u 151 -c "BOPM Daemon" -g %{name} %{name}
94
95 %post
96 /sbin/chkconfig --add %{name}
97 if [ -f /var/lock/subsys/%{name} ]; then
98         /etc/rc.d/init.d/%{name} restart 1>&2
99 else
100         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start BOPM daemon."
101 fi
102
103 %preun
104 if [ "$1" = "0" ]; then
105         if [ -f /var/lock/subsys/%{name} ]; then
106                 /etc/rc.d/init.d/%{name} stop 1>&2
107         fi
108         /sbin/chkconfig --del %{name}
109 fi
110
111 %postun
112 if [ "$1" = "0" ]; then
113         %userremove %{name}
114         %groupremove %{name}
115 fi
116
117 %files
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}
124
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
This page took 0.079748 seconds and 3 git commands to generate.