summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rwxr-xr-xdebian/rules3
2 files changed, 4 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 4a7118de..6f59555e 100644
--- a/debian/control
+++ b/debian/control
@@ -55,7 +55,7 @@ Description: Liberty ID-FF library - Python 2.3 bindings
Package: php4-lasso
Section: web
Architecture: any
-Depends: phpapi-20050606, ${shlibs:Depends}, ${misc:depends}
+Depends: ${php:Depends}, ${shlibs:Depends}, ${misc:depends}
Description: Liberty ID-FF library - PHP 4 bindings
Lasso is an implementation of the Liberty Identity Federation specifications
defined by the Liberty Alliance consortium. They defines processes such as
diff --git a/debian/rules b/debian/rules
index 9341b167..e1c7d2a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,8 @@ version=`ls src/.libs/lib*.so.* | \
major=`ls src/.libs/lib*.so.* | \
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+phpapiver=$(shell php-config --phpapi)
+
config.status: configure
dh_testdir
# Add here commands to configure the package.
@@ -99,6 +101,7 @@ binary-arch: build install
#dh_clideps -L liblasso-cil -r -d
dh_installdeb
dh_shlibdeps -a
+ echo "php:Depends=phpapi-$(phpapiver)" >> debian/php4-lasso.substvars
dh_gencontrol
dh_md5sums
dh_builddeb