]> git.pld-linux.org Git - packages/rp-pppoe.git/blame - rp-pppoe.spec
- don't package doc/LICENSE (a copy of GPL); more verbose man files
[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
7a7eed1d 7Version: 3.12
4f7cd503 8Release: 1
e590f436 9License: GPL v2+
d9b97abc 10Group: Networking
4f7cd503 11Source0: http://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz
7a7eed1d 12# Source0-md5: 216eb52b69062b92a64ee37fd71f4b66
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
d4fe71f0 148# clean docdir
f3ebbdb5 149%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
d4fe71f0 150
b8d4c4aa 151%clean
f84d5cda 152rm -rf $RPM_BUILD_ROOT
b8d4c4aa 153
dd7efee3
AM
154%post server
155/sbin/chkconfig --add pppoe-server
1ad63c23 156%service pppoe-server restart "PPPoE daemon"
dd7efee3
AM
157
158%preun server
159if [ "$1" = "0" ]; then
1ad63c23 160 %service pppoe-server stop
27ea6efe 161 /sbin/chkconfig --del pppoe-server
dd7efee3
AM
162fi
163
164%post relay
165/sbin/chkconfig --add pppoe-relay
1ad63c23 166%service pppoe-relay restart "PPPoE relay daemon"
dd7efee3
AM
167
168%preun relay
169if [ "$1" = "0" ]; then
1ad63c23 170 %service pppoe-relay stop
27ea6efe 171 /sbin/chkconfig --del pppoe-relay
dd7efee3
AM
172fi
173
b8d4c4aa
AM
174%files
175%defattr(644,root,root,755)
88e442a3 176%doc README doc/{CHANGES,HOW-TO-CONNECT,KERNEL-MODE-PPPOE,PROBLEMS}
dd7efee3 177%attr(755,root,root) %{_sbindir}/pppoe
e9867154 178%attr(755,root,root) %{_sbindir}/pppoe-connect
179%attr(755,root,root) %{_sbindir}/pppoe-setup
dd7efee3 180%attr(755,root,root) %{_sbindir}/pppoe-sniff
e9867154 181%attr(755,root,root) %{_sbindir}/pppoe-st*
b8d4c4aa
AM
182
183%config(noreplace) %{_sysconfdir}/ppp/pppoe.conf
b8d4c4aa
AM
184%config(noreplace) %{_sysconfdir}/ppp/firewall-masq
185%config(noreplace) %{_sysconfdir}/ppp/firewall-standalone
88e442a3
JB
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*
b8d4c4aa
AM
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
88e442a3
JB
199%{_mandir}/man1/pppoe-wrapper.1*
200%{_mandir}/man1/tkpppoe.1*
dd7efee3
AM
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
88e442a3 206%{_mandir}/man8/pppoe-server.8*
1b9b409e 207%attr(754,root,root) /etc/rc.d/init.d/pppoe-server
28d1c4d3 208%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-server
dd7efee3
AM
209
210%files relay
211%defattr(644,root,root,755)
212%attr(755,root,root) %{_sbindir}/pppoe-relay
88e442a3 213%{_mandir}/man8/pppoe-relay.8*
1b9b409e 214%attr(754,root,root) /etc/rc.d/init.d/pppoe-relay
28d1c4d3 215%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pppoe-relay
This page took 0.132047 seconds and 4 git commands to generate.