]> git.pld-linux.org Git - packages/bopm.git/blob - bopm.spec
- findutils already required by rpm-build
[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):  /usr/bin/getgid
21 Requires(pre):  /bin/id
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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 The Blitzed Open Proxy Monitor is designed to connect to an IRC server
31 and become an IRC operator. It then watches connect notices in order
32 to scan all connecting clients for open (insecure) proxies. Such
33 insecure proxies are commonly used for spamming, floods and other
34 abusive activities.
35
36 BOPM can detect WinGates, HTTP proxies, SOCKS 4/5 proxies and Cisco
37 routers with default passwords. BOPM also has support for checking
38 against a DNS-Based Blacklist (similar to MAPS RBL) and can be
39 configured to report new proxies back to the Blitzed Open Proxy
40 Monitoring project.
41
42 %description -l pl
43 Blitzed Open Proxy Monitor jest zaprojektowany tak, ¿e ³±czy siê z
44 serwerem IRC i staje operatorem. Nastêpnie ogl±da informacje o
45 po³±czeniach w celu skanowania wszystkich klientów pod k±tem otwartych
46 (niebezpiecznych) proxy. Takie niebezpieczne proxy zwykle s± u¿ywane
47 do spamowania, floodowania i innych nadu¿yæ.
48
49 BOPM jest w stanie wykryæ WinGates, proxy HTTP, proxy SOCKS 4/5 oraz
50 routery Cisco z domy¶lnymi has³ami. BOPM obs³uguje tak¿e sprawdzanie
51 czarnych list opartych na DNS (takich jak MAPS RBL) i mo¿e byæ
52 skonfigurowany do zg³aszania nowych proxy z powrotem do projektu
53 Blitzed Open Proxy Monitoring. 
54
55 %prep
56 %setup -q
57 %patch0 -p1
58
59 find -name CVS | xargs -r rm -rf
60 rm -f contrib/bopm.spec
61
62 %build
63 %{__libtoolize}
64 %{__aclocal}
65 %{__autoconf}
66 %{__autoheader}
67 %{__automake}
68 %configure \
69         --localstatedir=/var/log/%{name} \
70         --bindir=%{_sbindir}
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/{run,log}/%{name}}
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
82 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
83 > $RPM_BUILD_ROOT/var/log/%{name}/bopm.log
84 > $RPM_BUILD_ROOT/var/log/%{name}/scan.log
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %pre
90 %groupadd -g 151 %{name}
91 %useradd -u 151 -c "BOPM Daemon" -g %{name} %{name}
92
93 %post
94 /sbin/chkconfig --add %{name}
95 if [ -f /var/lock/subsys/%{name} ]; then
96         /etc/rc.d/init.d/%{name} restart 1>&2
97 else
98         echo "Run \"/etc/rc.d/init.d/%{name} start\" to start BOPM daemon."
99 fi
100
101 %preun
102 if [ "$1" = "0" ]; then
103         if [ -f /var/lock/subsys/%{name} ]; then
104                 /etc/rc.d/init.d/%{name} stop 1>&2
105         fi
106         /sbin/chkconfig --del %{name}
107 fi
108
109 %postun
110 if [ "$1" = "0" ]; then
111         %userremove %{name}
112         %groupremove %{name}
113 fi
114
115 %files
116 %defattr(644,root,root,755)
117 %doc ChangeLog INSTALL README bopm.conf.sample
118 %doc contrib/ network-bopm/
119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
120 %attr(754,root,root) /etc/rc.d/init.d/%{name}
121 %attr(755,root,root) %{_sbindir}/%{name}
122
123 %attr(770,root,bopm) %dir /var/run/%{name}
124 %attr(770,root,bopm) %dir /var/log/%{name}
125 %attr(640,bopm,bopm) %ghost /var/log/%{name}/bopm.log
126 %attr(640,bopm,bopm) %ghost /var/log/%{name}/scan.log
This page took 0.065358 seconds and 4 git commands to generate.