annotate syslog2iptables.spec.in @ 18:b34e716781ed stable-1-0

prevent auto-requires in rpm building
author carl
date Tue, 20 Dec 2005 17:36:18 -0800
parents 91b26521effc
children 601bc0e075e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
1 %define localstatedir /var/lib
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
2
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
3 Summary: Syslog to iptables dynamic firewall
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
4 Name: @PACKAGE@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
5 Version: @VERSION@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
6 Release: %{?custom_release}%{!?custom_release:1}
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
7 Copyright: GPL
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
8 Group: System Environment/Daemons
11
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
11
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
11 URL: http://www.five-ten-sg.com/@PACKAGE@/
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
12 Vendor: 510 Software Group
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
13 Packager: 510 Software Group
18
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
14 AutoReqProv: no
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
15
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
16 Requires(post,preun): /sbin/chkconfig
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
17 Requires(post,preun): /sbin/service
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
18 Requires: iptables
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
19 Requires: coreutils
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
20 BuildRequires: gcc gcc-c++
18
b34e716781ed prevent auto-requires in rpm building
carl
parents: 15
diff changeset
21 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
22
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
23
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
24 %description
11
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
25
a9b52f657f08 finish coding 1.0 version
carl
parents: 10
diff changeset
26 @PACKAGE@ is a simple adaptive firewall. It maintains the INPUT chain of the iptables firewall set based on syslog entries.
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
27
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
28 This package cannot co-exist with any other daemon that tries to maintain the INPUT chain, since it periodically flushes and recreates the INPUT chain.
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
29
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
30
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
31 %prep
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
32
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
33
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
34 %setup
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
35
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
36
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
37 %build
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
38 ./configure --prefix=%{_prefix} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
39 --bindir=%{_bindir} --mandir=%{_mandir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
40 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
41 --datadir=%{_datadir} --includedir=%{_includedir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
42 --sysconfdir=%{_sysconfdir}
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
43 make
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
44
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
45
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
46 %install
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
47 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
48 echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
49 exit 1
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
50 fi
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
51 rm -rf $RPM_BUILD_ROOT
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
52 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
53 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
54 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
55 datadir=$RPM_BUILD_ROOT%{_datadir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
56 includedir=$RPM_BUILD_ROOT%{_includedir} \
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
57 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
58 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
12
c2a2e35a85ac final documentation, rpm builds properly
carl
parents: 11
diff changeset
59 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
60 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/syslog2iptables $RPM_BUILD_ROOT/etc/rc.d/init.d
12
c2a2e35a85ac final documentation, rpm builds properly
carl
parents: 11
diff changeset
61 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
62
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
63
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
64 %clean
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
65 rm -rf $RPM_BUILD_ROOT
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
66
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
67
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
68 %pre
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
69
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
70
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
71 %post
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
72 /sbin/chkconfig --add @PACKAGE@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
73
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
74
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
75 %preun
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
76 /sbin/service @PACKAGE@ stop || :
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
77 /sbin/chkconfig --del @PACKAGE@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
78
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
79
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
80 %postun
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
81
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
82
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
83 %files
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
84 %defattr(-,root,root)
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
85 %{_sbindir}/*
12
c2a2e35a85ac final documentation, rpm builds properly
carl
parents: 11
diff changeset
86 %doc %{_mandir}/*
c2a2e35a85ac final documentation, rpm builds properly
carl
parents: 11
diff changeset
87 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
c2a2e35a85ac final documentation, rpm builds properly
carl
parents: 11
diff changeset
88 %{_datadir}/doc/@PACKAGE@-@VERSION@
10
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
89 %config(noreplace) %{_sysconfdir}/@PACKAGE@.conf
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
90 /etc/rc.d/init.d/@PACKAGE@
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
91
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
92 %changelog
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
93 * Thu Dec 08 2005 Carl Byington 1.0
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
94 - initial revision based on dnsbl spec file
5dfe0138b4f9 initial coding
carl
parents:
diff changeset
95 - and http://www.fedora.us/docs/rpm-packaging-guidelines.html