1 ## |
1 ## |
2 ## sasl.spec -- OpenPKG RPM Package Specification |
2 ## sasl.spec -- OpenPKG RPM Package Specification |
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> |
4 ## |
4 ## |
5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
8 ## copies. |
8 ## copies. |
22 ## |
22 ## |
23 |
23 |
24 # package information |
24 # package information |
25 Name: sasl |
25 Name: sasl |
26 Summary: Simple Authentication and Security Layer (SASL) |
26 Summary: Simple Authentication and Security Layer (SASL) |
27 URL: http://asg.web.cmu.edu/sasl/ |
27 URL: http://www.cyrusimap.org/ |
28 Vendor: Cyrus Project, CMU |
28 Vendor: Cyrus Project, CMU |
29 Packager: OpenPKG Foundation e.V. |
29 Packager: OpenPKG Foundation e.V. |
30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: BASE |
31 Class: BASE |
32 Group: Cryptography |
32 Group: Cryptography |
33 License: BSD |
33 License: BSD |
34 Version: 2.1.23 |
34 Version: 2.1.23 |
35 Release: 20120208 |
35 Release: 20101020 |
36 |
36 |
37 # package options |
37 # package options |
38 %option with_fsl yes |
38 %option with_fsl yes |
39 %option with_sasldb yes |
39 %option with_sasldb yes |
40 %option with_pam no |
40 %option with_pam no |
47 %option with_otp no |
47 %option with_otp no |
48 %option with_srp no |
48 %option with_srp no |
49 %option with_kerberos no |
49 %option with_kerberos no |
50 |
50 |
51 # list of sources |
51 # list of sources |
52 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz |
52 Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-%{version}.tar.gz |
53 Source1: rc.sasl |
53 Source1: rc.sasl |
54 Source2: fsl.sasl |
54 Source2: fsl.sasl |
55 Source3: saslauthd.conf |
55 Source3: saslauthd.conf |
56 Source4: sasl.pc |
56 Source4: sasl.pc |
57 Patch0: sasl.patch |
57 Patch0: sasl.patch |
58 |
58 |
59 # build information |
59 # build information |
60 Prefix: %{l_prefix} |
60 BuildPreReq: OpenPKG, openpkg >= 20100101, gcc, make, groff |
61 BuildRoot: %{l_buildroot} |
61 PreReq: OpenPKG, openpkg >= 20100101 |
62 BuildPreReq: OpenPKG, openpkg >= 20060823, gcc, make |
|
63 PreReq: OpenPKG, openpkg >= 20060823 |
|
64 BuildPreReq: db >= 4.1.24, openssl |
62 BuildPreReq: db >= 4.1.24, openssl |
65 PreReq: db >= 4.1.24, openssl |
63 PreReq: db >= 4.1.24, openssl |
66 %if "%{with_fsl}" == "yes" |
64 %if "%{with_fsl}" == "yes" |
67 BuildPreReq: fsl |
65 BuildPreReq: fsl |
68 PreReq: fsl |
66 PreReq: fsl |
93 %endif |
91 %endif |
94 %if "%{with_kerberos}" == "yes" |
92 %if "%{with_kerberos}" == "yes" |
95 BuildPreReq: KERBEROS |
93 BuildPreReq: KERBEROS |
96 PreReq: KERBEROS |
94 PreReq: KERBEROS |
97 %endif |
95 %endif |
98 AutoReq: no |
|
99 AutoReqProv: no |
|
100 |
96 |
101 %description |
97 %description |
102 SASL is the Simple Authentication and Security Layer, a method |
98 SASL is the Simple Authentication and Security Layer, a method |
103 for adding authentication support to connection-based protocols. |
99 for adding authentication support to connection-based protocols. |
104 To use SASL, a protocol includes a command for identifying and |
100 To use SASL, a protocol includes a command for identifying and |
408 '%dir %attr(0700,%{l_susr},%{l_sgrp}) %{l_prefix}/var/sasl/log' |
403 '%dir %attr(0700,%{l_susr},%{l_sgrp}) %{l_prefix}/var/sasl/log' |
409 |
404 |
410 %files -f files |
405 %files -f files |
411 |
406 |
412 %clean |
407 %clean |
413 rm -rf $RPM_BUILD_ROOT |
|
414 |
408 |
415 %pre |
409 %pre |
416 # before upgrade, save status and stop service |
410 # before upgrade, save status and stop service |
417 [ $1 -eq 2 ] || exit 0 |
411 [ $1 -eq 2 ] || exit 0 |
418 eval `%{l_rc} sasl status 2>/dev/null | tee %{l_tmpfile}` |
412 eval `%{l_rc} sasl status 2>/dev/null | tee %{l_tmpfile}` |