~ubuntu-branches/ubuntu/precise/nss-pam-ldapd/precise-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2011-09-04 21:00:00 UTC
  • mfrom: (14.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20110904210000-pe3u91iga88vtr16
Tags: 0.8.4
* Upload to unstable
* switch to using the member attribute by default instead of
  uniqueMember (backwards incompatible change)
* only return "x" as a password hash when the object has the shadowAccount
  objectClass and nsswitch.conf is configured to do shadow lookups using
  LDAP (this avoids some problems with pam_unix)
* fix problem with partial attribute name matches in DN (thanks Timothy
  White)
* fix a problem with objectSid mappings with recent versions of OpenLDAP
  (patch by Wesley Mason)
* set the socket timeout in a connection callback to avoid timeout
  issues during the SSL handshake (patch by Stefan Völkel)
* check for unknown variables in pam_authz_search
* only check password expiration when authenticating, only check account
  expiration when doing authorisation
* make buffer sizes consistent and grow all buffers holding string
  representations of numbers to be able to hold 64-bit numbers
* update AX_PTHREAD from autoconf-archive
* support querying DNS SRV records from a different domain than the current
  one (based on a patch by James M. Leddy)
* fix a problem with uninitialised memory while parsing the tls_ciphers
  option (closes: #638872) (but doesn't work yet due to #640384)
* implement bounds checking of numeric values read from LDAP (patch by
  Jakub Hrozek)
* correctly support large uid and gid values from LDAP (patch by Jakub
  Hrozek)
* improvements to the configure script (patch by Jakub Hrozek)
* switch to dh for debian/rules and bump debhelper compatibility to 8
* build Debian packages with multiarch support
* ship shlibs (but still no symbol files) for libnss-ldapd since that was
  the easiest way to support multiarch
* fix output in init script when restarting nslcd (closes: #637132)
* correctly handle leading and trailing spaces in preseeded debconf uri
  option (patch by Andreas B. Mundt) (closes: #637863)
* support spaces around database names in /etc/nsswitch.conf while
  configuring package (closes: #640185)
* updated Russian debconf translation by Yuri Kozlov (closes: #637751)
* updated French debconf translation by Christian Perrier (closes: #637756)
* added Slovak debconf translation by Slavko (closes: #637759)
* updated Danish debconf translation by Joe Hansen (closes :#637763)
* updated Brazilian Portuguese debconf translation by Denis Doria
* updated Portuguese debconf translation by Américo Monteiro
* updated Japanese debconf translation by Kenshi Muto (closes: #638195)
* updated Czech debconf translation by Miroslav Kure (closes: #639026)
* updated German debconf translation by Chris Leick (closes: #639107)
* updated Spanish debconf translation by Francisco Javier Cuadrado
  (closes: #639236)
* updated Dutch debconf translation by Arthur de Jong with help from Paul
  Gevers and Jeroen Schot

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
export DH_VERBOSE=1
4
4
 
5
 
# code for passing host/build options to configure
6
 
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
 
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
 
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
9
 
  confflags += --build $(DEB_HOST_GNU_TYPE)
10
 
else
11
 
  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
12
 
endif
13
 
 
14
 
configure: configure-stamp
15
 
configure-stamp:
16
 
        dh_testdir
17
 
        ./configure $(confflags) \
18
 
                    --prefix=/usr \
19
 
                    --mandir=\$${prefix}/share/man \
20
 
                    --sysconfdir=/etc \
21
 
                    --localstatedir=/var \
22
 
                    --libdir=/lib \
23
 
                    --enable-warnings \
24
 
                    --disable-maintainer-mode \
25
 
                    --disable-dependency-tracking \
26
 
                    --with-ldap-lib=openldap \
27
 
                    --with-ldap-conf-file=/etc/nslcd.conf \
28
 
                    --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid \
29
 
                    --with-nslcd-socket=/var/run/nslcd/socket
30
 
        touch configure-stamp
31
 
 
32
 
build: configure-stamp build-stamp
33
 
build-stamp:
34
 
        dh_testdir
35
 
        $(MAKE)
36
 
        touch build-stamp
37
 
 
38
 
clean:
39
 
        -test -r /usr/share/misc/config.sub && \
40
 
          cp -f /usr/share/misc/config.sub config.sub
41
 
        -test -r /usr/share/misc/config.guess && \
42
 
          cp -f /usr/share/misc/config.guess config.guess
43
 
        dh_testdir
44
 
        dh_testroot
45
 
        [ ! -f Makefile ] || $(MAKE) distclean
46
 
        dh_clean
47
 
        debconf-updatepo --verbose
48
 
 
49
 
install: build
50
 
        dh_testdir
51
 
        dh_testroot
52
 
        dh_prep
53
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
54
 
        # make configfile fully generated
55
 
        rm -f $(CURDIR)/debian/tmp/etc/nslcd.conf
56
 
        dh_lintian
57
 
        # install a pam-auth-update configuration file
58
 
        install -D -m 644 debian/libpam-ldapd.pam-auth-update debian/tmp/usr/share/pam-configs/ldap
59
 
 
60
 
# build architecture-independent files
61
 
binary-indep: build install
62
 
# we have nothing to do by default
63
 
 
64
 
# build architecture-dependent files
65
 
binary-arch: build install
66
 
        dh_testdir
67
 
        dh_testroot
68
 
        dh_install
69
 
        dh_installdebconf
70
 
        dh_installdocs
71
 
        dh_installexamples
72
 
        dh_installinit
73
 
        dh_installman
74
 
        dh_installchangelogs
75
 
        dh_link
76
 
        dh_strip
77
 
        dh_compress
78
 
        dh_fixperms
79
 
        dh_installdeb
80
 
        dh_shlibdeps
81
 
        dh_gencontrol
82
 
        dh_md5sums
83
 
        dh_builddeb
84
 
 
85
 
binary: binary-indep binary-arch
 
5
# multiarch support
 
6
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
7
 
 
8
%:
 
9
        dh $@
 
10
 
 
11
# pass extra flags to configure
 
12
override_dh_auto_configure:
 
13
        dh_auto_configure -- \
 
14
                    --libdir=/lib/$(DEB_HOST_MULTIARCH) \
 
15
                    --with-pam-seclib-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
 
16
                    --enable-warnings
 
17
 
 
18
# run the tests but ignore the results
 
19
override_dh_auto_test:
 
20
        -dh_auto_test