29 |
|
<info url="http://python-ldap.sourceforge.net/"></info> |
30 |
|
<Client> |
31 |
|
<Environment name=PYTHON_LDAP_BASE default="%i"></Environment> |
32 |
< |
<Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python2.4/site-packages"></Environment> |
32 |
> |
<Environment name=PYTHON_LDAP_PYPATH default="$PYTHON_LDAP_BASE/lib/python@PYTHONV@/site-packages"></Environment> |
33 |
|
</Client> |
34 |
|
<use name=openssl> |
35 |
|
<use name=openldap> |
38 |
|
</Tool> |
39 |
|
EOF_TOOLFILE |
40 |
|
|
41 |
+ |
export PYTHONV=$(echo $PYTHON_VERSION | cut -f1,2 -d.) |
42 |
+ |
perl -p -i -e 's|\@([^@]*)\@|$ENV{$1}|g' %i/etc/scram.d/* |
43 |
+ |
|
44 |
|
%post |
45 |
|
%{relocateConfig}etc/scram.d/%n |