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