]>
Commit | Line | Data |
---|---|---|
b8d4c4aa | 1 | Summary: PPP Over Ethernet client |
992eb8fb ER |
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) | |
b8d4c4aa | 6 | Name: rp-pppoe |
4f7cd503 | 7 | Version: 3.10 |
8 | Release: 1 | |
e590f436 | 9 | License: GPL v2+ |
d9b97abc | 10 | Group: Networking |
4f7cd503 | 11 | Source0: http://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz |
12 | # Source0-md5: d58a13cc4185bca6121a606ff456dec0 | |
dd7efee3 AM |
13 | Source1: %{name}-server.init |
14 | Source2: %{name}-server.sysconfig | |
15 | Source3: %{name}-relay.init | |
16 | Source4: %{name}-relay.sysconfig | |
b64439ec | 17 | Patch0: %{name}-ac.patch |
d9b97abc | 18 | Patch1: %{name}-tkpppoe.in.patch |
e9867154 | 19 | Patch2: %{name}-plugins.patch |
4f7cd503 | 20 | URL: http://www.roaringpenguin.com/products/pppoe |
61db5ac7 | 21 | BuildRequires: autoconf |
28d1c4d3 | 22 | BuildRequires: automake |
1ad63c23 | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
b8d4c4aa AM |
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 | ||
5b8d2924 JR |
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. | |
d9b97abc | 39 | |
5b8d2924 JR |
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. | |
d9b97abc | 43 | |
5b8d2924 JR |
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 | |
d9b97abc | 47 | prover acesso de alta velocidade xDSL. |
b8d4c4aa | 48 | |
5b8d2924 JR |
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 | |
d9b97abc | 51 | oficial para PPPoE. |
52 | ||
5b8d2924 JR |
53 | %description -l ru.UTF-8 |
54 | PPPoE (Point-to-Point Protocol over Ethernet) - это протокол, | |
55 | используемый многими ADSL ISP. Roaring Penguin предоставляет | |
56 | свободнораспространяемого клиента для подключения к таким ISP. | |
d9b97abc | 57 | |
5b8d2924 JR |
58 | Клиент представляет собой полностью пользовательскую программу и не |
59 | требует каких-либо модификаций ядра. Он полностью совместим с RFC | |
60 | 2516, официальной спецификацией PPPoE. | |
d9b97abc | 61 | |
5b8d2924 JR |
62 | %description -l uk.UTF-8 |
63 | PPPoE (Point-to-Point Protocol over Ethernet) - це протокол, який | |
64 | використовується багатьма ADSL ISP. Roaring Penguin надає вільного | |
65 | клієнта для підключення до таких ISP. | |
d9b97abc | 66 | |
5b8d2924 JR |
67 | Клієнт являє собою повністю користувацьку програму і не вимагає |
68 | будь-яких модифікацій ядра. Він повністю сумісний з RFC 2516, | |
69 | офіціальною специфікацією PPPoE. | |
b8d4c4aa AM |
70 | |
71 | %package gui | |
72 | Summary: GUI front-end for rp-pppoe | |
992eb8fb ER |
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 | |
dd7efee3 | 75 | Group: X11/Applications/Networking |
b8d4c4aa AM |
76 | Requires: rp-pppoe >= 3.4 |
77 | ||
78 | %description gui | |
cdac9aa1 | 79 | This package contains the graphical frontend (Tk-based) for rp-pppoe. |
b8d4c4aa | 80 | |
5b8d2924 JR |
81 | %description gui -l pl.UTF-8 |
82 | Graficzny interfejs użytkownika (oparty na Tk) dla rp-pppoe. | |
b8d4c4aa | 83 | |
5b8d2924 JR |
84 | %description gui -l pt_BR.UTF-8 |
85 | Este pacote fornece uma interface gráfica para a configuração do | |
d9b97abc | 86 | rp-pppoe. |
87 | ||
dd7efee3 AM |
88 | %package server |
89 | Summary: PPPoE server | |
992eb8fb | 90 | Summary(pl.UTF-8): Serwer PPPoE |
dd7efee3 | 91 | Group: Networking/Daemons |
3cb8e5ca | 92 | Requires(post,preun): /sbin/chkconfig |
dd7efee3 | 93 | Requires: ppp >= 2.4.1 |
28d1c4d3 | 94 | Requires: rc-scripts |
dd7efee3 AM |
95 | |
96 | %description server | |
97 | PPP over Ethernet server. | |
98 | ||
5b8d2924 | 99 | %description server -l pl.UTF-8 |
dd7efee3 AM |
100 | Serwer PPP over Ethernet. |
101 | ||
102 | %package relay | |
103 | Summary: PPPoE relay | |
992eb8fb | 104 | Summary(pl.UTF-8): Agent przekazujący pakiety PPPoE |
dd7efee3 | 105 | Group: Networking/Daemons |
3cb8e5ca | 106 | Requires(post,preun): /sbin/chkconfig |
28d1c4d3 | 107 | Requires: rc-scripts |
dd7efee3 AM |
108 | |
109 | %description relay | |
110 | PPP over Ethernet relay. | |
111 | ||
5b8d2924 JR |
112 | %description relay -l pl.UTF-8 |
113 | Agent przekazujący pakiety PPPoE. | |
dd7efee3 | 114 | |
b8d4c4aa AM |
115 | %prep |
116 | %setup -q | |
b64439ec | 117 | %patch0 -p1 |
d9b97abc | 118 | %patch1 -p1 |
61db5ac7 | 119 | %patch2 -p1 |
b64439ec | 120 | |
b8d4c4aa AM |
121 | %build |
122 | cd src | |
123 | %{__aclocal} | |
124 | %{__autoconf} | |
125 | %configure | |
dd7efee3 | 126 | # we always want kernel mode PPPoE support in utilities |
cdfbea42 | 127 | echo '#define HAVE_LINUX_KERNEL_PPPOE 1' >> config.h |
b8d4c4aa AM |
128 | %{__make} |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
dd7efee3 AM |
133 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d} |
134 | ||
b8d4c4aa | 135 | %{__make} -C src install \ |
4f7cd503 | 136 | DESTDIR=$RPM_BUILD_ROOT |
b8d4c4aa | 137 | %{__make} -C gui install \ |
4f7cd503 | 138 | DESTDIR=$RPM_BUILD_ROOT |
b8d4c4aa | 139 | |
1b9b409e | 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 | |
dd7efee3 | 144 | |
b8d4c4aa AM |
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 | |
f84d5cda | 149 | rm -rf $RPM_BUILD_ROOT |
b8d4c4aa | 150 | |
dd7efee3 AM |
151 | %post server |
152 | /sbin/chkconfig --add pppoe-server | |
1ad63c23 | 153 | %service pppoe-server restart "PPPoE daemon" |
dd7efee3 AM |
154 | |
155 | %preun server | |
156 | if [ "$1" = "0" ]; then | |
1ad63c23 | 157 | %service pppoe-server stop |
27ea6efe | 158 | /sbin/chkconfig --del pppoe-server |
dd7efee3 AM |
159 | fi |
160 | ||
161 | %post relay | |
162 | /sbin/chkconfig --add pppoe-relay | |
1ad63c23 | 163 | %service pppoe-relay restart "PPPoE relay daemon" |
dd7efee3 AM |
164 | |
165 | %preun relay | |
166 | if [ "$1" = "0" ]; then | |
1ad63c23 | 167 | %service pppoe-relay stop |
27ea6efe | 168 | /sbin/chkconfig --del pppoe-relay |
dd7efee3 AM |
169 | fi |
170 | ||
b8d4c4aa AM |
171 | %files |
172 | %defattr(644,root,root,755) | |
e9867154 | 173 | %doc README doc/* |
dd7efee3 | 174 | %attr(755,root,root) %{_sbindir}/pppoe |
e9867154 | 175 | %attr(755,root,root) %{_sbindir}/pppoe-connect |
176 | %attr(755,root,root) %{_sbindir}/pppoe-setup | |
dd7efee3 | 177 | %attr(755,root,root) %{_sbindir}/pppoe-sniff |
e9867154 | 178 | %attr(755,root,root) %{_sbindir}/pppoe-st* |
b8d4c4aa AM |
179 | |
180 | %config(noreplace) %{_sysconfdir}/ppp/pppoe.conf | |
b8d4c4aa AM |
181 | %config(noreplace) %{_sysconfdir}/ppp/firewall-masq |
182 | %config(noreplace) %{_sysconfdir}/ppp/firewall-standalone | |
e9867154 | 183 | %{_mandir}/man5/pppoe.conf.* |
184 | %{_mandir}/man8/pppoe-connect* | |
185 | %{_mandir}/man8/pppoe-setup* | |
dd7efee3 | 186 | %{_mandir}/man8/pppoe-sniff* |
e9867154 | 187 | %{_mandir}/man8/pppoe-st* |
188 | %{_mandir}/man8/pppoe.* | |
b8d4c4aa AM |
189 | |
190 | %files gui | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_bindir}/tkpppoe | |
193 | %attr(755,root,root) %{_sbindir}/pppoe-wrapper | |
194 | %dir %{_sysconfdir}/ppp/rp-pppoe-gui | |
195 | %{_datadir}/tkpppoe | |
196 | %{_mandir}/man1/* | |
dd7efee3 AM |
197 | |
198 | %files server | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_sbindir}/pppoe-server | |
201 | %config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options | |
202 | %{_mandir}/man8/pppoe-server* | |
1b9b409e | 203 | %attr(754,root,root) /etc/rc.d/init.d/pppoe-server |
28d1c4d3 | 204 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-server |
dd7efee3 AM |
205 | |
206 | %files relay | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_sbindir}/pppoe-relay | |
209 | %{_mandir}/man8/pppoe-relay* | |
1b9b409e | 210 | %attr(754,root,root) /etc/rc.d/init.d/pppoe-relay |
28d1c4d3 | 211 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-relay |