]> git.pld-linux.org Git - packages/rp-pppoe.git/blob - rp-pppoe.spec
- remove ECHO variable
[packages/rp-pppoe.git] / rp-pppoe.spec
1 Summary:        PPP Over Ethernet client
2 Summary(pl):    Klient PPP Poprzez Ethernet (PPPoE)
3 Summary(pt_BR): Protocolo PPPoE (PPP over Ethernet), usado comumente com modens xDSL
4 Summary(ru):    PPP Over Ethernet (ÐÏÄÄÅÒÖËÁ xDSL)
5 Summary(uk):    PPP Over Ethernet (ЦÄÔÒÉÍËÁ xDSL)
6 Name:           rp-pppoe
7 Version:        3.5
8 Release:        2.1
9 License:        GPL v2+
10 Group:          Networking
11 Source0:        http://www.roaringpenguin.com/pppoe/%{name}-%{version}.tar.gz
12 Source1:        %{name}-server.init
13 Source2:        %{name}-server.sysconfig
14 Source3:        %{name}-relay.init
15 Source4:        %{name}-relay.sysconfig
16 Patch0:         %{name}-ac.patch
17 Patch1:         %{name}-tkpppoe.in.patch
18 Patch2:         %{name}-enobufs.patch
19 URL:            http://www.roaringpenguin.com/pppoe/
20 BuildRequires:  automake
21 BuildRequires:  autoconf
22 Requires:       ppp >= 2.4.1
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
27 many ADSL Internet Service Providers. Roaring Penguin has a free
28 client for Linux systems to connect to PPPoE service providers.
29
30 The client is a user-mode program and does not require any kernel
31 modifications. It is fully compliant with RFC 2516, the official PPPoE
32 specification.
33
34 %description -l pl
35 PPPoE (Protokó³ Punkt-Punkt poprzez Ethernet) jest protoko³em u¿ywanym
36 przez wielu dostarczycieli us³ugi ADSL.
37
38 Klient jest programem dzia³aj±cym w przestrzeni u¿ytkownika, a to
39 oznacza, ¿e nie wymaga modyfikacji kernela. Jest w pe³ni zgodny z
40 oficjaln± specyfikacj± PPPoE - RFC 2516.
41
42 %description -l pt_BR
43 PPPoE (Point-to-Point Protocol over Ethernet) é um protocolo usado por
44 muitos provedores de acesso à internet e companhias telefÔnicas para
45 prover acesso de alta velocidade xDSL.
46
47 Este cliente é um programa user-mode que não necessita de modificações
48 no kernel. Esta implementação segue a RFC 2516, a especificação
49 oficial para PPPoE.
50
51 %description -l ru
52 PPPoE (Point-to-Point Protocol over Ethernet) - ÜÔÏ ÐÒÏÔÏËÏÌ,
53 ÉÓÐÏÌØÚÕÅÍÙÊ ÍÎÏÇÉÍÉ ADSL ISP. Roaring Penguin ÐÒÅÄÏÓÔÁ×ÌÑÅÔ
54 Ó×ÏÂÏÄÎÏÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÇÏ ËÌÉÅÎÔÁ ÄÌÑ ÐÏÄËÌÀÞÅÎÉÑ Ë ÔÁËÉÍ ISP.
55
56 ëÌÉÅÎÔ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ÐÏÌÎÏÓÔØÀ ÐÏÌØÚÏ×ÁÔÅÌØÓËÕÀ ÐÒÏÇÒÁÍÍÕ É ÎÅ
57 ÔÒÅÂÕÅÔ ËÁËÉÈ-ÌÉÂÏ ÍÏÄÉÆÉËÁÃÉÊ ÑÄÒÁ. ïΠÐÏÌÎÏÓÔØÀ ÓÏ×ÍÅÓÔÉÍ Ó RFC
58 2516, ÏÆÉÃÉÁÌØÎÏÊ ÓÐÅÃÉÆÉËÁÃÉÅÊ PPPoE.
59
60 %description -l uk
61 PPPoE (Point-to-Point Protocol over Ethernet) - ÃÅ ÐÒÏÔÏËÏÌ, ÑËÉÊ
62 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ÂÁÇÁÔØÍÁ ADSL ISP. Roaring Penguin ÎÁÄÁ¤ ×¦ÌØÎÏÇÏ
63 Ë̦¤ÎÔÁ ÄÌѠЦÄËÌÀÞÅÎÎÑ ÄÏ ÔÁËÉÈ ISP.
64
65 ë̦¤ÎÔ Ñ×ÌѤ ÓÏÂÏÀ ÐÏ×ΦÓÔÀ ËÏÒÉÓÔÕ×ÁÃØËÕ ÐÒÏÇÒÁÍÕ ¦ ÎÅ ×ÉÍÁÇÁ¤
66 ÂÕÄØ-ÑËÉÈ ÍÏÄÉƦËÁæʠÑÄÒÁ. ÷¦Î ÐÏ×ΦÓÔÀ ÓÕͦÓÎÉÊ Ú RFC 2516,
67 ÏƦæÁÌØÎÏÀ ÓÐÅÃÉƦËÁæ¤À PPPoE.
68
69 %package gui
70 Summary:        GUI front-end for rp-pppoe
71 Summary(pl):    Graficzny interfejs dla rp-pppoe
72 Summary(pt_BR): Interface gráfica para configuração do rp-pppoe
73 Group:          X11/Applications/Networking
74 Requires:       rp-pppoe >= 3.4
75
76 %description gui
77 This package contains the graphical frontend (tk-based) for rp-pppoe.
78
79 %description gui -l pl
80 Graficzny interfejs u¿ytkownika (bazuj±cy na tk) dla rp-pppoe.
81
82 %description gui -l pt_BR
83 Este pacote fornece uma interface gráfica para a configuração do
84 rp-pppoe.
85
86 %package server
87 Summary:        PPPoE server
88 Summary(pl):    Serwer PPPoE
89 Group:          Networking/Daemons
90 Requires:       ppp >= 2.4.1
91
92 %description server
93 PPP over Ethernet server.
94
95 %description -l pl server
96 Serwer PPP over Ethernet.
97
98 %package relay
99 Summary:        PPPoE relay
100 Summary(pl):    Agent przekazuj±cy pakiety PPPoE
101 Group:          Networking/Daemons
102
103 %description relay
104 PPP over Ethernet relay.
105
106 %description -l pl relay
107 Agent przekazuj±cy pakiety PPPoE.
108
109 %prep
110 %setup -q
111 %patch0 -p1
112 %patch1 -p1
113 %patch2 -p1
114
115 %build
116 cd src
117 %{__aclocal}
118 %{__autoconf}
119 %configure
120 # we always want kernel mode PPPoE support in utilities
121 echo '#define HAVE_LINUX_KERNEL_PPPOE 1' >> config.h
122 %{__make}
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126
127 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
128
129 %{__make} -C src install \
130         RPM_INSTALL_ROOT=$RPM_BUILD_ROOT
131 %{__make} -C gui install \
132         RPM_INSTALL_ROOT=$RPM_BUILD_ROOT
133
134 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/pppoe-server
135 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/pppoe-server
136 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/pppoe-relay
137 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/pppoe-relay
138
139 # This is necessary for the gui to work, but it shouldn't be done here !
140 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ppp/rp-pppoe-gui
141
142 %clean
143 rm -fr $RPM_BUILD_ROOT
144
145 %post server
146 /sbin/chkconfig --add pppoe-server
147 if [ -f /var/lock/subsys/pppoe-server ]; then
148         /etc/rc.d/init.d/pppoe-server restart 1>&2
149 else
150         echo "Run \"/etc/rc.d/init.d/pppoe-server start\" to start PPPoE daemon."
151 fi
152
153 %preun server
154 if [ "$1" = "0" ]; then
155         if [ -f /var/lock/subsys/pppoe-server ]; then
156                 /etc/rc.d/init.d/pppoe-server stop 1>&2
157         fi
158         /sbin/chkconfig --del pppoe-server
159 fi
160
161 %post relay
162 /sbin/chkconfig --add pppoe-relay
163 if [ -f /var/lock/subsys/pppoe-relay ]; then
164         /etc/rc.d/init.d/pppoe-relay restart 1>&2
165 else
166         echo "Run \"/etc/rc.d/init.d/pppoe-relay start\" to start PPPoE relay daemon."
167 fi
168
169 %preun relay
170 if [ "$1" = "0" ]; then
171         if [ -f /var/lock/subsys/pppoe-relay ]; then
172                 /etc/rc.d/init.d/pppoe-relay stop 1>&2
173         fi
174         /sbin/chkconfig --del pppoe-relay
175 fi
176
177 %files
178 %defattr(644,root,root,755)
179 %doc doc/* README
180 %attr(755,root,root) %{_sbindir}/adsl*
181 %attr(755,root,root) %{_sbindir}/pppoe
182 %attr(755,root,root) %{_sbindir}/pppoe-sniff
183
184 %config(noreplace) %{_sysconfdir}/ppp/pppoe.conf
185 %config(noreplace) %{_sysconfdir}/ppp/firewall-masq
186 %config(noreplace) %{_sysconfdir}/ppp/firewall-standalone
187 %{_mandir}/man5/*
188 %{_mandir}/man8/adsl*
189 %{_mandir}/man8/pppoe.*
190 %{_mandir}/man8/pppoe-sniff*
191
192 %files gui
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_bindir}/tkpppoe
195 %attr(755,root,root) %{_sbindir}/pppoe-wrapper
196 %dir %{_sysconfdir}/ppp/rp-pppoe-gui
197 %{_datadir}/tkpppoe
198 %{_mandir}/man1/*
199
200 %files server
201 %defattr(644,root,root,755)
202 %attr(755,root,root) %{_sbindir}/pppoe-server
203 %config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options
204 %{_mandir}/man8/pppoe-server*
205 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/pppoe-server
206 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/pppoe-server
207
208 %files relay
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_sbindir}/pppoe-relay
211 %{_mandir}/man8/pppoe-relay*
212 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/pppoe-relay
213 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/pppoe-relay
This page took 0.234784 seconds and 3 git commands to generate.