diff options
author | Michael Adam <obnox@samba.org> | 2011-05-06 12:29:10 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-05-18 22:00:24 +0200 |
commit | ec625f7b7bc1a06da8541f9d8538ce88851bb10e (patch) | |
tree | fad6f1b9bfc302bc356535b40012a4215c4e83b2 /packaging/RHEL-CTDB/makespec.sh | |
parent | ac0307ff898d5f8edfa783e9f5e7a89ebf6d6524 (diff) | |
download | samba-ec625f7b7bc1a06da8541f9d8538ce88851bb10e.tar.gz samba-ec625f7b7bc1a06da8541f9d8538ce88851bb10e.tar.bz2 samba-ec625f7b7bc1a06da8541f9d8538ce88851bb10e.zip |
packaging(RHEL-CTDB): build libtdb and libtalloc packages ourselves
and add appropriate dependencies to the samba-common package.
It should also be possible to run with appropriate system talloc
and tdb packages.
Diffstat (limited to 'packaging/RHEL-CTDB/makespec.sh')
-rwxr-xr-x | packaging/RHEL-CTDB/makespec.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/packaging/RHEL-CTDB/makespec.sh b/packaging/RHEL-CTDB/makespec.sh index 29dcbeb30e..946ce8ebf9 100755 --- a/packaging/RHEL-CTDB/makespec.sh +++ b/packaging/RHEL-CTDB/makespec.sh @@ -45,8 +45,21 @@ else echo "GITHASH: ${GITHASH}" fi -sed -e s/PVERSION/${VERSION}/g \ + +# +# get the versions of libtdb and libtalloc we provide +# +#LIBTDBVERSION=1.2.9 +LIBTDBVERSION=$(grep ^VERSION ${DIRNAME}/../../lib/tdb/wscript | sed -e "s/'//g" -e 's/.* //') + +#LIBTALLOCVERSION=2.0.1 +LIBTALLOCVERSION=$(grep ^VERSION ${DIRNAME}/../../lib/talloc/wscript | sed -e "s/'//g" -e 's/.* //') + +sed \ + -e s/PVERSION/${VERSION}/g \ -e s/GITHASH/${GITHASH}/g \ + -e s/LIBTDBVERSION/${LIBTDBVERSION}/g \ + -e s/LIBTALLOCVERSION/${LIBTALLOCVERSION}/g \ < ${SPECFILE}.tmpl \ > ${SPECFILE} |