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