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