~ubuntu-branches/ubuntu/utopic/nss-pam-ldapd/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2009-09-01 17:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090901170000-54hqcpmbxk32rzer
Tags: 0.7.0
* rename software to nss-pam-ldapd to indicate that PAM module is now a
  standard part of the software
* split into the binary packages libnss-ldapd, libpam-ldapd and nslcd
  (libpam-ldapd packaging used a patch for libpam-ldap by Steve Langasek)
  (closes: #535505)
* the configuration file name has been changed to /etc/nslcd.conf (package
  upgrade should migrate the configuration)
* updated Galician debconf translation by Marce Villarino (closes: #537424)
* patch by Petter Reinholdtsen to fix init script to start before autofs
  (closes: #544093)
* the default values for bind_timelimit and reconnect_maxsleeptime were
  lowered from 30 to 10 seconds (closes: #532874)
* upgrade to standards-version 3.8.3 (no changes needed)
* password hashes are no longer returned to non-root users (based on a patch
  by Alexander V. Chernikov)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
export DH_VERBOSE=1
 
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
        # install a lintian override file
 
57
        install -D -m 644 $(CURDIR)/debian/libnss-ldapd.lintian-overrides \
 
58
                $(CURDIR)/debian/libnss-ldapd/usr/share/lintian/overrides/libnss-ldapd
 
59
        # install a pam-auth-update configuration file
 
60
        install -D -m 644 debian/libpam-ldapd.pam-auth-update debian/tmp/usr/share/pam-configs/ldap
 
61
 
 
62
# build architecture-independent files
 
63
binary-indep: build install
 
64
# we have nothing to do by default
 
65
 
 
66
# build architecture-dependent files
 
67
binary-arch: build install
 
68
        dh_testdir
 
69
        dh_testroot
 
70
        dh_install
 
71
        dh_installdebconf
 
72
        dh_installdocs
 
73
        dh_installexamples
 
74
        dh_installinit
 
75
        dh_installman
 
76
        dh_installchangelogs
 
77
        dh_link
 
78
        dh_strip
 
79
        dh_compress
 
80
        dh_fixperms
 
81
        dh_installdeb
 
82
        dh_shlibdeps
 
83
        dh_gencontrol
 
84
        dh_md5sums
 
85
        dh_builddeb
 
86
 
 
87
binary: binary-indep binary-arch