comparison syslog2iptables.spec.in @ 31:601bc0e075e1

gpl3
author carl
date Sun, 09 Sep 2007 10:59:15 -0700
parents b34e716781ed
children ee9553116dbf
comparison
equal deleted inserted replaced
30:718e94b6b049 31:601bc0e075e1
2 2
3 Summary: Syslog to iptables dynamic firewall 3 Summary: Syslog to iptables dynamic firewall
4 Name: @PACKAGE@ 4 Name: @PACKAGE@
5 Version: @VERSION@ 5 Version: @VERSION@
6 Release: %{?custom_release}%{!?custom_release:1} 6 Release: %{?custom_release}%{!?custom_release:1}
7 Copyright: GPL 7 License: GPL
8 Group: System Environment/Daemons 8 Group: System Environment/Daemons
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz 9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot 10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
11 URL: http://www.five-ten-sg.com/@PACKAGE@/ 11 URL: http://www.five-ten-sg.com/@PACKAGE@/
12 Vendor: 510 Software Group 12 Vendor: 510 Software Group
60 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d 60 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d
61 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@ 61 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
62 62
63 63
64 %clean 64 %clean
65 rm -rf $RPM_BUILD_ROOT
66 65
67 66
68 %pre 67 %pre
69 68
70 69
71 %post 70 %post
72 /sbin/chkconfig --add @PACKAGE@ 71 /sbin/chkconfig --add @PACKAGE@
73 72
74 73
75 %preun 74 %preun
76 /sbin/service @PACKAGE@ stop || : 75 [ $1 = 0 ] && /sbin/service @PACKAGE@ stop || :
77 /sbin/chkconfig --del @PACKAGE@
78 76
79 77
80 %postun 78 %postun
79 [ $1 = 0 ] && /sbin/chkconfig --del @PACKAGE@
81 80
82 81
83 %files 82 %files
84 %defattr(-,root,root) 83 %defattr(-,root,root)
85 %{_sbindir}/* 84 %{_sbindir}/*
88 %{_datadir}/doc/@PACKAGE@-@VERSION@ 87 %{_datadir}/doc/@PACKAGE@-@VERSION@
89 %config(noreplace) %{_sysconfdir}/@PACKAGE@.conf 88 %config(noreplace) %{_sysconfdir}/@PACKAGE@.conf
90 /etc/rc.d/init.d/@PACKAGE@ 89 /etc/rc.d/init.d/@PACKAGE@
91 90
92 %changelog 91 %changelog
92 * Thu Aug 30 2007 Carl Byington 1.5
93 - Fix pre/post scripts
94
93 * Thu Dec 08 2005 Carl Byington 1.0 95 * Thu Dec 08 2005 Carl Byington 1.0
94 - initial revision based on dnsbl spec file 96 - initial revision based on dnsbl spec file
95 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html 97 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html