]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- Fix descriptions of _with_ppp*.
[packages/ppp.git] / ppp.spec
1 #
2 # _with_pppoe - with PPPoE support (which requires kernel 2.4)
3 # _with_pppoatm - with PPPoATM support (which requires kernel 2.4 and atm-devel)
4 # _without_cbcp - without CBCP (MS CallBack Configuration Protocol)
5 Summary:        ppp daemon package for Linu
6 Summary(de):    ppp-Dämonpaket für Linux
7 Summary(es):    Servidor ppp para Linux
8 Summary(fr):    Paquetage du démon ppp pour Linux
9 Summary(pl):    Demon PPP dla Linuksa
10 Summary(pt_BR): Servidor ppp para Linux
11 Summary(tr):    PPP sunucu süreci
12 Name:           ppp
13 Version:        2.4.1
14 Release:        4
15 Epoch:          2
16 License:        distributable
17 Group:          Networking/Daemons
18 Group(de):      Netzwerkwesen/Server
19 Group(pl):      Sieciowe/Serwery
20 Source0:        ftp://ftp.linuxcare.com.au/pub/ppp/%{name}-%{version}.tar.gz
21 Source1:        %{name}.pamd
22 Source2:        %{name}.pon
23 Source3:        %{name}.poff
24 Source4:        %{name}-non-english-man-pages.tar.bz2
25 Patch0:         %{name}-make.patch
26 Patch1:         %{name}-expect.patch
27 Patch2:         %{name}-debian_scripts.patch
28 Patch3:         %{name}-static.patch
29 Patch4:         %{name}-CBCP.patch
30 Patch5:         %{name}-pam_session.patch
31 Patch6:         %{name}-wtmp.patch
32 Patch7:         %{name}-opt.patch
33 Patch8:         http://www.shoshin.uwaterloo.ca/~mostrows/%{name}-2.4.1-%{name}oe.patch2
34 Patch9:         %{name}-opt-%{name}oe.patch
35 #http://www.sfgoth.com/~mitch/linux/atm/pppoatm/pppoatm-pppd-vs-2.4.0b2+240600.diff.gz
36 Patch10:        %{name}-%{name}oatm.patch
37 Patch11:        %{name}-reap.patch
38 Patch12:        %{name}-warnings.patch
39 URL:            http://www.samba.org/ppp/
40 BuildRequires:  pam-devel
41 %{?_with_pppoatm:BuildRequires: atm-devel}
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 This is the daemon and documentation for PPP support. It requires a
46 kernel greater than 2.2.11 which is built with PPP support. The
47 default kernels include PPP support as a module. This version supports
48 IPv6, too.
49
50 %description -l de
51 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
52 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
53 Standard- Red-Hat-Kernel schließen PPP-Support als Modul ein. (IPv6)
54
55 %description -l es
56 Este es el servidor y la documentación para soporte PPP. Requiere un
57 kernel superior al 2.0. Los kernels padrón de la Conectiva incluyen
58 soporte PPP como módulo.
59
60 %description -l fr
61 Ceci est le démon et la documentation pour le support PPP. Cela
62 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
63 Le noyau par défaut de Red Hat contient le support PPP sous forme de
64 module. (IPv6)
65
66 %description -l pl
67 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
68 protoko³u PPP. Wymaga j±dra 2.2.11 - lub wy¿szych - z wkompilowan±
69 obs³ug± protoko³u PPP. Standardowe j±dro z dytrybucji zawiera wsparcie
70 dla PPP skompilowane jako modu³. (IPv6)
71
72 %description -l pt_BR
73 Este é o servidor e a documentação para suporte PPP. Ele requer um
74 kernel superior ao 2.0. Os kernels-padrão da Conectiva incluem suporte
75 PPP como módulo.
76
77 %description -l tr
78 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
79 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir. Öntanýmlý Red
80 Hat çekirdeði PPP desteðini bir modül olarak içerir. (IPv6)
81
82 %package pppoatm
83 Summary:        PPP Over ATM plugin
84 Summary(pl):    Wtyczka PPP-po-ATM
85 Group:          Networking/Daemons
86 Group(de):      Netzwerkwesen/Server
87 Group(pl):      Sieciowe/Serwery
88 Requires:       %{name} = %{version}
89
90 %description pppoatm
91 PPP Over ATM plugin.
92
93 %description pppoatm -l pl
94 Wtyczka PPP-po-ATM.
95
96 %prep
97 %setup -q
98 %patch0 -p1
99 %patch1 -p1
100 %patch2 -p1
101 %patch3 -p1
102 %patch4 -p1
103 %patch5 -p1
104 %patch6 -p1
105 %{!?_with_pppoe:%patch7 -p1}
106 %{?_with_pppoe:%patch8 -p1}
107 %{?_with_pppoe:%patch9 -p1}
108 %{?_with_pppoatm:%patch10 -p1}
109 %patch11 -p1
110 %patch12 -p1
111
112 %build
113 %configure
114 %{__make} OPT_FLAGS="%{rpmcflags}" \
115         CC=%{__cc} \
116         %{!?_without_cbcp:CBCP=1}
117
118 %install
119 rm -rf $RPM_BUILD_ROOT
120 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,8}} \
121         $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,ppp/peers}
122
123 %{__make} install \
124         DESTDIR=$RPM_BUILD_ROOT
125
126 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
127 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
128 install debian/plog $RPM_BUILD_ROOT%{_bindir}
129
130 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
131 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
132 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
133 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
134
135 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
136
137 rm -f scripts/README
138
139 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
140
141 gzip -9nf README.linux debian/README.debian debian/win95.ppp \
142         README.MSCHAP80 FAQ debian/ppp-2.3.0.STATIC.README
143
144 %clean
145 rm -rf $RPM_BUILD_ROOT
146
147 %files
148 %defattr(644,root,root,755)
149 %doc {README.linux,debian/README.debian}.gz scripts
150 %doc {debian/win95.ppp,README.MSCHAP80,FAQ,debian/ppp-2.3.0.STATIC.README}.gz
151 %attr(755,root,root) %{_bindir}/*
152 %attr(755,root,root) %{_sbindir}/chat
153 %attr(755,root,root) %{_sbindir}/pppstats
154 %attr(755,root,root) %{_sbindir}/pppd
155 %if %{?_with_pppoatm:1}%{!?_with_pppoatm:0}%{?_with_pppoatm:1}%{!?_with_pppoatm:0}
156 %dir %{_libdir}/pppd
157 %dir %{_libdir}/pppd/%{version}
158 %endif
159 %{?_with_pppoatm:%attr(755,root,root) %{_libdir}/pppd/%{version}/minconn.so}
160 %{?_with_pppoatm:%attr(755,root,root) %{_libdir}/pppd/%{version}/passprompt.so}
161 %{?_with_pppoe:%attr(755,root,root) %{_libdir}/pppd/%{version}/pppoe.so}
162 %{_mandir}/man8/*
163 %lang(fr) %{_mandir}/fr/man8/*
164 %lang(ja) %{_mandir}/ja/man8/*
165 %lang(ko) %{_mandir}/ko/man8/*
166 %lang(pl) %{_mandir}/pl/man8/*
167
168 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/*-secrets
169 %attr(644,root,root) %config(missingok) %verify(not md5 size mtime) %{_sysconfdir}/ppp/options*
170 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/pam.d/ppp
171
172 %dir %{_sysconfdir}/ppp/peers
173
174 %{?_with_pppoatm:%files pppoatm}
175 %{?_with_pppoatm:%defattr(644,root,root,755)}
176 %{?_with_pppoatm:%attr(755,root,root) %{_libdir}/pppd/%{version}/pppoatm.so}
This page took 0.040865 seconds and 4 git commands to generate.