~ubuntu-branches/ubuntu/precise/gnupg2/precise-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2005-12-08 22:13:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208221321-4rvs2vu835iam5wv
Tags: 1.9.19-2
* Convert debian/changelog to UTF-8.
* Put gnupg-agent and gpgsm lintian overrides in the respectively
  right package.  Closes: #335066
* Added debhelper tokens to maintainer scripts.
* xsession fixes:
  o Added host name to gpg-agent PID file name.  Closes: #312717
  o Fixed xsession script to be able to run under zsh.  Closes: #308516
  o Don't run gpg-agent if one is already running.  Closes: #336480
* debian/control:
  o Fixed package description of gpgsm package.  Closes: #299842
  o Added mention of gpg-agent to description of gnupg-agent package.
    Closes: #304355
* Thanks to Peter Eisentraut <petere@debian.org> for all of the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        env CFLAGS="$(CFLAGS)" \
35
35
        ./configure --enable-maintainer-mode \
36
36
                --prefix=/usr --libexecdir=/usr/lib/ --with-included-gettext \
37
 
                --with-zlib=/usr --infodir=/usr/share/info/
 
37
                --with-zlib=/usr --infodir=/usr/share/info/ --enable-gpg
38
38
        touch config-stamp
39
39
 
40
40
build: build-stamp
59
59
 
60
60
        dh_clean
61
61
 
62
 
        -test -r /usr/share/misc/config.sub && \
63
 
                cp -f /usr/share/misc/config.sub config.sub
64
 
        -test -r /usr/share/misc/config.guess && \
65
 
                cp -f /usr/share/misc/config.guess config.guess
66
 
 
67
 
        -if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.7 -I m4; fi
68
 
        -if test -f config.h.in ; then touch config.h.in; else autoheader; fi
69
 
        -if test -f Makefile.in ; then find . -name Makefile.in -exec touch {} \; ;\
70
 
                else automake-1.7 --copy --add-missing; fi
71
 
 
72
 
        -if test -f configure ; then touch configure; else autoconf; fi
73
 
        -rm -rf autom4te.cache
74
 
 
75
 
        -if test -f version ; then touch version; else \
 
62
        test -r /usr/share/misc/config.sub && \
 
63
                cp -f /usr/share/misc/config.sub config.sub || \
 
64
                test -r config.sub
 
65
        test -r /usr/share/misc/config.guess && \
 
66
                cp -f /usr/share/misc/config.guess config.guess || \
 
67
                test -r config.guess
 
68
 
 
69
        if test -d gl ; then : ; else \
 
70
        mkdir -p gl; \
 
71
        gnulib-tool --import --source-base=gl --m4-base=gl/m4 \
 
72
                --dir=. --lib=libgnu --aux-dir=. --macro-prefix=gl \
 
73
                alloca-opt allocsa mkdtemp setenv strpbrk strsep vasnprintf vasprintf xsize; \
 
74
        fi
 
75
 
 
76
        if test -f aclocal.m4 ; then touch aclocal.m4; else aclocal-1.9 -I m4 -I gl/m4; fi
 
77
        if test -f config.h.in ; then touch config.h.in; else autoheader; fi
 
78
        if test -f Makefile.in ; then find . -name Makefile.in -exec touch {} \; ;\
 
79
                else automake-1.9 --copy --add-missing; fi
 
80
 
 
81
        if test -f configure ; then touch configure; else autoconf; fi
 
82
        rm -rf autom4te.cache
 
83
 
 
84
        if test -f version ; then touch version; else \
76
85
                dpkg-parsechangelog | sed -ne 's/^Version:[     ]*//p' > version; fi
77
86
 
78
87
 
88
97
        mv debian/gnupg2/usr/share/doc/gnupg2/changelog.agent debian/gnupg-agent/usr/share/doc/gnupg-agent/changelog
89
98
        mv debian/gnupg2/usr/share/doc/gnupg2/changelog.sm debian/gpgsm/usr/share/doc/gpgsm/changelog
90
99
        ln -s changelog.g10.gz debian/gnupg2/usr/share/doc/gnupg2/changelog.gz
91
 
 
92
 
 
93
 
binary-indep: binary-common
94
 
 
95
 
#       mkdir -p debian/tmp/usr/share/info
96
 
#       cp doc/gnupg.info debian/tmp/usr/share/info/gnupg2.info
97
 
#       cd debian/tmp/usr/share/info; mv gnupg.info gnupg2.info
98
 
#       dh_installinfo -i debian/tmp/usr/share/info/gnupg2.info
99
 
 
100
 
# turned off 'cause there is no -doc package
101
 
#       dh_movefiles -i
102
 
#
103
 
#       dh_installdocs -i README NEWS THANKS TODO
104
 
#       dh_installinfo -i debian/tmp/usr/share/info/gnupg2.info
105
 
#       dh_installchangelogs -i
106
 
#
107
 
#       dh_strip -i
108
 
#       dh_compress -i
109
 
#       dh_fixperms -i
110
 
#
111
 
#       dh_makeshlibs -i
112
 
#       dh_installdeb -i
113
 
#       dh_shlibdeps -i
114
 
#       dh_gencontrol -i
115
 
#       dh_md5sums -i
116
 
#       dh_builddeb -i
 
100
        $(install_file) agent/ChangeLog debian/gnupg-agent/usr/share/doc/gnupg-agent/changelog
 
101
        $(install_file) sm/ChangeLog debian/gpgsm/usr/share/doc/gpgsm/changelog
 
102
        $(install_dir) debian/tmp/usr/share/info
 
103
        $(install_file) doc/gnupg.info debian/tmp/usr/share/info/gnupg2.info
117
104
 
118
105
binary-arch:    build test binary-common
119
106
        $(MAKE) DESTDIR=`pwd`/debian/tmp libexecdir=/usr/lib/gnupg2 pkglibdir=/usr/lib/gnupg2 pkgdatadir=/usr/share/gnupg2 install
122
109
 
123
110
# Now move the gnupg2 stuff to /usr/{share,lib}/gnupg2
124
111
        mkdir -p debian/tmp/usr/lib/gnupg
125
 
        mv debian/tmp/usr/lib/gnupg2/pcsc-wrapper debian/tmp/usr/lib/gnupg/
 
112
        # mv debian/tmp/usr/lib/gnupg2/pcsc-wrapper debian/tmp/usr/lib/gnupg/
126
113
        mv debian/tmp/usr/lib/gnupg2/gpg-protect-tool debian/tmp/usr/lib/
127
114
 
128
115
        dh_movefiles -a
 
116
        find debian/tmp -type d -o -ls
129
117
 
130
118
        dh_installdocs -a README NEWS THANKS TODO
131
119
        dh_installchangelogs -a