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