Package: userdir-ldap
Architecture: all
-Depends: python-base (>= 1.5), python-ldap
-Suggests: libnet-ldap-perl, libcrypt-blowfish-perl, gnupg, python-net, python-gdbm, libdate-manip-perl, liburi-perl
+Depends: ${python:Depends}, python-ldap, perl5
+Suggests: libnet-ldap-perl, libcrypt-blowfish-perl, gnupg, python-net, python-gdbm, libdate-manip-perl, liburi-perl, libnet-ldap-perl
Description: Login User Directory in LDAP support scripts
These scripts simplifiy the creation and management of a LDAP based user
directory. Included are scripts to import existing passwd, group and shadow
--- /dev/null
+import sys;
+
+if sys.version[:3] != "1.5":
+ print "python:Depends=python (>= %s), python (<< %s)" % (sys.version[:3],float(sys.version[:3])+0.1)
+else:
+ print "python:Depends=python-base (>= 1.5) | python (>= 1.5), python-base (<< 1.6) | python (<< 1.6)"
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
-package=userdir-ldap
-pyversion=1.5
-i=./debian/tmp
-pysite=usr/lib/python$(pyversion)/site-packages
+PYTHON:=/usr/bin/python
+package:=userdir-ldap
+pyversion:=`$(PYTHON) -c 'import sys; print sys.version[:3]'`
+i:=./debian/tmp
+pysite:=usr/lib/python$(pyversion)/site-packages
build:
dh_testdir
dh_fixperms --exclude=web-cookies
dh_compress
dh_installdeb
+ $(PYTHON) debian/python-dep >> debian/substvars
dh_gencontrol
# dh_makeshlibs
dh_md5sums