]> git.pld-linux.org Git - packages/fakebo.git/blobdiff - fakebo.spec
- tabs in preamble
[packages/fakebo.git] / fakebo.spec
index 05ca53856b11f7303ea02c42e9df75a862559341..7eea70f2ed4f805fee074c891eb7db2b44f61988 100644 (file)
@@ -1,17 +1,18 @@
 Summary:       Fakes trojan servers and logs incoming requests
-Summary(pl):   Program udaj±cy trojany i loguj±cy nadchodz±ce po³±czenia
+Summary(pl.UTF-8):     Program udający trojany i logujący nadchodzące połączenia
 Name:          fakebo
 Version:       0.4.1
-Release:       4
-License:       GPL
+Release:       6
+License:       GPL v2
 Group:         Networking/Daemons
 Source0:       ftp://ftp.linux.hr/pub/fakebo/%{name}-%{version}.tar.gz
 # Source0-md5: 442b48ba44250104c30a6e7975230b7c
 Source1:       %{name}.init
 URL:           http://cvs.linux.hr/fakebo/
 BuildRequires: autoconf
-Prereq:                rc-scripts
-Prereq:                /sbin/chkconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -19,11 +20,11 @@ FakeBO fakes trojan server responses (Back Orifice, NetBus, etc.) and
 logs every attempt to a logfile or stdout. It is able to send fake
 pings and replies back to the client trying to access your system.
 
-%description -l pl
-FakeBO udaje odpowiedzi trojanów (Back Orifice, NetBus, itp.) i loguje
-ka¿d± próbê do pliku z logiem lub na standardowe wyj¶cie. Jest on
-zdolny do wysy³ania fa³szywych pingów i odpowiedzi z powrotem do
-klienta próbuj±cego uzyskaæ dostêp do twojego systemu.
+%description -l pl.UTF-8
+FakeBO udaje odpowiedzi trojanów (Back Orifice, NetBus, itp.) i loguje
+każdą próbę do pliku z logiem lub na standardowe wyjście. Jest on
+zdolny do wysyłania fałszywych pingów i odpowiedzi z powrotem do
+klienta próbującego uzyskać dostęp do twojego systemu.
 
 %prep
 %setup -q
@@ -37,7 +38,8 @@ klienta pr
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} -j1 install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/fakebo
 
@@ -46,25 +48,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add fakebo
-if [ -f /var/lock/subsys/fakebo ]; then
-       /etc/rc.d/init.d/fakebo restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/fakebo start\" to start fakebo daemon."
-fi
-
+%service fakebo restart "fakebo daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/fakebo ]; then
-               /etc/rc.d/init.d/fakebo stop 1>&2
-       fi
+       %service fakebo stop
        /sbin/chkconfig --del fakebo
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc HACKING AUTHORS TODO NEWS ChangeLog README custom.replies
+%doc AUTHORS ChangeLog HACKING NEWS README TODO custom.replies
 %attr(755,root,root) %{_bindir}/fakebo
 %attr(754,root,root) /etc/rc.d/init.d/fakebo
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fakebo.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fakebo.conf
 %{_mandir}/man1/fakebo.1*
This page took 0.052581 seconds and 4 git commands to generate.