rp-pppoe-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. Summary: PPP Over Ethernet (xDSL support)
  2. Name: rp-pppoe
  3. Version: 3.10
  4. Release: 3%{?_dist_release}
  5. Group: System Environment/Daemons
  6. License: GPL
  7. URL: http://www.roaringpenguin.com/pppoe/
  8. Source0: http://www.roaringpenguin.com/pppoe/%{name}-%{version}.tar.gz
  9. Source1: tkpppoe.desktop
  10. Source2: rp-pppoe-3.5-ja.msg
  11. Source3: tkpppoe-html_ja.tar.gz
  12. Patch0: rp-pppoe-3.2-vine.patch
  13. Patch1: rp-pppoe-3.5-tkpppoe_help.patch
  14. Patch2: rp-pppoe-3.5-tkpppoe_i18n.patch
  15. Patch10: rp-pppoe-3.8-initscripts-7.2.10.patch
  16. Requires: ppp >= 2.3.7
  17. Prereq: /sbin/chkconfig
  18. BuildPrereq: nkf >= 2.01
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %package gui
  23. Summary: GUI wrapper around the rp-pppoe PPPoE client
  24. Summary(ja): rp-pppoe GUIラッパー
  25. Group: Applications/Internet
  26. Requires: %{name} >= 3.0, tk >= 8.4.1
  27. %description
  28. PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
  29. many ADSL Internet Service Providers. Roaring Penguin has a free
  30. client for Linux systems to connect to PPPoE service providers.
  31. The client is a user-mode program and does not require any kernel
  32. modifications. It is fully compliant with RFC 2516, the official PPPoE
  33. specification.
  34. %description -l ja
  35. PPPoE (Point-to-Point Protocol over Ethernet)は、多くのADSL,FTTH
  36. インターネットサービスプロバイダで用いられているプロトコルです。
  37. このパッケージは、PPPoE サービスプロバイダに接続するための、
  38. Linuxシステム用のフリーのクライアントです。
  39. このクライアントはユーザーモードプログラムであり、カーネルの
  40. 修正を一切必要としません。このクライアントは、公式なPPPoEの
  41. 仕様であるRFC 2516に完全に従っています。
  42. %description gui
  43. This is a graphical wrapper around the rp-pppoe PPPoE client. PPPoE is
  44. a protocol used by many DSL Internet Service Providers.
  45. %description -l ja gui
  46. これはPPPoEクライアント rp-pppoe のGUIラッパーです。PPPoEは多くの
  47. ADSL,FTTHインターネットサービスプロバイダで用いられているプロトコルです。
  48. PPPoEクライアントをGUIで使いたい場合には、このパッケージをインストール
  49. してください。tclとtkのパーケージもインストールしておく必要があります。
  50. %prep
  51. %setup -q -a 3
  52. %patch0 -p1
  53. %patch1 -b .org
  54. %patch2 -b .i18n
  55. %patch10 -p1 -b .initscripts7210
  56. (cd gui
  57. %__install %{SOURCE2} ja.euc
  58. nkf -E -w ja.euc > ja.msg
  59. )
  60. %build
  61. cd src
  62. %configure
  63. cd ..
  64. make -C src
  65. make -C gui
  66. %install
  67. %__rm -rf %{buildroot}
  68. # make install RPM_INSTALL_ROOT=%{buildroot} -C src
  69. # make install RPM_INSTALL_ROOT=%{buildroot} -C gui
  70. make -C src install DESTDIR=%{buildroot}
  71. make -C gui install DESTDIR=%{buildroot}
  72. %__install -m 644 gui/html/* %{buildroot}/%{_datadir}/tkpppoe
  73. %__install -d %{buildroot}/%{_datadir}/applications
  74. %__install -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/tkpppoe.desktop
  75. # %post
  76. # /sbin/chkconfig --add pppoe
  77. %preun
  78. if [ $1 = 0 ]; then
  79. /sbin/chkconfig --del pppoe
  80. /etc/rc.d/init.d/pppoe stop
  81. fi
  82. %clean
  83. # rm -rf %{buildroot}
  84. %files
  85. %defattr(-,root,root)
  86. %doc doc/CHANGES doc/HOW-TO-CONNECT doc/LICENSE doc/KERNEL-MODE-PPPOE
  87. %doc doc/PROBLEMS README
  88. %config %{_sysconfdir}/rc.d/init.d/pppoe
  89. %config(noreplace) %{_sysconfdir}/ppp/pppoe.conf
  90. %config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options
  91. %config(noreplace) %{_sysconfdir}/ppp/firewall-masq
  92. %config(noreplace) %{_sysconfdir}/ppp/firewall-standalone
  93. %{_sysconfdir}/ppp/plugins/*
  94. %{_sbindir}/pppoe
  95. %{_sbindir}/pppoe-server
  96. %{_sbindir}/pppoe-sniff
  97. %{_sbindir}/pppoe-relay
  98. %{_sbindir}/pppoe-connect
  99. %{_sbindir}/pppoe-start
  100. %{_sbindir}/pppoe-stop
  101. %{_sbindir}/pppoe-setup
  102. %{_sbindir}/pppoe-status
  103. %{_mandir}/man5/*
  104. %{_mandir}/man8/*
  105. %files gui
  106. %defattr(-,root,root)
  107. %doc doc/CHANGES doc/HOW-TO-CONNECT doc/LICENSE doc/KERNEL-MODE-PPPOE
  108. %doc doc/PROBLEMS README
  109. %dir /etc/ppp/rp-pppoe-gui
  110. %{_sbindir}/pppoe-wrapper
  111. %{_bindir}/tkpppoe
  112. %{_datadir}/tkpppoe
  113. %{_mandir}/man1/*
  114. %config(missingok) %{_datadir}/applications/tkpppoe.desktop
  115. %changelog
  116. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 3.10-3
  117. - rebuilt with rpm-4.8.1-3
  118. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.10-2
  119. - spec in utf-8
  120. * Sat Feb 07 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.10-1
  121. - new upstream release
  122. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.8-1vl5
  123. - applied new versioning policy
  124. * Sun Dec 16 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8-0vl5
  125. - update patch10 to set DEVNAME in pppoe-connect
  126. * Sat Nov 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8-0vl4
  127. - update pppoe-{start,stop,connect,status} fot initscripts-7.2.10
  128. (<BTS:0560>)
  129. * Tue Jan 16 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.8-0vl3
  130. - separete .desktop as Source1 to use UTF-8 encoding.
  131. * Sat Jan 13 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.8-0vl2
  132. - change .desktop installation directory. <BTS:VineLinux:405>
  133. * Mon Sep 11 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.8-0vl1
  134. - rebuild for Vine 4.0/VineSeed
  135. * Mon Jul 24 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.8-0vl0.1
  136. - test package for Vine 3.2
  137. - new upstream release 3.8
  138. - change filename adsl-* to pppoe-* in file section
  139. * Sun Jul 20 2003 Masaki Shinomiya <shino@pos.to> 3.5-0vl3
  140. - ja.msg in UTF-8, japanese html help file
  141. - both translation originally by Ryoji Kawagishi
  142. - allow mozilla for help browser, tkpppoe.desktop, i18n.patch
  143. - group of the gui package to Applications/Internet
  144. - vendor and distribution
  145. * Sat Mar 15 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5-0vl2
  146. - rebuild with new toolchains
  147. * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5-0vl1
  148. - new upstream release 3.5
  149. * Fri Jun 07 2002 Tomoya TAKA <taka@vinelinux.org> 3.4-0vl1
  150. - update to 3.4
  151. - split tkpppoe.desktop from spec file (%%{SOURCE1})
  152. * Sun Feb 24 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.3-0vl2
  153. - remove %%post script
  154. - do not chkconfig --add at install time, we need some configuration before using.
  155. * Fri Sep 14 2001 Toru Sagami <sagami@vinelinux.org>
  156. - 3.3-0vl1
  157. * Fri Jul 20 2001 <sagami@vinelinux.org>
  158. - 3.2-0vl1: added patch for vine-release and erased BuildPreReq
  159. * Thu Jul 05 2001 <sagami@vinelinux.org>
  160. - 3.1-0vl1
  161. - use more (not better!) macros
  162. - added BuildPreReq /etc/redhat-release (trick of a kind)
  163. * Wed Jun 27 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  164. - 3.0-1vl2
  165. - add %%config(noreplace)
  166. - add /etc/X11/applnk/Internet/tkpppoe.desktop to rp-pppoe-gui
  167. - add Prereq: /sbin/chkconfig
  168. * Wed Apr 18 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  169. - 3.0-1vl1
  170. - first package tailored for Vine Linux 2.x
  171. - merge rp-pppoe-gui-3.0-1