]> git.pld-linux.org Git - packages/ppp.git/blob - ppp.spec
- added/changed non-english-man-pages URL
[packages/ppp.git] / ppp.spec
1 # _with_pppoatm - with PPPoATM support (which requires kernel 2.4 and atm-devel)
2 # TODO:
3 # - fix ppp over atm
4 %define snap    20020901
5 Summary:        ppp daemon package for Linux
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(ru):    äÅÍÏΠppp
12 Summary(tr):    PPP sunucu süreci
13 Summary(zh_CN): PPP ÅäÖú͹ÜÀíÈí¼þ°ü.
14 Name:           ppp
15 Version:        2.4.2
16 Release:        0.%{snap}.3
17 Epoch:          2
18 License:        distributable
19 Group:          Networking/Daemons
20 Source0:        cvs://pserver.samba.org/ppp/%{name}-%{version}-%{snap}.tar.gz
21 # Source0-md5:  d8a577cb40eb9a6ea6e5bdf9a7fd7e91
22 Source1:        %{name}.pamd
23 Source2:        %{name}.pon
24 Source3:        %{name}.poff
25 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
26 # Source4-md5:  3801b59005bef8f52856300fe3167a64
27 Source5:        %{name}.logrotate
28 Patch0:         %{name}-make.patch
29 Patch1:         %{name}-expect.patch
30 Patch2:         %{name}-debian_scripts.patch
31 Patch3:         %{name}-static.patch
32 #http://www.sfgoth.com/~mitch/linux/atm/pppoatm/pppoatm-pppd-vs-2.4.0b2+240600.diff.gz
33 Patch4:         %{name}-pppoatm.patch
34 Patch5:         %{name}-pidfile-owner.patch
35 Patch6:         %{name}-typos.patch
36 Patch7:         %{name}-rp-pppoe-update.patch
37 Patch8:         %{name}-rp-pppoe-macaddr.patch
38 URL:            http://www.samba.org/ppp/
39 BuildRequires:  pam-devel
40 %{?_with_pppoatm:BuildRequires: linux-atm-devel}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 This is the daemon and documentation for PPP support. It requires a
45 kernel greater than 2.2.11 which is built with PPP support. The
46 default kernels include PPP support as a module. This version supports
47 IPv6, too.
48
49 %description -l de
50 Dies ist der Dämon und die Dokumentation für PPP-Support. Erfordert
51 einen Kernel höher als 2.2.11, der mit PPP-Support gebaut ist. Die
52 Standard- Red-Hat-Kernel schließen PPP-Support als Modul ein. (IPv6)
53
54 %description -l es
55 Este es el servidor y la documentación para soporte PPP. Requiere un
56 kernel superior al 2.0. Los kernels padrón de la Conectiva incluyen
57 soporte PPP como módulo.
58
59 %description -l fr
60 Ceci est le démon et la documentation pour le support PPP. Cela
61 réclame un noyau supérieur au 2.2.11 et construit avec le support PPP.
62 Le noyau par défaut de Red Hat contient le support PPP sous forme de
63 module. (IPv6)
64
65 %description -l pl
66 Pakiet zawiera demona i dokumentacjê umo¿liwiaj±c± korzystanie z
67 protoko³u PPP. Wymaga j±dra 2.2.11 - lub pó¼niejszego - z wkompilowan±
68 obs³ug± protoko³u PPP. Standardowe j±dro z dystrybucji zawiera
69 wsparcie dla PPP skompilowane jako modu³. (IPv6)
70
71 %description -l pt_BR
72 Este é o servidor e a documentação para suporte PPP. Ele requer um
73 kernel superior ao 2.0. Os kernels-padrão da Conectiva incluem suporte
74 PPP como módulo.
75
76 %description -l ru
77 äÅÍÏÎ, ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ É ÄÏËÕÍÅÎÔÁÃÉÑ ÄÌÑ ÐÏÄÄÅÒÖËÉ PPP.
78
79 %description -l tr
80 Bu paket PPP desteði için belgeler ve sunucu sürecini içerir. Çekirdek
81 sürümünun 2.2.11'dan daha yüksek olmasýný gerektirir. Öntanýmlý Red
82 Hat çekirdeði PPP desteðini bir modül olarak içerir. (IPv6)
83
84 %package plugin-devel
85 Summary:        Stuff needed to build plugins for pppd
86 Summary(pl):    Rzeczy potrzebne do budowania wtyczek dla pppd
87 Group:          Development/Libraries
88 Requires:       %{name} = %{version}
89
90 %description plugin-devel
91 Development files needed to build plugins for pppd.
92
93 %description plugin-devel -l pl
94 Pliki nag³ówkowe potrzebne do budowania wtyczek dla pppd.
95
96 %prep
97 %setup -q -n %{name}-%{version}-%{snap}
98 %patch0 -p1
99 %patch1 -p1
100 %patch2 -p1
101 %patch3 -p1
102 %{?_with_pppoatm:%patch4 -p1}
103 %patch5 -p1
104 %patch6 -p1
105 %patch7 -p1
106 %patch8 -p1
107
108 %build
109 find pppd/plugins/radius/radiusclient -exec touch "{}" ";"
110 %configure
111 %{__make} \
112         OPT_FLAGS="%{rpmcflags}" \
113         CC=%{__cc}
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_mandir}/man{1,8}} \
118         $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,ppp/peers},/var/log} \
119         $RPM_BUILD_ROOT/etc/logrotate.d \
120         $RPM_BUILD_ROOT/%{_includedir}/pppd
121
122 %{__make} install \
123         DESTDIR=$RPM_BUILD_ROOT
124
125 install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/pon
126 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/poff
127 install debian/plog $RPM_BUILD_ROOT%{_bindir}
128
129 install etc.ppp/chap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
130 install debian/pap-secrets $RPM_BUILD_ROOT%{_sysconfdir}/ppp
131 install debian/options $RPM_BUILD_ROOT%{_sysconfdir}/ppp
132 install debian/options.ttyXX $RPM_BUILD_ROOT%{_sysconfdir}/ppp
133
134 install pppd/patchlevel.h $RPM_BUILD_ROOT/%{_includedir}/pppd
135 install pppd/pppd.h $RPM_BUILD_ROOT/%{_includedir}/pppd
136
137 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
138
139 install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/ppp
140 > $RPM_BUILD_ROOT/var/log/ppp.log
141
142 rm -f scripts/README
143
144 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ppp
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %post   -p /sbin/ldconfig
150 %postun -p /sbin/ldconfig
151
152 %files
153 %defattr(644,root,root,755)
154 %doc README.linux debian/README.debian scripts
155 %doc debian/win95.ppp README.MSCHAP8* FAQ debian/ppp-2.3.0.STATIC.README
156 %doc README.MPPE README.pppoe README.cbcp README.pwfd TODO
157 %attr(755,root,root) %{_bindir}/*
158 %attr(755,root,root) %{_sbindir}/chat
159 %attr(755,root,root) %{_sbindir}/ppp*
160 %dir %{_libdir}/pppd
161 %dir %{_libdir}/pppd/*.*
162 %attr(755,root,root) %{_libdir}/pppd/*.*/minconn.so
163 %attr(755,root,root) %{_libdir}/pppd/*.*/pass*.so
164 %attr(755,root,root) %{_libdir}/pppd/*.*/rp-pppoe.so
165 %attr(755,root,root) %{_libdir}/pppd/*.*/rad*.so
166 %{?_with_pppoatm:%attr(755,root,root) %{_libdir}/pppd/*.*/pppoatm.so}
167
168 %{_mandir}/man8/*
169 %lang(fr) %{_mandir}/fr/man8/*
170 %lang(ja) %{_mandir}/ja/man8/*
171 %lang(ko) %{_mandir}/ko/man8/*
172 %lang(pl) %{_mandir}/pl/man8/*
173
174 %attr(600,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/*-secrets
175 %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ppp/options*
176 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/ppp
177 %attr(640,root,root) /etc/logrotate.d/ppp
178 %attr(640,root,root) %ghost /var/log/ppp.log
179
180 %dir %{_sysconfdir}/ppp/peers
181
182 %files plugin-devel
183 %defattr(644,root,root,755)
184 %dir %{_includedir}/pppd
185 %{_includedir}/pppd/pppd.h
186 %{_includedir}/pppd/patchlevel.h
This page took 0.057973 seconds and 4 git commands to generate.