Permalink
Browse files

Tweaks to the fwknop.spec file

git-svn-id: file:///home/mbr/svn/fwknop/trunk@291 510a4753-2344-4c79-9c09-4d669213fbeb
  • Loading branch information...
1 parent bbe8c9d commit ce6fe8c705e393ae59fac3199fb6ff94f14a7416 Damien Stuart committed Oct 21, 2010
Showing with 10 additions and 3 deletions.
  1. +10 −3 fwknop.spec
View
@@ -86,11 +86,10 @@ access after a configurable timeout.
make %{?_smp_mflags}
-
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
-
+install -D ./extras/fwknop.init.redhat ${RPM_BUILD_ROOT}/etc/rc.d/init.d/fwknopd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -99,12 +98,19 @@ rm -rf $RPM_BUILD_ROOT
/sbin/ldconfig
/sbin/install-info %{_infodir}/libfko.info* %{_infodir}/dir
+%post -n fwknop-server
+/sbin/chkconfig --add fwknopd
+/sbin/chkconfig fwknopd off
+
+%preun -n fwknop-server
+/sbin/chkconfig --del fwknopd
+
%preun -n libfko-devel
if [ "$1" = 0 ]; then
/sbin/install-info --delete %{_infodir}/libfko.info* %{_infodir}/dir
fi
-%postun
+%postun -n libfko
/sbin/ldconfig
%files
@@ -125,6 +131,7 @@ fi
%files server
%defattr(-,root,root,-)
%attr(0755,root,root) %{_sbindir}/fwknopd
+%attr(0755,root,root) /etc/rc.d/init.d/fwknopd
%attr(0644,root,root) %{_mandir}/man8/fwknopd.8*
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/fwknopd.conf
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/access.conf

0 comments on commit ce6fe8c

Please sign in to comment.