iptables-vl.spec 9.7 KB

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