ipchains-vl.spec 3.7 KB

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