]>
Commit | Line | Data |
---|---|---|
1 | Summary: PPP Over Ethernet client | |
2 | Summary(pl.UTF-8): Klient PPP Poprzez Ethernet (PPPoE) | |
3 | Summary(pt_BR.UTF-8): Protocolo PPPoE (PPP over Ethernet), usado comumente com modens xDSL | |
4 | Summary(ru.UTF-8): PPP Over Ethernet (поддержка xDSL) | |
5 | Summary(uk.UTF-8): PPP Over Ethernet (підтримка xDSL) | |
6 | Name: rp-pppoe | |
7 | Version: 3.12 | |
8 | Release: 1 | |
9 | License: GPL v2+ | |
10 | Group: Networking | |
11 | Source0: http://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 216eb52b69062b92a64ee37fd71f4b66 | |
13 | Source1: %{name}-server.init | |
14 | Source2: %{name}-server.sysconfig | |
15 | Source3: %{name}-relay.init | |
16 | Source4: %{name}-relay.sysconfig | |
17 | Patch0: %{name}-ac.patch | |
18 | Patch1: %{name}-tkpppoe.in.patch | |
19 | Patch2: %{name}-plugins.patch | |
20 | URL: http://www.roaringpenguin.com/products/pppoe | |
21 | BuildRequires: autoconf | |
22 | BuildRequires: automake | |
23 | BuildRequires: rpmbuild(macros) >= 1.268 | |
24 | Requires: ppp >= 2.4.1 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
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 | ||
32 | The client is a user-mode program and does not require any kernel | |
33 | modifications. It is fully compliant with RFC 2516, the official PPPoE | |
34 | specification. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | PPPoE (Protokół Punkt-Punkt poprzez Ethernet) jest protokołem używanym | |
38 | przez wielu dostarczycieli usługi ADSL. | |
39 | ||
40 | Klient jest programem działającym w przestrzeni użytkownika, a to | |
41 | oznacza, że nie wymaga modyfikacji kernela. Jest w pełni zgodny z | |
42 | oficjalną specyfikacją PPPoE - RFC 2516. | |
43 | ||
44 | %description -l pt_BR.UTF-8 | |
45 | PPPoE (Point-to-Point Protocol over Ethernet) é um protocolo usado por | |
46 | muitos provedores de acesso à internet e companhias telefÔnicas para | |
47 | prover acesso de alta velocidade xDSL. | |
48 | ||
49 | Este cliente é um programa user-mode que não necessita de modificações | |
50 | no kernel. Esta implementação segue a RFC 2516, a especificação | |
51 | oficial para PPPoE. | |
52 | ||
53 | %description -l ru.UTF-8 | |
54 | PPPoE (Point-to-Point Protocol over Ethernet) - это протокол, | |
55 | используемый многими ADSL ISP. Roaring Penguin предоставляет | |
56 | свободнораспространяемого клиента для подключения к таким ISP. | |
57 | ||
58 | Клиент представляет собой полностью пользовательскую программу и не | |
59 | требует каких-либо модификаций ядра. Он полностью совместим с RFC | |
60 | 2516, официальной спецификацией PPPoE. | |
61 | ||
62 | %description -l uk.UTF-8 | |
63 | PPPoE (Point-to-Point Protocol over Ethernet) - це протокол, який | |
64 | використовується багатьма ADSL ISP. Roaring Penguin надає вільного | |
65 | клієнта для підключення до таких ISP. | |
66 | ||
67 | Клієнт являє собою повністю користувацьку програму і не вимагає | |
68 | будь-яких модифікацій ядра. Він повністю сумісний з RFC 2516, | |
69 | офіціальною специфікацією PPPoE. | |
70 | ||
71 | %package gui | |
72 | Summary: GUI front-end for rp-pppoe | |
73 | Summary(pl.UTF-8): Graficzny interfejs dla rp-pppoe | |
74 | Summary(pt_BR.UTF-8): Interface gráfica para configuração do rp-pppoe | |
75 | Group: X11/Applications/Networking | |
76 | Requires: rp-pppoe >= 3.4 | |
77 | ||
78 | %description gui | |
79 | This package contains the graphical frontend (Tk-based) for rp-pppoe. | |
80 | ||
81 | %description gui -l pl.UTF-8 | |
82 | Graficzny interfejs użytkownika (oparty na Tk) dla rp-pppoe. | |
83 | ||
84 | %description gui -l pt_BR.UTF-8 | |
85 | Este pacote fornece uma interface gráfica para a configuração do | |
86 | rp-pppoe. | |
87 | ||
88 | %package server | |
89 | Summary: PPPoE server | |
90 | Summary(pl.UTF-8): Serwer PPPoE | |
91 | Group: Networking/Daemons | |
92 | Requires(post,preun): /sbin/chkconfig | |
93 | Requires: ppp >= 2.4.1 | |
94 | Requires: rc-scripts | |
95 | ||
96 | %description server | |
97 | PPP over Ethernet server. | |
98 | ||
99 | %description server -l pl.UTF-8 | |
100 | Serwer PPP over Ethernet. | |
101 | ||
102 | %package relay | |
103 | Summary: PPPoE relay | |
104 | Summary(pl.UTF-8): Agent przekazujący pakiety PPPoE | |
105 | Group: Networking/Daemons | |
106 | Requires(post,preun): /sbin/chkconfig | |
107 | Requires: rc-scripts | |
108 | ||
109 | %description relay | |
110 | PPP over Ethernet relay. | |
111 | ||
112 | %description relay -l pl.UTF-8 | |
113 | Agent przekazujący pakiety PPPoE. | |
114 | ||
115 | %prep | |
116 | %setup -q | |
117 | %patch0 -p1 | |
118 | %patch1 -p1 | |
119 | %patch2 -p1 | |
120 | ||
121 | %build | |
122 | cd src | |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %configure | |
126 | # we always want kernel mode PPPoE support in utilities | |
127 | echo '#define HAVE_LINUX_KERNEL_PPPOE 1' >> config.h | |
128 | %{__make} | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d} | |
134 | ||
135 | %{__make} -C src install \ | |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | %{__make} -C gui install \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | ||
140 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pppoe-server | |
141 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pppoe-server | |
142 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/pppoe-relay | |
143 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/pppoe-relay | |
144 | ||
145 | # This is necessary for the gui to work, but it shouldn't be done here ! | |
146 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/ppp/rp-pppoe-gui | |
147 | ||
148 | # clean docdir | |
149 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
150 | ||
151 | %clean | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
154 | %post server | |
155 | /sbin/chkconfig --add pppoe-server | |
156 | %service pppoe-server restart "PPPoE daemon" | |
157 | ||
158 | %preun server | |
159 | if [ "$1" = "0" ]; then | |
160 | %service pppoe-server stop | |
161 | /sbin/chkconfig --del pppoe-server | |
162 | fi | |
163 | ||
164 | %post relay | |
165 | /sbin/chkconfig --add pppoe-relay | |
166 | %service pppoe-relay restart "PPPoE relay daemon" | |
167 | ||
168 | %preun relay | |
169 | if [ "$1" = "0" ]; then | |
170 | %service pppoe-relay stop | |
171 | /sbin/chkconfig --del pppoe-relay | |
172 | fi | |
173 | ||
174 | %files | |
175 | %defattr(644,root,root,755) | |
176 | %doc README doc/{CHANGES,HOW-TO-CONNECT,KERNEL-MODE-PPPOE,PROBLEMS} | |
177 | %attr(755,root,root) %{_sbindir}/pppoe | |
178 | %attr(755,root,root) %{_sbindir}/pppoe-connect | |
179 | %attr(755,root,root) %{_sbindir}/pppoe-setup | |
180 | %attr(755,root,root) %{_sbindir}/pppoe-sniff | |
181 | %attr(755,root,root) %{_sbindir}/pppoe-st* | |
182 | ||
183 | %config(noreplace) %{_sysconfdir}/ppp/pppoe.conf | |
184 | %config(noreplace) %{_sysconfdir}/ppp/firewall-masq | |
185 | %config(noreplace) %{_sysconfdir}/ppp/firewall-standalone | |
186 | %{_mandir}/man5/pppoe.conf.5* | |
187 | %{_mandir}/man8/pppoe-connect.8* | |
188 | %{_mandir}/man8/pppoe-setup.8* | |
189 | %{_mandir}/man8/pppoe-sniff.8* | |
190 | %{_mandir}/man8/pppoe-st*.8* | |
191 | %{_mandir}/man8/pppoe.8* | |
192 | ||
193 | %files gui | |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_bindir}/tkpppoe | |
196 | %attr(755,root,root) %{_sbindir}/pppoe-wrapper | |
197 | %dir %{_sysconfdir}/ppp/rp-pppoe-gui | |
198 | %{_datadir}/tkpppoe | |
199 | %{_mandir}/man1/pppoe-wrapper.1* | |
200 | %{_mandir}/man1/tkpppoe.1* | |
201 | ||
202 | %files server | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_sbindir}/pppoe-server | |
205 | %config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options | |
206 | %{_mandir}/man8/pppoe-server.8* | |
207 | %attr(754,root,root) /etc/rc.d/init.d/pppoe-server | |
208 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-server | |
209 | ||
210 | %files relay | |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_sbindir}/pppoe-relay | |
213 | %{_mandir}/man8/pppoe-relay.8* | |
214 | %attr(754,root,root) /etc/rc.d/init.d/pppoe-relay | |
215 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-relay |