1 | Summary: Tools for managing Linux kernel packet filtering capabilities. |
---|
2 | Name: ipchains |
---|
3 | Version: 1.3.10 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: GPL |
---|
6 | Obsoletes: ipfwadm ipchains-scripts |
---|
7 | Group: System Environment/Base |
---|
8 | Source0: http://netfilter.filewatcher.org/ipchains/ipchains-%{version}.tar.gz |
---|
9 | Source1: http://netfilter.filewatcher.org/ipchains/ipchains-scripts-1.1.2.tar.gz |
---|
10 | Source2: http://netfilter.filewatcher.org/ipchains/HOWTO.sgml |
---|
11 | Source3: ipchains.init |
---|
12 | Patch0: ipchains-1.3.10-nonroot.patch |
---|
13 | Patch1: ipchains-1.3.10-fixman.patch |
---|
14 | Patch2: ipchains-1.3.9-return.patch |
---|
15 | Patch3: ipchains-1.3.10-libipfwc.patch |
---|
16 | Buildroot: %{_tmppath}/%{name}-root |
---|
17 | Prereq: /sbin/chkconfig |
---|
18 | BuildPrereq: perl, sgml-tools |
---|
19 | Requires: sh-utils |
---|
20 | |
---|
21 | %description |
---|
22 | Linux IP Firewalling Chains is an update to (and hopefully an |
---|
23 | improvement upon) the Linux kernel packet filtering code. Ipchains |
---|
24 | allows you to set up firewalls and IP masquerading, etc. |
---|
25 | |
---|
26 | Install ipchains if you need to set up firewalling for your network. |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q -a 1 |
---|
30 | %patch0 -p1 -b .nonroot |
---|
31 | %patch1 -p1 -b .fixman |
---|
32 | %patch2 -p1 -b .return |
---|
33 | %patch3 -p0 -b .libipfwc |
---|
34 | install -m644 %{SOURCE2} . |
---|
35 | |
---|
36 | %build |
---|
37 | make clean |
---|
38 | make COPTS="$RPM_OPT_FLAGS" |
---|
39 | sgml2html HOWTO.sgml |
---|
40 | sgml2txt HOWTO.sgml |
---|
41 | %{__perl} -pi -e 's/.//g' HOWTO.txt |
---|
42 | |
---|
43 | %install |
---|
44 | rm -rf %{buildroot} |
---|
45 | mkdir -p %{buildroot}/{sbin,%{_mandir}/man{4,8}} |
---|
46 | |
---|
47 | make install SBIN=%{buildroot}/sbin MANDIR=%{buildroot}/%{_mandir} |
---|
48 | cp ipchains-scripts-1.1.2/{ipchains-restore,ipchains-save} %{buildroot}/sbin |
---|
49 | cp ipchains-scripts-1.1.2/ipfwadm-wrapper %{buildroot}/sbin/ipfwadm |
---|
50 | ln -sf ipfwadm %{buildroot}/sbin/ipfwadm-wrapper |
---|
51 | cp ipchains-scripts-1.1.2/{ipchains-restore.8,ipchains-save.8,ipfwadm-wrapper.8} %{buildroot}/%{_mandir}/man8 |
---|
52 | |
---|
53 | install -d -m 755 %{buildroot}/etc/rc.d/init.d |
---|
54 | install -m 755 %{SOURCE3} %{buildroot}/etc/rc.d/init.d/ipchains |
---|
55 | |
---|
56 | strip %{buildroot}/sbin/ipchains |
---|
57 | |
---|
58 | %clean |
---|
59 | rm -rf %{buildroot} |
---|
60 | |
---|
61 | %post |
---|
62 | #/sbin/chkconfig --add ipchains |
---|
63 | |
---|
64 | %preun |
---|
65 | if [ $1 = 0 ] ; then |
---|
66 | /sbin/chkconfig --del ipchains |
---|
67 | fi |
---|
68 | |
---|
69 | %files |
---|
70 | %defattr(-,root,root) |
---|
71 | %doc *.html *.sgml *.txt |
---|
72 | %doc COPYING README ipchains-quickref.ps |
---|
73 | %attr(755,root,root) %config /etc/rc.d/init.d/ipchains |
---|
74 | /sbin/* |
---|
75 | %{_mandir}/man*/* |
---|
76 | |
---|
77 | %changelog |
---|
78 | * Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.10-1vl5 |
---|
79 | - applied new versioning policy |
---|
80 | - added ipchains-1.3.10-libipfwc.patch |
---|
81 | |
---|
82 | * Sun Sep 22 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.10-0vl3 |
---|
83 | - do not chkconfig --add in the %%post section |
---|
84 | (kernel >= 2.4 and iptables would be default for Vine) |
---|
85 | |
---|
86 | * Sat Mar 02 2002 Toru Sagami <sagami@vinelinux.org> 1.3.10-0vl2 |
---|
87 | - use ipchains.init with i18n support (packed in 1.3.10-8) |
---|
88 | |
---|
89 | * Thu Aug 16 2001 <sagami@vinelinux.org> |
---|
90 | - 1.3.10-0vl1: sources/patches/spec are taken from 1.3.10-8 |
---|
91 | - rewrite ipchains.init w/o i18n support |
---|
92 | |
---|
93 | * Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com> |
---|
94 | - fix stupid typo in the preun script |
---|
95 | |
---|
96 | * Tue Feb 01 2000 Cristian Gafton <gafton@redhat.com> |
---|
97 | - add the initscript from joshua |
---|
98 | - remove uselss define version |
---|
99 | - add %post and %preun |
---|
100 | |
---|
101 | * Mon Sep 20 1999 Bill Nottingham <notting@redhat.com> |
---|
102 | - strip binary |
---|
103 | |
---|
104 | * Mon Aug 23 1999 Jeff Johnson <jbj@redhat.com> |
---|
105 | - nuke backspaces in HOWTO.txt (#4249). |
---|
106 | |
---|
107 | * Mon May 31 1999 Jeff Johnson <jbj@redhat.com> |
---|
108 | - update to 1.3.9. |
---|
109 | |
---|
110 | * Tue May 25 1999 Michael K. Johnson <johnsonm@redhat.com> |
---|
111 | - new ipchains-scripts release 1.1.2 |
---|
112 | - ipfwadm-wrapper should be called ipfwadm with symlink to old name |
---|
113 | (users can install old ipfwadm as ipfwadm.real if they wish) |
---|
114 | |
---|
115 | * Tue Mar 23 1999 Bill Nottingham <notting@redhat.com> |
---|
116 | - obsolete phantom ipchains-scripts package that's been floating around... |
---|
117 | |
---|
118 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
119 | - auto rebuild in the new build environment (release 2) |
---|
120 | |
---|
121 | * Tue Nov 17 1998 Preston Brown <pbrown@redhat.com> |
---|
122 | - initial cut. |
---|