iptables-vl.spec 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. Summary: Packet filtering tool
  2. Summary(ja): パケットフィルタリングツール
  3. Name: iptables
  4. Version: 1.4.7
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Base
  8. URL: http://www.netfilter.org/
  9. Source0: http://netfilter.samba.org/%{name}-%{version}.tar.bz2
  10. Source1: iptables.init
  11. Source2: iptables-config
  12. Patch5: iptables-1.4.3.1-cloexec.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildPrereq: /usr/bin/perl
  15. BuildPreReq: kernel-headers >= 2.4.0
  16. Conflicts : kernel < 2.4.20
  17. Requires(post): chkconfig
  18. Requires(preun): chkconfig
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: daisuke
  22. %description
  23. The iptables utility controls the network packet filtering code in the
  24. Linux kernel. If you need to set up firewalls and/or IP masquerading,
  25. you should install this package.
  26. %description -l ja
  27. iptables は Linux kernel のネットワークパケットフィルタを制御するための
  28. ユーティリティです。これを用いることで、ファイアウオールや IP マスカレー
  29. ディング, NAT などを設定することができます。
  30. %package devel
  31. Summary: Libraries, includes, etc. to develop iptables
  32. Summary(ja): iptables 開発用ライブラリ、ヘッダファイル
  33. Group: Development/Libraries
  34. Requires: iptables = %{version}-%{release}
  35. %description devel
  36. Libraries, include files, etc you can use to develop iptables.
  37. %description devel -l ja
  38. iptables を用いた開発に使用するライブラリやヘッダファイルです。
  39. %package ipv6
  40. Summary: IPv6 Packet filtering tool
  41. Summary(ja): IPv6 用パケットフィルタリングツール
  42. Group: System Environment/Base
  43. Requires: %{name} = %{version}-%{release}
  44. Requires(post): chkconfig
  45. Requires(preun): chkconfig
  46. %description ipv6
  47. The iptables package contains IPv6 (the next version of the IP
  48. protocol) support for iptables. Iptables controls the Linux kernel
  49. network packet filtering code, allowing you to set up firewalls and IP
  50. masquerading.
  51. %description -l ja
  52. iptables-ipv6 は iptables で IPv6 をサポートするためのパッケージです。
  53. これを用いることで、IPv6 環境におけるファイアウオールや IP マスカレー
  54. ディング, NAT などを設定することができます。
  55. %prep
  56. %setup -q
  57. %patch5 -p1 -b .cloexec
  58. %build
  59. CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
  60. ./configure --enable-devel --enable-libipq --bindir=/bin --sbindir=/sbin --sysconfdir=/etc --libdir=/%{_libdir} --libexecdir=/%{_lib} --mandir=%{_mandir} --includedir=%{_includedir} --with-kernel=/usr --with-kbuild=/usr --with-ksource=/usr
  61. # do not use rpath
  62. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  63. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  64. make
  65. %install
  66. rm -rf %{buildroot}
  67. make install DESTDIR=%{buildroot}
  68. # remove la file(s)
  69. rm -f %{buildroot}/%{_libdir}/*.la
  70. # install ip*tables.h header files
  71. install -m 644 include/ip*tables.h %{buildroot}%{_includedir}/
  72. # install ipulog header file
  73. install -d -m 755 %{buildroot}%{_includedir}/libipulog/
  74. install -m 644 include/libipulog/*.h %{buildroot}%{_includedir}/libipulog/
  75. # install init scripts and configuration files
  76. install -d -m 755 %{buildroot}/etc/rc.d/init.d
  77. install -c -m 755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/iptables
  78. sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6tables.init
  79. install -c -m 755 ip6tables.init %{buildroot}/etc/rc.d/init.d/ip6tables
  80. install -d -m 755 %{buildroot}/etc/sysconfig
  81. install -c -m 755 %{SOURCE2} %{buildroot}/etc/sysconfig/iptables-config
  82. sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE2} > ip6tables-config
  83. install -c -m 755 ip6tables-config %{buildroot}/etc/sysconfig/ip6tables-config
  84. %clean
  85. rm -rf %{buildroot}
  86. %post
  87. /sbin/ldconfig
  88. /sbin/chkconfig --add iptables
  89. %postun -p /sbin/ldconfig
  90. %preun
  91. if [ "$1" = 0 ]; then
  92. /sbin/chkconfig --del iptables
  93. fi
  94. %post ipv6
  95. /sbin/chkconfig --add ip6tables
  96. %preun ipv6
  97. if [ "$1" = 0 ]; then
  98. /sbin/chkconfig --del ip6tables
  99. fi
  100. %files
  101. %defattr(-,root,root)
  102. %doc COPYING INSTALL INCOMPATIBILITIES
  103. %attr(0755,root,root) /etc/rc.d/init.d/iptables
  104. %config(noreplace) %attr(0600,root,root) /etc/sysconfig/iptables-config
  105. /sbin/iptables*
  106. %{_mandir}/man8/iptables*
  107. %dir /%{_lib}/xtables
  108. /%{_lib}/xtables/libipt*
  109. /%{_lib}/xtables/libxt*
  110. %{_libdir}/libip*tc.so.*
  111. %{_libdir}/libxtables.so.*
  112. %{_libdir}/libipq.so.*
  113. %files ipv6
  114. %defattr(-,root,root)
  115. %attr(0755,root,root) /etc/rc.d/init.d/ip6tables
  116. %config(noreplace) %attr(0600,root,root) /etc/sysconfig/ip6tables-config
  117. /sbin/ip6tables*
  118. /bin/iptables-xml
  119. %{_mandir}/man8/ip6tables*
  120. /%{_lib}/xtables/libip6t*
  121. %files devel
  122. %defattr(-,root,root)
  123. %{_includedir}/*.h
  124. %dir %{_includedir}/libiptc
  125. %{_includedir}/libiptc/*.h
  126. %dir %{_includedir}/libipulog
  127. %{_includedir}/libipulog/*.h
  128. %{_mandir}/man3/*
  129. %{_libdir}/libipq.so
  130. %{_libdir}/libip*tc.so
  131. %{_libdir}/libxtables.so
  132. %{_libdir}/pkgconfig/libiptc.pc
  133. %{_libdir}/pkgconfig/xtables.pc
  134. %changelog
  135. * Thu Mar 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-1
  136. - new upstream release
  137. * Wed Aug 12 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-2
  138. - don't fail initscript if config file is not found.
  139. * Wed Jun 17 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4.4-1
  140. - new upstream release
  141. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.2-1
  142. - new upstream release
  143. * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.1-1
  144. - new upstream release
  145. - libiptc is now shared
  146. - drop patch1
  147. - update patch2
  148. - fix typo in spec file
  149. * Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-2
  150. - rebuild to add sign..
  151. * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1
  152. - new upstream release
  153. - spec in utf-8
  154. * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.6-0vl2
  155. - changed devel package Group to Development/Libraries
  156. * Sat Nov 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.6-0vl1
  157. - new upstream release
  158. - remove libiptc.a from %%files
  159. - libiptc is not a public interface
  160. * Wed Sep 06 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.5-0vl4
  161. - updates Summaries and Descriptions (<BTS:0101>)
  162. * Sun Aug 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl3
  163. - updates Summaries (<BTS:0101>)
  164. * Thu Jul 06 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.5-0vl2
  165. - add Patch10 (to include libipt_recent.so)
  166. * Tue Jun 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl1
  167. - new upstream release
  168. * Tue Jun 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.11-0vl1
  169. - new upstream release
  170. * Thu Jun 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1
  171. - new upstream release
  172. * Fri Nov 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1
  173. - new upstream release
  174. * Thu Jul 24 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl3
  175. - add ipv6 version
  176. * Sun Mar 23 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl2
  177. - rebuild development version
  178. * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7a-0vl1
  179. - new upstream release 1.2.7a
  180. * Mon Mar 25 2002 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.2.6-0vl0
  181. - updated to 1.2.6
  182. * Thu Mar 07 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl1
  183. - kernel24 -> kernel for Requires
  184. * Sat Mar 02 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl0
  185. - updated to 1.2.5 and merged with RHL's spec
  186. - compatibilities: %%{_sbindir} -> /sbin, %%{_libdir} -> /lib
  187. * Mon Nov 19 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-2vl1
  188. - build for Vine Linux based on conectiva iptables package.
  189. * Sun Jun 17 2001 Harald Welte <laforge@conectiva.com>
  190. + iptables-1.2.2-2cl
  191. - fixes iptables-save / -restore problems (Closes: #3673)
  192. - fixes REJECT save problem
  193. - fixes ipv6 compile problem
  194. - moved binaries to sbindir instead of bindir
  195. * Wed May 30 2001 Harald Welte <laforge@conectiva.com>
  196. + iptables-1.2.2-1cl
  197. - updated to 1.2.2 (Closes: #3376)
  198. * Wed May 30 2001 Wanderlei Antonio Cavassin <cavassin@conectiva.com>
  199. + iptables-1.2.1a-2cl
  200. - recompiled for kernel-2.4.4-2cl (Closes: #3354)
  201. - spec file changes provided by Vagner Farias <vfarias@conectiva.com>
  202. * Fri Apr 20 2001 Harald Welte <laforge@conectiva.com>
  203. + iptables-1.2.1a-1cl
  204. - updated to version 1.2.1a because of various bugfixes
  205. * Fri Mar 16 2001 Harald Welte <laforge@conectiva.com>
  206. + iptables-1.2.1-1cl
  207. - updated to version 1.2.1
  208. * Wed Jan 10 2001 Andreas Hasenack <andreas@conectiva.com>
  209. - updated to version 1.2
  210. - added requirement for kernel >= 2.4.0
  211. * Thu Dec 14 2000 Andreas Hasenack <andreas@conectiva.com>
  212. - first package for Conectiva Linux