]> git.pld-linux.org Git - packages/courier-authlib.git/blob - courier-authlib.spec
- without_ldap bcond added
[packages/courier-authlib.git] / courier-authlib.spec
1 #
2 # Conditional build:
3 %bcond_without  ldap            # do not include LDAP support
4
5 Summary:        Courier authentication library
6 Summary(pl.UTF-8):      Biblioteka uwierzytelniania Couriera
7 Name:           courier-authlib
8 Version:        0.63.0
9 Release:        4
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
13 # Source0-md5:  411a927d178f783a1e8fab9964ce0dd2
14 Source1:        %{name}.init
15 Patch0:         %{name}-md5sum-passwords.patch
16 Patch1:         %{name}-authdaemonrc.patch
17 Patch2:         %{name}-nostatic.patch
18 Patch3:         %{name}-ltdl.patch
19 URL:            http://www.courier-mta.org/authlib/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  db-devel
23 BuildRequires:  expect
24 BuildRequires:  libltdl-devel
25 BuildRequires:  libtool
26 BuildRequires:  mysql-devel
27 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
28 BuildRequires:  pam-devel
29 BuildRequires:  postgresql-devel
30 BuildRequires:  rpmbuild(macros) >= 1.304
31 BuildRequires:  sysconftool
32 BuildRequires:  zlib-devel
33 Requires(post,postun):  /sbin/ldconfig
34 Requires(post,preun):   /sbin/chkconfig
35 Requires:       %{name}-libs = %{version}-%{release}
36 Requires:       /sbin/chkconfig
37 Requires:       rc-scripts
38 Obsoletes:      sqwebmail-auth-cram
39 Obsoletes:      sqwebmail-auth-pam
40 Obsoletes:      sqwebmail-auth-pwd
41 Obsoletes:      sqwebmail-auth-shadow
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %define         schemadir       /usr/share/openldap/schema
45
46 %description
47 The Courier authentication library provides authentication services
48 for other Courier applications.
49
50 %description -l pl.UTF-8
51 Biblioteka uwierzytelniania Couriera dostarcza usługi uwierzytelniania
52 dla innych aplikacji Couriera.
53
54 %package libs
55 Summary:        Courier authentication library
56 Summary(pl.UTF-8):      Biblioteka uwierzytelniania Couriera
57 Group:          Libraries
58 Requires(post,postun):  /sbin/ldconfig
59
60 %description libs
61 The Courier authentication library provides authentication services
62 for other Courier applications.
63
64 This package contains libcourierauth.so which client programs link
65 against.
66
67 %description libs -l pl.UTF-8
68 Biblioteka uwierzytelniania Couriera dostarcza usługi uwierzytelniania
69 dla innych aplikacji Couriera.
70
71 %package devel
72 Summary:        Development files for the Courier authentication library
73 Summary(pl.UTF-8):      Pliki programistyczne dla biblioteki uwierzytelniania Couriera
74 Group:          Development/Libraries
75 Requires:       %{name} = %{version}-%{release}
76 %{?with_ldap:Requires:  %{name}-authldap = %{version}-%{release}}
77 Requires:       %{name}-authmysql = %{version}-%{release}
78 Requires:       %{name}-authpgsql = %{version}-%{release}
79 Requires:       %{name}-authuserdb = %{version}-%{release}
80 Requires:       %{name}-authpipe = %{version}-%{release}
81
82 %description devel
83 This package contains the development files needed to compile Courier
84 packages that use this authentication library. Install this package in
85 order to build the rest of the Courier packages. After they are built
86 and installed this package can be removed. Files in this package are
87 not needed at runtime.
88
89 %description devel -l pl.UTF-8
90 Ten pakiet zawiera pliki programistyczne potrzebne do kompilacji
91 pakietów Couriera używających biblioteki uwierzytelniania. Należy go
92 zainstalować aby zbudować resztę pakietów Couriera. Po ich zbudowaniu
93 i zainstalowaniu ten pakiet można usunąć. Pliki z tego pakietu nie są
94 potrzebne w czasie działania programów.
95
96 %package authldap
97 Summary:        LDAP support for the Courier authentication library
98 Summary(pl.UTF-8):      Obsługa LDAP dla biblioteki uwierzytelniania Couriera
99 Group:          Networking/Daemons
100 Requires(pre,postun):   sed >= 4.0
101 Requires:       %{name} = %{version}-%{release}
102 Obsoletes:      courier-authldap
103 Obsoletes:      courier-imap-authldap
104 Obsoletes:      sqwebmail-auth-ldap
105
106 %description authldap
107 This package installs LDAP support for the Courier authentication
108 library. Install this package in order to be able to authenticate
109 using LDAP.
110
111 %description authldap -l pl.UTF-8
112 Ten pakiet dodaje obsługę LDAP do biblioteki uwierzytelniania
113 Couriera. Należy go zainstalować aby móc uwierzytelniać się z użyciem
114 LDAP.
115
116 %package authmysql
117 Summary:        MySQL support for the Courier authentication library
118 Summary(pl.UTF-8):      Obsługa MySQL dla biblioteki uwierzytelniania Couriera
119 Group:          Networking/Daemons
120 Requires(pre,postun):   sed >= 4.0
121 Requires:       %{name} = %{version}-%{release}
122 Obsoletes:      courier-authmysql
123 Obsoletes:      courier-imap-authmysql
124 Obsoletes:      sqwebmail-auth-mysql
125
126 %description authmysql
127 This package installs MySQL support for the Courier authentication
128 library. Install this package in order to be able to authenticate
129 using MySQL.
130
131 %description authmysql -l pl.UTF-8
132 Ten pakiet dodaje obsługę MySQL do biblioteki uwierzytelniania
133 Couriera. Należy go zainstalować aby móc uwierzytelniać się z użyciem
134 MySQL.
135
136 %package authpgsql
137 Summary:        PostgreSQL support for the Courier authentication library
138 Summary(pl.UTF-8):      Obsługa PostgreSQL dla biblioteki uwierzytelniania Couriera
139 Group:          Networking/Daemons
140 Requires(pre,postun):   sed >= 4.0
141 Requires:       %{name} = %{version}-%{release}
142 Obsoletes:      courier-authpgsql
143 Obsoletes:      courier-imap-authpgsql
144 Obsoletes:      sqwebmail-auth-pgsql
145
146 %description authpgsql
147 This package installs PostgreSQL support for the Courier
148 authentication library. Install this package in order to be able to
149 authenticate using PostgreSQL.
150
151 %description authpgsql -l pl.UTF-8
152 Ten pakiet dodaje obsługę PostgreSQL do biblioteki uwierzytelniania
153 Couriera. Należy go zainstalować aby móc uwierzytelniać się z użyciem
154 PostgreSQL.
155
156 %package authuserdb
157 Summary:        Userdb support for the Courier authentication library
158 Summary(pl.UTF-8):      Obsługa userdb dla biblioteki uwierzytelniania Couriera
159 Group:          Networking/Daemons
160 Requires(pre,postun):   sed >= 4.0
161 Requires:       %{name} = %{version}-%{release}
162 Obsoletes:      courier-authlib-userdb
163 Obsoletes:      courier-imap-userdb
164 Obsoletes:      sqwebmail-auth-userdb
165
166 %description authuserdb
167 This package installs the userdb support for the Courier
168 authentication library. Userdb is a simple way to manage virtual mail
169 accounts using a GDBM-based database file.
170
171 Install this package in order to be able to authenticate with userdb.
172
173 %description authuserdb -l pl.UTF-8
174 Ten pakiet dodaje obsługę userdb do biblioteki uwierzytelniania
175 Couriera. Userdb to prosty sposób zarządzania wirtualnymi kontami
176 pocztowymi przy użyciu pliku bazy danych opartej na GDBM.
177
178 Należy go zainstalować aby móc uwierzytelniać się z użyciem userdb.
179
180 %package authpipe
181 Summary:        External authentication module that communicates via pipes
182 Summary(pl.UTF-8):      Zewnętrzny moduł uwierzytelniający komunikujący się przez potoki
183 Group:          Networking/Daemons
184 Requires(pre,postun):   sed >= 4.0
185 Requires:       %{name} = %{version}-%{release}
186 Obsoletes:      courier-authlib-authpipe
187
188 %description authpipe
189 This package installs the authpipe module, which is a generic plugin
190 that enables authentication requests to be serviced by an external
191 program, then communicates through messages on stdin and stdout.
192
193 %description authpipe -l pl.UTF-8
194 Pakiet ten instaluje moduł authpipe, który jest ogólną wtyczką
195 umożliwiającą obsługę żądań uwierzytelnienia przez zewnętrzny program
196 komunikujący się poprzez wiadomości wysyłane na stdin i stdout.
197
198 %package -n openldap-schema-courier
199 Summary:        Courier LDAP schema
200 Summary(pl.UTF-8):      Schemat LDAP Couriera
201 Group:          Networking/Daemons
202 Requires(post,postun):  sed >= 4.0
203 Requires:       openldap-servers
204 Requires:       sed >= 4.0
205
206 %description -n openldap-schema-courier
207 This package contains Courier authldap.schema for openldap.
208
209 %description -n openldap-schema-courier -l pl.UTF-8
210 Ten pakiet zawiera schemat Couriera authldap.schema dla openldapa.
211
212 %prep
213 %setup -q
214 %patch0 -p1
215 %patch1 -p1
216 %patch2 -p1
217 %patch3 -p1
218
219 rm -rf libltdl
220
221 %build
222 # Change Makefile.am files and force recreate Makefile.in's.
223 OLDDIR=`pwd`
224 find -type f -a \( -name configure.in -o -name configure.ac \) | while read FILE; do
225         cd "`dirname "$FILE"`"
226
227         if [ -f Makefile.am ]; then
228                 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
229         fi
230
231         %{__libtoolize}
232         %{__aclocal}
233         %{__autoconf}
234         if grep -q AC_CONFIG_HEADER configure.in; then
235                 %{__autoheader}
236         fi
237         %{__automake}
238
239         cd "$OLDDIR"
240 done
241
242 %configure \
243         --enable-ltdl-install=no \
244         %{!?with_ldap:--without-authldap} \
245         --with-db=db \
246         --with-mailuser=daemon \
247         --with-mailgroup=daemon
248
249 %{__make} -j1 \
250         LDFLAGS="%{rpmldflags} -lcrypt"
251
252 %install
253 rm -rf $RPM_BUILD_ROOT
254
255 %{__make} -j1 install \
256         DESTDIR=$RPM_BUILD_ROOT
257
258 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/authlib/userdb,%{schemadir},%{_bindir}}
259
260 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-authlib
261 install authldap.schema $RPM_BUILD_ROOT%{schemadir}/courier.schema
262 install makedat/makedat $RPM_BUILD_ROOT%{_bindir}/makedat
263
264 # make config files
265 ./sysconftool $RPM_BUILD_ROOT%{_sysconfdir}/authlib/*.dist
266 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/authlib/*.dist
267
268 touch $RPM_BUILD_ROOT%{_localstatedir}/spool/authdaemon/socket
269
270 # remove static library - for now
271 rm $RPM_BUILD_ROOT%{_libdir}/courier-authlib/*.a
272
273 %clean
274 rm -rf $RPM_BUILD_ROOT
275
276 %post
277 /sbin/ldconfig %{_libexecdir}/courier-authlib
278 /sbin/chkconfig --add courier-authlib
279
280 %service courier-authlib restart "authlib daemon"
281
282 %preun
283 if [ "$1" = "0" ]; then
284         /sbin/chkconfig --del courier-authlib
285         %service courier-authlib stop
286 fi
287
288 %postun
289 /sbin/ldconfig %{_libexecdir}/courier-authlib
290
291 %post libs
292 /sbin/ldconfig %{_libexecdir}/courier-authlib
293
294 %postun libs
295 /sbin/ldconfig %{_libexecdir}/courier-authlib
296
297 %post authldap
298 if [ "$1" = 1 ]; then
299         # add to authmodulelist list if package is first installed
300         %{__sed} -i -e '/^authmodulelist=/{/\bauthldap\b/!s/"$/ authldap"/}' /etc/authlib/authdaemonrc
301 fi
302 /sbin/ldconfig %{_libexecdir}/courier-authlib
303 %service -q courier-authlib restart
304
305 %postun authldap
306 if [ "$1" = 0 ]; then
307         # remove from authmodulelist if package is removed
308         %{__sed} -i -e '/^authmodulelist=/{s/ \?\bauthldap\b \?//}' /etc/authlib/authdaemonrc
309 fi
310 /sbin/ldconfig %{_libexecdir}/courier-authlib
311 %service -q courier-authlib restart
312
313 %post authmysql
314 if [ "$1" = 1 ]; then
315         # add to authmodulelist list if package is first installed
316         %{__sed} -i -e '/^authmodulelist=/{/\bauthmysql\b/!s/"$/ authmysql"/}' /etc/authlib/authdaemonrc
317 fi
318 /sbin/ldconfig %{_libexecdir}/courier-authlib
319 %service -q courier-authlib restart
320
321 %postun authmysql
322 if [ "$1" = 0 ]; then
323         # remove from authmodulelist if package is removed
324         %{__sed} -i -e '/^authmodulelist=/{s/ \?\bauthmysql\b \?//}' /etc/authlib/authdaemonrc
325 fi
326 /sbin/ldconfig %{_libexecdir}/courier-authlib
327 %service -q courier-authlib restart
328
329 %post authpgsql
330 if [ "$1" = 1 ]; then
331         # add to authmodulelist list if package is first installed
332         %{__sed} -i -e '/^authmodulelist=/{/\bauthpgsql\b/!s/"$/ authpgsql"/}' /etc/authlib/authdaemonrc
333 fi
334 /sbin/ldconfig %{_libexecdir}/courier-authlib
335 %service -q courier-authlib restart
336
337 %postun authpgsql
338 if [ "$1" = 0 ]; then
339         # remove from authmodulelist if package is removed
340         %{__sed} -i -e '/^authmodulelist=/{s/ \?\bauthpgsql\b \?//}' /etc/authlib/authdaemonrc
341 fi
342 /sbin/ldconfig %{_libexecdir}/courier-authlib
343 %service -q courier-authlib restart
344
345 %post authuserdb
346 if [ "$1" = 1 ]; then
347         # add to authmodulelist list if package is first installed
348         %{__sed} -i -e '/^authmodulelist=/{/\buserdb\b/!s/"$/ userdb"/}' /etc/authlib/authdaemonrc
349 fi
350 /sbin/ldconfig %{_libexecdir}/courier-authlib
351 %service -q courier-authlib restart
352
353 %postun authuserdb
354 if [ "$1" = 0 ]; then
355         # remove from authmodulelist if package is removed
356         %{__sed} -i -e '/^authmodulelist=/{s/ \?\buserdb\b \?//}' /etc/authlib/authdaemonrc
357 fi
358 /sbin/ldconfig %{_libexecdir}/courier-authlib
359 %service -q courier-authlib restart
360
361 %post authpipe
362 if [ "$1" = 1 ]; then
363         # add to authmodulelist list if package is first installed
364         %{__sed} -i -e '/^authmodulelist=/{/\bpipe\b/!s/"$/ pipe"/}' /etc/authlib/authdaemonrc
365 fi
366 /sbin/ldconfig %{_libexecdir}/courier-authlib
367 %service -q courier-authlib restart
368
369 %postun authpipe
370 if [ "$1" = 0 ]; then
371         # remove from authmodulelist if package is removed
372         %{__sed} -i -e '/^authmodulelist=/{s/ \?\bpipe\b \?//}' /etc/authlib/authdaemonrc
373 fi
374 /sbin/ldconfig %{_libexecdir}/courier-authlib
375 %service -q courier-authlib restart
376
377 %post -n openldap-schema-courier
378 %openldap_schema_register %{schemadir}/courier.schema -d nis,cosine
379 %service -q ldap restart
380
381 %postun -n openldap-schema-courier
382 if [ "$1" = "0" ]; then
383         %openldap_schema_unregister %{schemadir}/courier.schema
384         %service -q ldap restart
385 fi
386
387 %triggerin -- courier < 0.48
388 if [ -f /etc/courier/authdaemonrc ]; then
389         . /etc/courier/authdaemonrc
390
391         %{__sed} -i s/^authmodulelist=.*/"authmodulelist=\"`echo $authmodulelist \
392                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
393         %{__sed} -i s/^authmodulelistorig=.*/"authmodulelistorig=\"`echo $authmodulelistorig\
394                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
395         %{__sed} -i s/^daemons=.*/"daemons=$daemons"/ /etc/authlib/authdaemonrc
396 fi
397 if [ -f /var/lock/subsys/courier ]; then
398         if [ -f /var/spool/courier/authdaemon/pid ]; then
399                 kill `cat /var/spool/courier/authdaemon/pid`
400                 rm -f /var/spool/courier/authdaemon/*
401                 /sbin/service courier-authlib start
402         fi
403 fi
404
405 %triggerin -- courier-imap-common < 4.0.0
406 if [ -f /etc/courier-imap/authdaemonrc ]; then
407         . /etc/courier-imap/authdaemonrc
408
409         %{__sed} -i s/^authmodulelist=.*/"authmodulelist=\"`echo $authmodulelist \
410                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
411         %{__sed} -i s/^authmodulelistorig=.*/"authmodulelistorig=\"`echo $authmodulelistorig\
412                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
413         %{__sed} -i s/^daemons=.*/"daemons=$daemons"/ /etc/authlib/authdaemonrc
414 fi
415 if [ -f /var/lock/subsys/courier-imap ]; then
416         if [ -f /var/lib/authdaemon/pid ]; then
417                 kill `cat /var/lib/authdaemon/pid`
418                 rm -f /var/lib/authdaemon/*
419                 /sbin/service courier-authlib start
420         fi
421 fi
422
423 %triggerin -- sqwebmail < 5.0.0
424 if [ -f /etc/sqwebmail/authdaemonrc ]; then
425         . /etc/sqwebmail/authdaemonrc
426
427         %{__sed} -i s/^authmodulelist=.*/"authmodulelist=\"`echo $authmodulelist \
428                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
429         %{__sed} -i s/^authmodulelistorig=.*/"authmodulelistorig=\"`echo $authmodulelistorig\
430                 | sed s/'authcram'/''/ | sed s/'  '/' '/`\""/ /etc/authlib/authdaemonrc
431         %{__sed} -i s/^daemons=.*/"daemons=$daemons"/ /etc/authlib/authdaemonrc
432 fi
433 if [ -f /var/lock/subsys/sqwebmail ]; then
434         if [ -f /var/spool/sqwebmail/authdaemon/pid ]; then
435                 kill `cat /var/spool/sqwebmail/authdaemon/pid`
436                 rm -f /var/spool/sqwebmail/authdaemon/*
437                 /sbin/service courier-authlib start
438         fi
439 fi
440
441 %triggerin -n %{name}-authldap -- courier-authldap < 0.48
442 if [ -f /etc/courier/authldaprc ]; then
443         mv -f /etc/authlib/authldaprc /etc/authlib/authldaprc.new
444         cp -f /etc/courier/authldaprc /etc/authlib/authldaprc
445         %service -q courier-authlib restart
446 fi
447
448 %triggerin -n %{name}-authldap -- courier-imap-authldap < 4.0.0
449 if [ -f /etc/courier-imap/authldaprc ]; then
450         mv -f /etc/authlib/authldaprc /etc/authlib/authldaprc.new
451         cp -f /etc/courier-imap/authldaprc /etc/authlib/authldaprc
452         %service -q courier-authlib restart
453 fi
454
455 %triggerin -n %{name}-authldap -- sqwebmail-auth-ldap < 5.0.0
456 if [ -f /etc/sqwebmail/authldaprc ]; then
457         mv -f /etc/authlib/authldaprc /etc/authlib/authldaprc.new
458         cp -f /etc/sqwebmail/authldaprc /etc/authlib/authldaprc
459         %service -q courier-authlib restart
460 fi
461
462 %triggerin -n %{name}-authmysql -- courier-authmysql < 0.48
463 if [ -f /etc/courier/authmysqlrc ]; then
464         mv -f /etc/authlib/authmysqlrc /etc/authlib/authmysqlrc.new
465         cp -f /etc/courier/authmysqlrc /etc/authlib/authmysqlrc
466         %service -q courier-authlib restart
467 fi
468
469 %triggerin -n %{name}-authmysql -- courier-imap-authmysql < 4.0.0
470 if [ -f /etc/courier-imap/authmysqlrc ]; then
471         mv -f /etc/authlib/authmysqlrc /etc/authlib/authmysqlrc.new
472         cp -f /etc/courier-imap/authmysqlrc /etc/authlib/authmysqlrc
473         %service -q courier-authlib restart
474 fi
475
476 %triggerin -n %{name}-authmysql -- sqwebmail-auth-mysql < 5.0.0
477 if [ -f /etc/sqwebmail/authmysqlrc ]; then
478         mv -f /etc/authlib/authmysqlrc /etc/authlib/authmysqlrc.new
479         cp -f /etc/sqwebmail/authmysqlrc /etc/authlib/authmysqlrc
480         %service -q courier-authlib restart
481 fi
482
483 %triggerin -n %{name}-authpgsql -- courier-authpgsql < 0.48
484 if [ -f /etc/courier/authpgsqlrc ]; then
485         mv -f /etc/authlib/authpgsqlrc /etc/authlib/authpgsqlrc.new
486         cp -f /etc/courier/authpgsqlrc /etc/authlib/authpgsqlrc
487         %service -q courier-authlib restart
488 fi
489
490 %triggerin -n %{name}-authpgsql -- courier-imap-authpgsql < 4.0.0
491 if [ -f /etc/courier-imap/authpgsqlrc ]; then
492         mv -f /etc/authlib/authpgsqlrc /etc/authlib/authpgsqlrc.new
493         cp -f /etc/courier-imap/authpgsqlrc /etc/authlib/authpgsqlrc
494         %service -q courier-authlib restart
495 fi
496
497 %triggerin -n %{name}-authpgsql -- sqwebmail-auth-pgsql < 5.0.0
498 if [ -f /etc/sqwebmail/authpgsqlrc ]; then
499         mv -f /etc/authlib/authpgsqlrc /etc/authlib/authpgsqlrc.new
500         cp -f /etc/sqwebmail/authpgsqlrc /etc/authlib/authpgsqlrc
501         %service -q courier-authlib restart
502 fi
503
504 %triggerin -n %{name}-authuserdb -- courier < 0.48
505 if [ -d /etc/courier/userdb ]; then
506         mv -f /etc/courier/userdb/* /etc/authlib/userdb
507         makeuserdb
508 fi
509 if [ -f /etc/courier/userdb ]; then
510         mv -f /etc/courier/userdb /etc/authlib/userdb
511         makeuserdb
512 fi
513
514 %triggerin -n %{name}-authuserdb -- courier-imap-userdb < 4.0.0
515 if [ -d /etc/courier-imap/userdb ]; then
516         mv -f /etc/courier-imap/userdb/* /etc/authlib/userdb
517         makeuserdb
518 fi
519 if [ -f /etc/courier-imap/userdb ]; then
520         mv -f /etc/courier-imap/userdb /etc/authlib/userdb
521         makeuserdb
522 fi
523
524 %triggerin -n %{name}-authuserdb -- sqwebmail-auth-userdb < 5.0.0
525 if [ -d /etc/sqwebmail/userdb ]; then
526         mv -f /etc/sqwebmail/userdb/* /etc/authlib/userdb
527         makeuserdb
528 fi
529 if [ -f /etc/sqwebmail/userdb ]; then
530         mv -f /etc/sqwebmail/userdb /etc/authlib/userdb
531         makeuserdb
532 fi
533
534 %files
535 %defattr(644,root,root,755)
536 # COPYING contains only note
537 %doc AUTHORS COPYING ChangeLog NEWS README README*html README.authmysql.myownquery authldap.schema
538 %attr(755,root,root) %{_bindir}/makedat
539 %dir %{_sysconfdir}/authlib
540 %attr(754,root,root) /etc/rc.d/init.d/courier-authlib
541 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/authlib/authdaemonrc
542 %attr(755,root,root) %{_libexecdir}/courier-authlib/authdaemond
543 %attr(755,root,root) %{_libexecdir}/courier-authlib/authsystem.passwd
544 %attr(755,root,root) %{_libexecdir}/courier-authlib/makedatprog
545 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthcustom.so
546 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthcustom.so.0
547 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthpam.so
548 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthpam.so.0
549 %attr(755,root,root) %{_libexecdir}/courier-authlib/libcourierauthcommon.so
550 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libcourierauthcommon.so.0
551 %attr(755,root,root) %{_libexecdir}/courier-authlib/libcourierauthsasl.so
552 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libcourierauthsasl.so.0
553 %attr(755,root,root) %{_libexecdir}/courier-authlib/libcourierauthsaslclient.so
554 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libcourierauthsaslclient.so.0
555 %{_libexecdir}/courier-authlib/libauthcustom.la
556 %{_libexecdir}/courier-authlib/libauthpam.la
557 %{_libexecdir}/courier-authlib/libcourierauth.la
558 %{_libexecdir}/courier-authlib/libcourierauthcommon.la
559 %{_libexecdir}/courier-authlib/libcourierauthsasl.la
560 %{_libexecdir}/courier-authlib/libcourierauthsaslclient.la
561 %attr(770,root,daemon) %dir %{_localstatedir}/spool/authdaemon
562 %attr(777,root,root) %ghost %{_localstatedir}/spool/authdaemon/socket
563 %attr(755,root,root) %{_sbindir}/authdaemond
564 %attr(755,root,root) %{_sbindir}/authenumerate
565 %attr(755,root,root) %{_sbindir}/authpasswd
566 %attr(755,root,root) %{_sbindir}/authtest
567 %attr(755,root,root) %{_sbindir}/courierlogger
568 %{_mandir}/man1/*
569
570 %files libs
571 %defattr(644,root,root,755)
572 %dir %{_libexecdir}/courier-authlib
573 %attr(755,root,root) %{_libexecdir}/courier-authlib/libcourierauth.so
574 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libcourierauth.so.0
575
576 %files devel
577 %defattr(644,root,root,755)
578 %doc authlib.html auth_*.html
579 %attr(755,root,root) %{_bindir}/courierauthconfig
580 %{_includedir}/*
581 %{_mandir}/man3/*
582 %attr(755,root,root) %{_libexecdir}/courier-authlib/*.so
583
584 %if %{with ldap}
585 %files authldap
586 %defattr(644,root,root,755)
587 %doc authldap.schema README.ldap
588 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/authlib/authldaprc
589 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthldap.so
590 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthldap.so.0
591 %{_libexecdir}/courier-authlib/libauthldap.la
592 %endif
593
594 %files authmysql
595 %defattr(644,root,root,755)
596 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/authlib/authmysqlrc
597 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthmysql.so
598 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthmysql.so.0
599 %{_libexecdir}/courier-authlib/libauthmysql.la
600
601 %files authpgsql
602 %defattr(644,root,root,755)
603 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/authlib/authpgsqlrc
604 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthpgsql.so
605 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthpgsql.so.0
606 %{_libexecdir}/courier-authlib/libauthpgsql.la
607
608 %files authuserdb
609 %defattr(644,root,root,755)
610 %attr(700,root,root) %dir %{_sysconfdir}/authlib/userdb
611 %attr(755,root,root) %{_sbindir}/makeuserdb
612 %attr(755,root,root) %{_sbindir}/pw2userdb
613 %attr(755,root,root) %{_sbindir}/userdb
614 %attr(755,root,root) %{_sbindir}/userdb-test-cram-md5
615 %attr(755,root,root) %{_sbindir}/userdbpw
616 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthuserdb.so
617 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthuserdb.so.0
618 %{_libexecdir}/courier-authlib/libauthuserdb.la
619 %{_mandir}/man8/*userdb*
620
621 %files authpipe
622 %defattr(644,root,root,755)
623 %attr(755,root,root) %{_libexecdir}/courier-authlib/libauthpipe.so
624 %attr(755,root,root) %ghost %{_libexecdir}/courier-authlib/libauthpipe.so.0
625 %{_libexecdir}/courier-authlib/libauthpipe.la
626
627 %if %{with ldap}
628 %files -n openldap-schema-courier
629 %defattr(644,root,root,755)
630 %{schemadir}/*.schema
631 %endif
This page took 0.108236 seconds and 3 git commands to generate.