gated-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. Summary: The public release version of the GateD routing daemon.
  2. Summary(ja): GateD ルーティングデーモンのパブリックリリース版
  3. Name: gated
  4. Version: 3.6
  5. Release: 5vl1
  6. Copyright: distributable
  7. Group: System Environment/Daemons
  8. Source0: ftp://ftp.gated.org/net-research/gated/gated-3-6.tar.gz
  9. Source1: gated-3.5.10-init
  10. Source2: gated-conf-3.5.11.tar.gz
  11. Source3: gated-docs-3.5.11.tar.gz
  12. Source4: gated-man-3.5.11.tar.gz
  13. Source5: gated-3.5.10-gated.conf
  14. Patch0: gated-3.5.11-rh70.patch
  15. Patch1: gated-3.6-noscram.patch
  16. Patch2: gated-3.6-installfix.patch
  17. URL: http://www.gated.org/
  18. Prereq: /sbin/chkconfig
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %description
  21. GateD is a modular software program consisting of core services, a
  22. routing database, and protocol modules which support multiple routing
  23. protocols (RIP v1, v2), OSPF, ISIS, SLSP, BGP (v3, v4), and EGP.
  24. GateD is designed to handle dynamic routing with a routing database
  25. built from the information exchanged by routing protocols.
  26. Install gated if you need a routing daemon.
  27. %description -l ja
  28. GateD はコアサービス,ルーティングデータベース,及び
  29. RIP v1, v2,OSPF, ISIS, SLSP, BGP (v3, v4), EGP 等のルーティング
  30. プロトコルに対応したモジュールから成る,モジュラー形式の
  31. ソフトウェアプログラムです.
  32. GateD はルーティングプロトコルで交わされた情報を元に生成された
  33. ルーティングデータベースを使って動的なルーティングを行う様
  34. 設計されています.
  35. ルーティングデーモンが必要な場合は gated をインストールして下さい.
  36. %prep
  37. %setup -q -n gated-public-3_6 -a 2 -a 3 -a 4
  38. %patch0 -p1 -b .rh70
  39. %patch1 -p1 -b .noscram
  40. %patch2 -p1 -b .installfix
  41. %build
  42. %configure --enable-dist \
  43. --enable-inet \
  44. --enable-bgp \
  45. --enable-egp \
  46. --enable-icmp \
  47. --enable-rip \
  48. --enable-ospf \
  49. --enable-rdisc
  50. make depend
  51. # this stuff is all screwed up
  52. make || :
  53. make -C src/smux
  54. make -C src/krt
  55. make -C src/krt_os
  56. make -C src/krt_multi
  57. make -C src/gii
  58. make -C src/icmp
  59. make -C src/inet
  60. make -C src/ospf
  61. make -C src/rdisc
  62. make -C src/rip
  63. make -C src/gatedcompat
  64. make
  65. %install
  66. rm -fr ${RPM_BUILD_ROOT}
  67. %makeinstall
  68. mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
  69. install -c -m 0755 %SOURCE1 ${RPM_BUILD_ROOT}%{_initdir}/gated
  70. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
  71. install man/*8 ${RPM_BUILD_ROOT}%{_mandir}/man8
  72. mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
  73. install src/gdc/gdc ${RPM_BUILD_ROOT}%{_sbindir}
  74. install src/ripquery/ripquery ${RPM_BUILD_ROOT}%{_sbindir}
  75. install src/ospf_monitor/ospf_monitor ${RPM_BUILD_ROOT}%{_sbindir}
  76. # sample config file
  77. cp %{SOURCE5} ./gated.conf.sample
  78. %clean
  79. rm -rf ${RPM_BUILD_ROOT}
  80. %post
  81. /sbin/ldconfig
  82. /sbin/chkconfig --add gated
  83. %preun
  84. if [ $1 = 0 ] ; then
  85. /sbin/chkconfig --del gated
  86. /sbin/service gated stop >/dev/null 2>&1
  87. fi
  88. %postun
  89. if [ "$1" -ge "1" ]; then
  90. service gated condrestart > /dev/null 2>&1
  91. fi
  92. %files
  93. %defattr(-,root,root)
  94. %doc CHANGES README VERSION gated.conf.sample
  95. %doc conf doc
  96. %config %{_initdir}/gated
  97. %{_sbindir}/gdc
  98. %{_sbindir}/ripquery
  99. %{_sbindir}/ospf_monitor
  100. %{_sbindir}/gated
  101. %changelog
  102. * Mon Feb 12 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  103. - 3.6-5vl1
  104. - based on 3.6-5 from Rawhide
  105. - use better macros (%%{_initdir})
  106. - added Japanese summary and description
  107. * Tue Jan 23 2001 Nalin Dahyabhai <nalin@redhat.com>
  108. - gettextize the init script
  109. * Wed Oct 11 2000 Jeff Johnson <jbj@redhat.com>
  110. - re-add gdc (and ripquery) to the gated package (#18914).
  111. * Sat Jul 15 2000 Bill Nottingham <notting@redhat.com>
  112. - move initscript back
  113. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  114. - automatic rebuild
  115. * Fri Jun 30 2000 Preston Brown <pbrown@redhat.com>
  116. - gated 3.6 public
  117. - include configs and man pages from old gated; they are missing from archive.
  118. - condrestart directive and initscript fixage/movage
  119. * Sun Jun 4 2000 Jeff Johnson <jbj@redhat.com>
  120. - build with rpm FHS macros.
  121. - remove bogus dependence on libdb.so.3.
  122. * Thu Feb 17 2000 Bernhard Rosenkr舅zer <bero@redhat.com>
  123. - Update to 3.5.11 (this fixes bug #483 and probably #7811)
  124. - Get rid of CC=egcs (Bug #5929)
  125. - handle RPM_OPT_FLAGS
  126. - fix typo in specfile (Consortium_Agreement, not _Agreeemnt)
  127. * Wed Feb 9 2000 Jeff Johnson <jbj@redhat.com>
  128. - init script marked config.
  129. * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com>
  130. - handle compressed manpages
  131. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  132. - initscript munging
  133. * Thu Apr 08 1999 Preston Brown <pbrown@redhat.com>
  134. - sample config script and init script are world readable
  135. * Wed Mar 31 1999 Jeff Johnson <jbj@redhat.com>
  136. - kernel-2.2 changed /proc/net/route (#1894)
  137. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  138. - auto rebuild in the new build environment (release 7)
  139. * Tue Dec 15 1998 Jeff Johnson <jbj@redhat.com>
  140. - use /var/gated for generated files to avoid d-o-s attacks.
  141. * Mon Dec 7 1998 Jeff Johnson <jbj@redhat.com>
  142. - merge in patches from Matthew Grant <grantma@anathoth.gen.nz> (#6)
  143. * Sun Dec 6 1998 Jeff Johnson <jbj@redhat.com>
  144. - fix init script (#35).
  145. * Thu Sep 03 1998 Cristian Gafton <gafton@redhat.com>
  146. - version 3.5.10
  147. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  148. - translations modified for de, fr, tr
  149. * Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com>
  150. - enhanced initscript
  151. * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
  152. - upgraded to 3.5.9
  153. * Thu Jan 8 1998 Cristian Gafton <gafton@redhat.com>
  154. - upgraded to 3.5.8
  155. - added glibc patch to aid glibc's brain-dead define of IFF_ constants
  156. as enums instead of #defines
  157. - we install now gated.conf.sample instead of gated.conf, so gated won't be
  158. started accidentaly anymore
  159. * Tue Oct 27 1997 Cristian Gafton <gafton@redhat.com>
  160. - build against glibc; added BuildRoot