tcp_wrappers-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. %bcond_without devel
  2. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  3. %define LIB_MAJOR 0
  4. %define LIB_MINOR 7
  5. %define LIB_REL 6
  6. Summary: A security tool which acts as a wrapper for TCP daemons.
  7. Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
  8. Name: tcp_wrappers
  9. Version: 7.6
  10. Release: 41%{?_dist_release}
  11. Group: servers,security
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. License: BSD
  15. Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_%{version}-ipv6.4.tar.gz
  16. Patch0: tcpw7.2-config.patch
  17. Patch1: tcpw7.2-setenv.patch
  18. Patch2: tcpw7.6-netgroup.patch
  19. Patch3: tcp_wrappers-7.6-bug11881.patch
  20. Patch4: tcp_wrappers-7.6-bug17795.patch
  21. Patch5: tcp_wrappers-7.6-bug17847.patch
  22. Patch6: tcp_wrappers-7.6-fixgethostbyname.patch
  23. Patch7: tcp_wrappers-7.6-docu.patch
  24. Patch8: tcp_wrappers-7.6-man.patch
  25. Patch9: tcp_wrappers.usagi-ipv6.patch
  26. Patch11: tcp_wrappers-7.6-shared.patch
  27. Patch12: tcp_wrappers-7.6-sig.patch
  28. Patch14: tcp_wrappers-7.6-ldflags.patch
  29. Patch15: tcp_wrappers-7.6-fix_sig-bug141110.patch
  30. Patch16: tcp_wrappers-7.6-162412.patch
  31. Patch17: tcp_wrappers-7.6-220015.patch
  32. Patch19: tcp_wrappers-7.6-siglongjmp.patch
  33. Patch20: tcp_wrappers-7.6-sigchld.patch
  34. Patch21: tcp_wrappers-7.6-196326.patch
  35. Patch22: tcp_wrappers_7.6-249430.patch
  36. Patch23: tcp_wrappers-7.6-inetdconf.patch
  37. Patch24: tcp_wrappers-7.6-bug698464.patch
  38. Patch26: tcp_wrappers-7.6-xgets.patch
  39. Patch27: tcp_wrappers-7.6-initgroups.patch
  40. Patch28: tcp_wrappers-7.6-warnings.patch
  41. Patch29: tcp_wrappers-7.6-uchart_fix.patch
  42. Patch30: tcp_wrappers-7.6-altformat.patch
  43. Patch31: tcp_wrappers-7.6-aclexec.patch
  44. # required by sin_scope_id in ipv6 patch
  45. BuildRequires: glibc-devel >= 2.2
  46. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  47. %description
  48. The tcp_wrappers package provides small daemon programs which can
  49. monitor and filter incoming requests for systat, finger, FTP, telnet,
  50. rlogin, rsh, exec, tftp, talk and other network services.
  51. Install the tcp_wrappers program if you need a security tool for
  52. filtering incoming network services requests.
  53. %description -l ja
  54. tcp_wrapper パッケージには小さなデーモンプログラムが収められており,
  55. systat, finger, FTP, telnet, rlogin, rsh, exec, tftp, talk, その他
  56. 様々なネットワークサービスに対する外部からの要求を監視し,フィルタリング
  57. することが出来ます.
  58. ネットワークサービスに対する外部からのリクエストをフィルタリング
  59. 出来るセキュリティツールが必要ならば tcp_wrappers パッケージを
  60. インストールして下さい.
  61. ## to build compat32 for x86_64 architecture support
  62. %package -n compat32-%{name}
  63. Summary: A security tool which acts as a wrapper for TCP daemons.
  64. Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
  65. Group: system,security,legacy
  66. %description -n compat32-%{name}
  67. The tcp_wrappers package provides small daemon programs which can
  68. monitor and filter incoming requests for systat, finger, FTP, telnet,
  69. rlogin, rsh, exec, tftp, talk and other network services.
  70. Install the tcp_wrappers program if you need a security tool for
  71. filtering incoming network services requests.
  72. %debug_package
  73. %prep
  74. %setup -q -n %{name}_%{version}-ipv6.4
  75. %patch0 -p1 -b .config
  76. %patch1 -p1 -b .setenv
  77. %patch2 -p1 -b .netgroup
  78. %patch3 -p1 -b .bug11881
  79. %patch4 -p1 -b .bug17795
  80. %patch5 -p1 -b .bug17847
  81. %patch6 -p1 -b .fixgethostbyname
  82. %patch7 -p1 -b .docu
  83. %patch8 -p1 -b .man
  84. %patch9 -p1 -b .usagi-ipv6
  85. %patch11 -p1 -b .shared
  86. %patch12 -p1 -b .sig
  87. %patch14 -p1 -b .ldflags
  88. %patch15 -p1 -b .fix_sig
  89. %patch16 -p1 -b .162412
  90. %patch17 -p1 -b .220015
  91. %patch19 -p1 -b .siglongjmp
  92. %patch20 -p1 -b .sigchld
  93. %patch21 -p1 -b .196326
  94. %patch22 -p1 -b .249430
  95. %patch23 -p1 -b .inetdconf
  96. %patch24 -p1 -b .698464
  97. %patch26 -p1 -b .xgets
  98. %patch27 -p1 -b .initgroups
  99. %patch29 -p1 -b .uchart_fix
  100. %patch30 -p1 -b .altformat
  101. %patch28 -p1 -b .warnings
  102. %patch31 -p1 -b .aclexec
  103. # Disable static library creation by default.
  104. %define with_static 0
  105. %build
  106. make \
  107. RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DACLEXEC" \
  108. LDFLAGS="$RPM_LD_FLAGS" \
  109. MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux %{?_smp_mflags}
  110. %install
  111. mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
  112. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  113. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{3,5,8}
  114. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  115. cp hosts_access.3 ${RPM_BUILD_ROOT}%{_mandir}/man3
  116. cp hosts_access.5 hosts_options.5 ${RPM_BUILD_ROOT}%{_mandir}/man5
  117. cp tcpd.8 tcpdchk.8 tcpdmatch.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
  118. ln -sf hosts_access.5 ${RPM_BUILD_ROOT}%{_mandir}/man5/hosts.allow.5
  119. ln -sf hosts_access.5 ${RPM_BUILD_ROOT}%{_mandir}/man5/hosts.deny.5
  120. %if %{with_static}
  121. cp -a libwrap.a ${RPM_BUILD_ROOT}%{_libdir}
  122. %endif
  123. cp -a libwrap.so* ${RPM_BUILD_ROOT}%{_libdir}
  124. install -p -m644 tcpd.h ${RPM_BUILD_ROOT}%{_includedir}
  125. install -m755 safe_finger ${RPM_BUILD_ROOT}%{_sbindir}
  126. install -m711 tcpd ${RPM_BUILD_ROOT}%{_sbindir}
  127. install -m755 try-from ${RPM_BUILD_ROOT}%{_sbindir}
  128. ## XXX remove utilities that expect /etc/inetd.conf (#16059).
  129. ##install -m755 tcpdchk ${RPM_BUILD_ROOT}%{_sbindir}
  130. ##install -m755 tcpdmatch ${RPM_BUILD_ROOT}%{_sbindir}
  131. #rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/tcpdmatch.*
  132. #rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/tcpdchk.*
  133. ## keep tcpdchk and tcpdmatch included here
  134. ## until xinetd is introduced for Vine Linux....
  135. ##
  136. install -m755 tcpdchk $RPM_BUILD_ROOT%{_sbindir}
  137. install -m755 tcpdmatch $RPM_BUILD_ROOT%{_sbindir}
  138. %if !%{with devel}
  139. rm -f %{buildroot}%{_includedir}/*
  140. %if %{with_static}
  141. rm -f %{buildroot}%{_libdir}/*.a
  142. %endif
  143. rm -f %{buildroot}%{_libdir}/*.so
  144. %endif
  145. %clean
  146. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  147. %files
  148. %defattr(-,root,root)
  149. %doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
  150. %{_mandir}/man[358]/*
  151. %if %{with devel}
  152. %{_includedir}/*
  153. %if %{with_static}
  154. %{_libdir}/*.a
  155. %endif
  156. %{_libdir}/*.so
  157. %endif
  158. %{_libdir}/*.so.*
  159. %{_sbindir}/*
  160. %if %{build_compat32}
  161. %files -n compat32-%{name}
  162. %defattr(-,root,root)
  163. %if %{with_static}
  164. %{_libdir}/*.a
  165. %endif
  166. %{_libdir}/*.so
  167. %{_libdir}/*.so.*
  168. %endif
  169. %changelog
  170. * Sat Mar 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-41
  171. - switched tarball to ipv6 version.
  172. - replaced all patches to rawhide's.
  173. * Mon Jul 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-40
  174. - rebuilt with current environment.
  175. * Tue Aug 07 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-39
  176. - added Patch23 from debian (aclexec support).
  177. - added Patch24 (fix multiple definition).
  178. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 7.6-38
  179. - rebuilt with rpm-4.8.1-3
  180. * Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.6-37
  181. - s/BuildPrereq/BuildRequires/
  182. - added Patch14-22 from FC
  183. * Wed Jul 25 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-49
  184. - fix for a.b.c.d/255.255.255.255 - fixes #249430
  185. * Thu Jun 28 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-48
  186. - compare localhost and localhost.localdomain as the same
  187. * Wed Jun 06 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-47
  188. - fix the hostname resolving patch for x86_64
  189. * Fri May 25 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-45
  190. - unblock and catch SIGCHLD from spawned shell commands, fixes #112975
  191. * Mon Apr 16 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-44
  192. - added restore_sigalarm and siglongjmp patches from Debian, fixes #205129
  193. * Fri Mar 09 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-43
  194. - resolve hostnames in hosts.{allow,deny}, should fix a bunch of issues with
  195. IPv4/6
  196. * Tue Jan 24 2006 Thomas Woerner <twoerner@redhat.com> 7.6-40
  197. - fixed uninitialized fp in function inet_cfg (#162412)
  198. * Fri May 6 2005 Thomas Woerner <twoerner@redhat.com> 7.6-39
  199. - fixed sig patch (#141110). Thanks to Nikita Shulga for the patch
  200. * Mon May 04 2009 NAKAMURA Kenta <kenta@vinelinux.org> 7.6-36
  201. - removed unnecessary %%if %{build_compat32} statements
  202. - removed the static library libwrap.a by default
  203. * Wed Jul 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 7.6-35
  204. - new versioning policy
  205. - spec in UTF-8
  206. * Fri Feb 17 2006 Shu KONNO <owa@bg.wakwak.com> 7.6-34vl3
  207. - added compat32-* packages for x86_64 architecture support
  208. - fixed tcp_wrappers-7.6-shared.patch (which changed gcc to $CC)
  209. * Wed Nov 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 7.6-34vl2
  210. - new upstream release
  211. - add libwrap.so* to %%files
  212. * Fri Jul 4 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 7.6-34vl1
  213. - based on 7.6-34 from Rawhide, applied some patches
  214. - rebuild with new toolchains
  215. - s/Copyright/License/
  216. * Wed Jan 10 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  217. - 7.6-17vl0
  218. - based on 7.6-17 from Rawhide
  219. - added Japanese summary and description
  220. - keep tcpdmatch and tcpchk still until xinetd is introduced for Vine
  221. (if so in the future, these two program should be removed again...)
  222. * Sat Dec 30 2000 Jeff Johnson <jbj@redhat.com>
  223. - permit hosts.{allow,deny} to be assembled from included components (#17795).
  224. - permit '*' and '?' wildcard matches on hostnames (#17847).
  225. * Sun Nov 19 2000 Bill Nottingham <notting@redhat.com>
  226. - ia64 needs -fPIC too
  227. * Mon Aug 14 2000 Jeff Johnson <jbj@redhat.com>
  228. - remove utilities that expect /etc/inetd.conf (#16059).
  229. * Thu Jul 27 2000 Jeff Johnson <jbj@redhat.com>
  230. - security hardening (#11881).
  231. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  232. - automatic rebuild
  233. * Tue Jun 6 2000 Jeff Johnson <jbj@redhat.com>
  234. - FHS packaging.
  235. * Tue May 16 2000 Chris Evans <chris@ferret.lmh.ox.ac.uk>
  236. - Make tcpd mode -rwx--x--x as a security hardening measure
  237. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  238. - compress man pages.
  239. * Mon Aug 23 1999 Jeff Johnson <jbj@redhat.com>
  240. - add netgroup support (#3940).
  241. * Wed May 26 1999 Jeff Johnson <jbj@redhat.com>
  242. - compile on sparc with -fPIC.
  243. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  244. - auto rebuild in the new build environment (release 7)
  245. * Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
  246. - build for glibc 2.1
  247. * Sat Aug 22 1998 Jeff Johnson <jbj@redhat.com>
  248. - close setenv bug (problem #690)
  249. - spec file cleanup
  250. * Thu Jun 25 1998 Alan Cox <alan@redhat.com>
  251. - Erp where did the Dec 05 patch escape to
  252. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  253. - translations modified for de, fr, tr
  254. * Fri Dec 05 1997 Erik Troan <ewt@redhat.com>
  255. - don't build setenv.o module -- it just breaks things
  256. * Wed Oct 29 1997 Marc Ewing <marc@redhat.com>
  257. - upgrade to 7.6
  258. * Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
  259. - built against glibc
  260. * Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
  261. - Upgraded to version 7.5
  262. - Uses a build root