~ubuntu-branches/ubuntu/trusty/libnss-ldap/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Richard A Nelson (Rick)
  • Date: 2007-05-14 19:40:00 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070514194000-40u9ndh540lgliqe
Tags: 255-1
Survived i386 and amd64, let it loose

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
export LIBS=-lpthread
4
 
 
 
3
include /usr/share/cdbs/1/class/makefile.mk
 
4
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*//')
 
5
# strip of a optionally added cvs patch (format: upstream+cvs-debian)
 
6
DEB_UPSTREAM_TARBALL_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/+[^+]*//')
 
7
DEB_TAR_SRCDIR := nss_ldap-$(DEB_UPSTREAM_TARBALL_VERSION)
 
8
include /usr/share/cdbs/1/class/autotools.mk
5
9
include /usr/share/cdbs/1/rules/debhelper.mk
6
 
include /usr/share/cdbs/1/class/autotools.mk
 
10
include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
11
include /usr/share/cdbs/1/rules/tarball.mk
7
12
 
8
 
DEB_CONFIGURE_EXTRA_FLAGS += --enable-rfc2307bis --with-ldap-lib=openldap --with-ldap-conf-file=/etc/libnss-ldap.conf --with-ldap-secret-file=/etc/libnss-ldap.secret --enable-schema-mapping --enable-paged-results --enable-configurable-krb5-ccname-gssapi
9
13
DEB_DESTDIR = $(CURDIR)/debian/tmp
 
14
MY_INST_DIR = $(CURDIR)/debian/libnss-ldap/usr/share
 
15
DEB_CONFIGURE_EXTRA_FLAGS += \
 
16
        --enable-rfc2307bis \
 
17
        --with-ldap-lib=openldap \
 
18
        --with-ldap-conf-file=/etc/libnss-ldap.conf \
 
19
        --with-ldap-secret-file=/etc/libnss-ldap.secret \
 
20
        --enable-schema-mapping \
 
21
        --enable-paged-results \
 
22
        --enable-configurable-krb5-ccname-gssapi
10
23
DEB_OPT_FLAG += -fPIC
11
 
 
12
 
MY_INST_DIR = $(CURDIR)/debian/libnss-ldap/usr/share
 
24
export LIBS=-lpthread
 
25
 
 
26
# Keep file autoconf list out of the diff
 
27
clean::
 
28
        rm *.cdbs-config_list
 
29
 
 
30
# after the directories are created but before dh_compress is run.
 
31
common-binary-post-install-arch::
 
32
        dh_buildinfo
13
33
 
14
34
binary-post-install/libnss-ldap::
15
35
        # rename man page
16
 
        mv $(MY_INST_DIR)/man/man5/nss_ldap.5 $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5
 
36
        mv $(MY_INST_DIR)/man/man5/nss_ldap.5 \
 
37
                $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5
17
38
        # change all references from /etc/ldap.conf to /etc/libnss-ldap.conf
18
39
        for file in $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5 \
19
40
                $(MY_INST_DIR)/libnss-ldap/ldap.conf ; do \
20
41
          sed -i -e 's:/etc/ldap.conf:/etc/libnss-ldap.conf:g' \
21
42
                 -e 's:/etc/ldap.secret:/etc/libnss-ldap.secret:g' $$file; \
22
 
        done
 
43
        done;
 
44