]> git.pld-linux.org Git - packages/fakebo.git/blob - fakebo.spec
064c20a2a097c02c3b6194201454e410b0d73dc4
[packages/fakebo.git] / fakebo.spec
1 Summary:        Fakes trojan servers and logs incoming requests
2 Name:           fakebo
3 Version:        0.4.1
4 Release:        1
5 License:        GPL
6 Group:          X11/Utilities
7 Group(pl):      X11/Narzêdzia
8 Source0:        ftp://ftp.linux.hr/pub/fakebo/%{name}-%{version}.tar.gz
9 Source1:        fakebo.init
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 URL:            http://cvs.linux.hr/fakebo/
12 Requires:       /sbin/chkconfig
13
14 %description
15 FakeBO fakes trojan server responses (Back Orifice, NetBus, etc.) and
16 logs every attempt to a logfile or stdout. It is able to send fake
17 pings and replies back to the client trying to access your system.
18
19 %prep
20 %setup -q
21 %build
22 %configure
23 %{__make}
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
28
29 %{__make} install DESTDIR=$RPM_BUILD_ROOT
30
31 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fakebo
32
33 gzip -9nf INSTALL HACKING AUTHORS TODO NEWS ChangeLog README \
34         custom.replies
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %post
40 /sbin/chkconfig --add fakebo
41 if [ -f /var/lock/subsys/fakebo ]; then
42         /etc/rc.d/init.d/fakebo restart 1>&2
43 else
44         echo "Run \"/etc/rc.d/init.d/fakebo start\" to start fakebo daemon."
45 fi
46
47
48 %postun
49 if [ "$1" = "0" ]; then
50         if [ -f /var/lock/subsys/fakebo ]; then
51                 /etc/rc.d/init.d/fakebo stop 1>&2
52         fi
53         /sbin/chkconfig --del fakebo
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/fakebo
59 %attr(754,root,root) /etc/rc.d/init.d/fakebo
60 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fakebo.conf
61 %{_mandir}/man1/fakebo.1*
62 %doc {INSTALL,HACKING,AUTHORS,TODO,NEWS,ChangeLog,README,custom.replies}.gz
This page took 0.075201 seconds and 3 git commands to generate.