]> git.pld-linux.org Git - packages/rp-pppoe.git/blame_incremental - rp-pppoe.spec
- don't package doc/LICENSE (a copy of GPL); more verbose man files
[packages/rp-pppoe.git] / rp-pppoe.spec
... / ...
CommitLineData
1Summary: PPP Over Ethernet client
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)
6Name: rp-pppoe
7Version: 3.12
8Release: 1
9License: GPL v2+
10Group: Networking
11Source0: http://www.roaringpenguin.com/files/download/%{name}-%{version}.tar.gz
12# Source0-md5: 216eb52b69062b92a64ee37fd71f4b66
13Source1: %{name}-server.init
14Source2: %{name}-server.sysconfig
15Source3: %{name}-relay.init
16Source4: %{name}-relay.sysconfig
17Patch0: %{name}-ac.patch
18Patch1: %{name}-tkpppoe.in.patch
19Patch2: %{name}-plugins.patch
20URL: http://www.roaringpenguin.com/products/pppoe
21BuildRequires: autoconf
22BuildRequires: automake
23BuildRequires: rpmbuild(macros) >= 1.268
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
36%description -l pl.UTF-8
37PPPoE (Protokół Punkt-Punkt poprzez Ethernet) jest protokołem używanym
38przez wielu dostarczycieli usługi ADSL.
39
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.
43
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
47prover acesso de alta velocidade xDSL.
48
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
51oficial para PPPoE.
52
53%description -l ru.UTF-8
54PPPoE (Point-to-Point Protocol over Ethernet) - это протокол,
55используемый многими ADSL ISP. Roaring Penguin предоставляет
56свободнораспространяемого клиента для подключения к таким ISP.
57
58Клиент представляет собой полностью пользовательскую программу и не
59требует каких-либо модификаций ядра. Он полностью совместим с RFC
602516, официальной спецификацией PPPoE.
61
62%description -l uk.UTF-8
63PPPoE (Point-to-Point Protocol over Ethernet) - це протокол, який
64використовується багатьма ADSL ISP. Roaring Penguin надає вільного
65клієнта для підключення до таких ISP.
66
67Клієнт являє собою повністю користувацьку програму і не вимагає
68будь-яких модифікацій ядра. Він повністю сумісний з RFC 2516,
69офіціальною специфікацією PPPoE.
70
71%package gui
72Summary: GUI front-end for rp-pppoe
73Summary(pl.UTF-8): Graficzny interfejs dla rp-pppoe
74Summary(pt_BR.UTF-8): Interface gráfica para configuração do rp-pppoe
75Group: X11/Applications/Networking
76Requires: rp-pppoe >= 3.4
77
78%description gui
79This package contains the graphical frontend (Tk-based) for rp-pppoe.
80
81%description gui -l pl.UTF-8
82Graficzny interfejs użytkownika (oparty na Tk) dla rp-pppoe.
83
84%description gui -l pt_BR.UTF-8
85Este pacote fornece uma interface gráfica para a configuração do
86rp-pppoe.
87
88%package server
89Summary: PPPoE server
90Summary(pl.UTF-8): Serwer PPPoE
91Group: Networking/Daemons
92Requires(post,preun): /sbin/chkconfig
93Requires: ppp >= 2.4.1
94Requires: rc-scripts
95
96%description server
97PPP over Ethernet server.
98
99%description server -l pl.UTF-8
100Serwer PPP over Ethernet.
101
102%package relay
103Summary: PPPoE relay
104Summary(pl.UTF-8): Agent przekazujący pakiety PPPoE
105Group: Networking/Daemons
106Requires(post,preun): /sbin/chkconfig
107Requires: rc-scripts
108
109%description relay
110PPP over Ethernet relay.
111
112%description relay -l pl.UTF-8
113Agent przekazujący pakiety PPPoE.
114
115%prep
116%setup -q
117%patch0 -p1
118%patch1 -p1
119%patch2 -p1
120
121%build
122cd src
123%{__aclocal}
124%{__autoconf}
125%configure
126# we always want kernel mode PPPoE support in utilities
127echo '#define HAVE_LINUX_KERNEL_PPPOE 1' >> config.h
128%{__make}
129
130%install
131rm -rf $RPM_BUILD_ROOT
132
133install -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
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
144
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 docdir
149%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
150
151%clean
152rm -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
159if [ "$1" = "0" ]; then
160 %service pppoe-server stop
161 /sbin/chkconfig --del pppoe-server
162fi
163
164%post relay
165/sbin/chkconfig --add pppoe-relay
166%service pppoe-relay restart "PPPoE relay daemon"
167
168%preun relay
169if [ "$1" = "0" ]; then
170 %service pppoe-relay stop
171 /sbin/chkconfig --del pppoe-relay
172fi
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
This page took 0.025692 seconds and 4 git commands to generate.