]> git.pld-linux.org Git - packages/fakebo.git/blobdiff - fakebo.spec
- rel 6
[packages/fakebo.git] / fakebo.spec
index 31e608fe20670baa836f1eeb2738acfb85a09865..c9bbe6701d83edf9bd7fd4d3b073d8fcaf0759e3 100644 (file)
@@ -2,15 +2,18 @@ Summary:      Fakes trojan servers and logs incoming requests
 Summary(pl):   Program udaj±cy trojany i loguj±cy nadchodz±ce po³±czenia
 Name:          fakebo
 Version:       0.4.1
-Release:       1
-License:       GPL
-Group:         X11/Utilities
-Group(pl):     X11/Narzêdzia
+Release:       6
+License:       GPL v2
+Group:         Networking/Daemons
 Source0:       ftp://ftp.linux.hr/pub/fakebo/%{name}-%{version}.tar.gz
-Source1:       fakebo.init
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# Source0-md5: 442b48ba44250104c30a6e7975230b7c
+Source1:       %{name}.init
 URL:           http://cvs.linux.hr/fakebo/
-Requires:      /sbin/chkconfig
+BuildRequires: autoconf
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 FakeBO fakes trojan server responses (Back Orifice, NetBus, etc.) and
@@ -25,7 +28,9 @@ klienta pr
 
 %prep
 %setup -q
+
 %build
+%{__autoconf}
 %configure
 %{__make}
 
@@ -33,37 +38,28 @@ 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
 
-gzip -9nf INSTALL HACKING AUTHORS TODO NEWS ChangeLog README \
-       custom.replies
-
 %clean
 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"
 
-%postun
+%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 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*
-%doc {INSTALL,HACKING,AUTHORS,TODO,NEWS,ChangeLog,README,custom.replies}.gz
This page took 0.066288 seconds and 4 git commands to generate.