]> git.pld-linux.org Git - packages/rp-pppoe.git/blame - rp-pppoe.spec
- unified %clean section
[packages/rp-pppoe.git] / rp-pppoe.spec
CommitLineData
b8d4c4aa 1Summary: PPP Over Ethernet client
992eb8fb
ER
2Summary(pl.UTF-8): Klient PPP Poprzez Ethernet (PPPoE)
3Summary(pt_BR.UTF-8): Protocolo PPPoE (PPP over Ethernet), usado comumente com modens xDSL
4Summary(ru.UTF-8): PPP Over Ethernet (поддержка xDSL)
5Summary(uk.UTF-8): PPP Over Ethernet (підтримка xDSL)
b8d4c4aa 6Name: rp-pppoe
4f7cd503 7Version: 3.10
8Release: 1
e590f436 9License: GPL v2+
d9b97abc 10Group: Networking
4f7cd503 11Source0: http://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz
12# Source0-md5: d58a13cc4185bca6121a606ff456dec0
dd7efee3
AM
13Source1: %{name}-server.init
14Source2: %{name}-server.sysconfig
15Source3: %{name}-relay.init
16Source4: %{name}-relay.sysconfig
b64439ec 17Patch0: %{name}-ac.patch
d9b97abc 18Patch1: %{name}-tkpppoe.in.patch
e9867154 19Patch2: %{name}-plugins.patch
4f7cd503 20URL: http://www.roaringpenguin.com/products/pppoe
61db5ac7 21BuildRequires: autoconf
28d1c4d3 22BuildRequires: automake
1ad63c23 23BuildRequires: rpmbuild(macros) >= 1.268
b8d4c4aa
AM
24Requires: ppp >= 2.4.1
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
29many ADSL Internet Service Providers. Roaring Penguin has a free
30client for Linux systems to connect to PPPoE service providers.
31
32The client is a user-mode program and does not require any kernel
33modifications. It is fully compliant with RFC 2516, the official PPPoE
34specification.
35
5b8d2924
JR
36%description -l pl.UTF-8
37PPPoE (Protokół Punkt-Punkt poprzez Ethernet) jest protokołem używanym
38przez wielu dostarczycieli usługi ADSL.
d9b97abc 39
5b8d2924
JR
40Klient jest programem działającym w przestrzeni użytkownika, a to
41oznacza, że nie wymaga modyfikacji kernela. Jest w pełni zgodny z
42oficjalną specyfikacją PPPoE - RFC 2516.
d9b97abc 43
5b8d2924
JR
44%description -l pt_BR.UTF-8
45PPPoE (Point-to-Point Protocol over Ethernet) é um protocolo usado por
46muitos provedores de acesso à internet e companhias telefÔnicas para
d9b97abc 47prover acesso de alta velocidade xDSL.
b8d4c4aa 48
5b8d2924
JR
49Este cliente é um programa user-mode que não necessita de modificações
50no kernel. Esta implementação segue a RFC 2516, a especificação
d9b97abc 51oficial para PPPoE.
52
5b8d2924
JR
53%description -l ru.UTF-8
54PPPoE (Point-to-Point Protocol over Ethernet) - это протокол,
55используемый многими ADSL ISP. Roaring Penguin предоставляет
56свободнораспространяемого клиента для подключения к таким ISP.
d9b97abc 57
5b8d2924
JR
58Клиент представляет собой полностью пользовательскую программу и не
59требует каких-либо модификаций ядра. Он полностью совместим с RFC
602516, официальной спецификацией PPPoE.
d9b97abc 61
5b8d2924
JR
62%description -l uk.UTF-8
63PPPoE (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
72Summary: GUI front-end for rp-pppoe
992eb8fb
ER
73Summary(pl.UTF-8): Graficzny interfejs dla rp-pppoe
74Summary(pt_BR.UTF-8): Interface gráfica para configuração do rp-pppoe
dd7efee3 75Group: X11/Applications/Networking
b8d4c4aa
AM
76Requires: rp-pppoe >= 3.4
77
78%description gui
cdac9aa1 79This package contains the graphical frontend (Tk-based) for rp-pppoe.
b8d4c4aa 80
5b8d2924
JR
81%description gui -l pl.UTF-8
82Graficzny interfejs użytkownika (oparty na Tk) dla rp-pppoe.
b8d4c4aa 83
5b8d2924
JR
84%description gui -l pt_BR.UTF-8
85Este pacote fornece uma interface gráfica para a configuração do
d9b97abc 86rp-pppoe.
87
dd7efee3
AM
88%package server
89Summary: PPPoE server
992eb8fb 90Summary(pl.UTF-8): Serwer PPPoE
dd7efee3 91Group: Networking/Daemons
3cb8e5ca 92Requires(post,preun): /sbin/chkconfig
dd7efee3 93Requires: ppp >= 2.4.1
28d1c4d3 94Requires: rc-scripts
dd7efee3
AM
95
96%description server
97PPP over Ethernet server.
98
5b8d2924 99%description server -l pl.UTF-8
dd7efee3
AM
100Serwer PPP over Ethernet.
101
102%package relay
103Summary: PPPoE relay
992eb8fb 104Summary(pl.UTF-8): Agent przekazujący pakiety PPPoE
dd7efee3 105Group: Networking/Daemons
3cb8e5ca 106Requires(post,preun): /sbin/chkconfig
28d1c4d3 107Requires: rc-scripts
dd7efee3
AM
108
109%description relay
110PPP over Ethernet relay.
111
5b8d2924
JR
112%description relay -l pl.UTF-8
113Agent 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
122cd src
123%{__aclocal}
124%{__autoconf}
125%configure
dd7efee3 126# we always want kernel mode PPPoE support in utilities
cdfbea42 127echo '#define HAVE_LINUX_KERNEL_PPPOE 1' >> config.h
b8d4c4aa
AM
128%{__make}
129
130%install
131rm -rf $RPM_BUILD_ROOT
132
dd7efee3
AM
133install -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 140install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pppoe-server
141install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pppoe-server
142install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/pppoe-relay
143install %{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 !
146install -d $RPM_BUILD_ROOT%{_sysconfdir}/ppp/rp-pppoe-gui
147
148%clean
f84d5cda 149rm -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
156if [ "$1" = "0" ]; then
1ad63c23 157 %service pppoe-server stop
27ea6efe 158 /sbin/chkconfig --del pppoe-server
dd7efee3
AM
159fi
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
166if [ "$1" = "0" ]; then
1ad63c23 167 %service pppoe-relay stop
27ea6efe 168 /sbin/chkconfig --del pppoe-relay
dd7efee3
AM
169fi
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
This page took 0.066586 seconds and 4 git commands to generate.