1 |
|
### RPM external openldap 2.3.39 |
2 |
+ |
## BUILDIF case $(uname):$(uname -p) in Linux:i*86 ) true ;; Linux:x86_64 ) true ;; Linux:ppc64 ) false ;; Darwin:* ) false ;; * ) true ;; esac |
3 |
|
## INITENV +PATH LD_LIBRARY_PATH %i/lib |
4 |
|
Source: ftp://ftp.openldap.org/pub/OpenLDAP/openldap-stable/openldap-stable-20071118.tgz |
5 |
|
Patch0: openldap-2.3.39-gcc44 |
42 |
|
make |
43 |
|
%install |
44 |
|
make install |
44 |
– |
|
45 |
– |
# SCRAM ToolBox toolfile |
46 |
– |
mkdir -p %i/etc/scram.d |
47 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
48 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
49 |
– |
<Tool name=%n version=%v> |
50 |
– |
<Client> |
51 |
– |
<Environment name=OPENLDAP_BASE default="%i"></Environment> |
52 |
– |
<Environment name=LIBDIR default="$OPENLDAP_BASE/lib"></Environment> |
53 |
– |
</Client> |
54 |
– |
<use name=openssl> |
55 |
– |
<use name=db4> |
56 |
– |
</Tool> |
57 |
– |
EOF_TOOLFILE |
58 |
– |
|
59 |
– |
%post |
60 |
– |
%{relocateConfig}etc/scram.d/%n |
61 |
– |
|