~siretart/cryptsetup/debian

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Reinhard Tartler
  • Date: 2008-06-13 19:35:34 UTC
  • Revision ID: siretart@tauware.de-20080613193534-oeqhbxi7r0q4lk51
import cryptsetup_1.0.6-2.dsc

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
 
6
DEB_VERSION := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |          \
 
7
                               egrep '^Version:' | head -n1 | cut -f2 -d ' '    ))
 
8
DEB_DATE    := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |          \
 
9
                               egrep '^Date:'    | head -n1 | cut -f2- -d ' ' | \
 
10
                               LC_ALL=C date --file=- +%F                       ))
6
11
 
7
12
# These are used for cross-compiling and for saving the configure script
8
13
# from having to guess our platform (since we know it already)
53
58
build: build-stamp
54
59
build-stamp: configure-stamp
55
60
        dh_testdir
56
 
        asciidoc -d manpage -b docbook debian/crypttab.5.txt
57
 
        asciidoc -d manpage -b docbook debian/cryptdisks_start.8.txt
58
 
        asciidoc -d manpage -b docbook debian/cryptdisks_stop.8.txt
59
 
        sed -i 's/<emphasis role="strong">/<emphasis role="bold">/g' debian/crypttab.5.xml
60
 
        sed -i 's/<emphasis role="strong">/<emphasis role="bold">/g' debian/cryptdisks_start.8.xml
61
 
        sed -i 's/<emphasis role="strong">/<emphasis role="bold">/g' debian/cryptdisks_stop.8.xml
62
 
        xsltproc -o debian/crypttab.5 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
63
 
                debian/crypttab.5.xml
64
 
        xsltproc -o debian/cryptdisks_start.8 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
65
 
                debian/cryptdisks_start.8.xml
66
 
        xsltproc -o debian/cryptdisks_stop.8 /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
67
 
                debian/cryptdisks_stop.8.xml
 
61
        sed 's/VERSION/$(DEB_VERSION)/;s/DATE/$(DEB_DATE)/' \
 
62
                debian/doc/variables.xml.in > debian/doc/variables.xml
 
63
        xsltproc --xinclude -o debian/doc/                                      \
 
64
                /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl   \
 
65
                debian/doc/manpages.xml
68
66
        pod2man --section=8 --center="Administrative commands" --release="" debian/scripts/luksformat \
69
67
                debian/luksformat.8
70
68
        $(MAKE)
71
69
        # cannot depend on libraries in /usr !
72
70
        gcc lib/.libs/*.o src/*.o luks/.libs/*.o -o src/cryptsetup.static \
73
71
                -lpopt -ldevmapper -luuid /usr/lib/libgcrypt.a /usr/lib/libgpg-error.a
74
 
        gcc debian/askpass.c -o debian/askpass
 
72
        gcc -Wall -pedantic -std=c99 debian/askpass.c -o debian/askpass
 
73
        gcc -Wall -pedantic -std=c99 debian/passdev.c -o debian/scripts/passdev
75
74
        touch $@
76
75
 
77
76
clean: unpatch
79
78
        dh_testroot
80
79
        if test -f Makefile; then $(MAKE) clean; fi
81
80
        if test -f config.mess; then rm -f `cat config.mess`; fi
82
 
        rm -f debian/crypttab.5 debian/crypttab.5.xml debian/luksformat.8
83
 
        rm -f debian/cryptdisks_start.8 debian/cryptdisks_start.8.xml
84
 
        rm -f debian/cryptdisks_stop.8 debian/cryptdisks_stop.8.xml
 
81
        rm -f debian/luksformat.8
 
82
        rm -f debian/doc/*.[0-9] debian/doc/variables.xml
 
83
        rm -f debian/scripts/passdev
85
84
        rm -f debian/askpass
86
85
        rm -f config.mess
87
86
        rm -rf autom4te.cache 
103
102
        install -m 0755 debian/scripts/cryptdisks_start $(CURDIR)/debian/cryptsetup/usr/sbin/
104
103
        install -m 0755 debian/scripts/cryptdisks_stop $(CURDIR)/debian/cryptsetup/usr/sbin/
105
104
        install -m 0755 debian/scripts/decrypt_* $(CURDIR)/debian/cryptsetup/lib/cryptsetup/scripts/
 
105
        install -m 0755 debian/scripts/passdev $(CURDIR)/debian/cryptsetup/lib/cryptsetup/scripts/
 
106
        install -m 0755 debian/initramfs/cryptpassdev-hook \
 
107
                $(CURDIR)/debian/cryptsetup/usr/share/initramfs-tools/hooks/cryptpassdev
106
108
        install -m 0755 debian/initramfs/cryptroot-hook \
107
109
                $(CURDIR)/debian/cryptsetup/usr/share/initramfs-tools/hooks/cryptroot
108
110
        install -m 0755 debian/initramfs/cryptroot-script \
133
135
        dh_installexamples -a debian/scripts/gen-ssl-key debian/scripts/gen-old-ssl-key debian/usbcrypto.udev
134
136
        dh_installinit -a --no-start --name=cryptdisks-early --update-rcd-params="start 26 S . start 59 0 6 ."
135
137
        dh_installinit -a --no-start --name=cryptdisks --update-rcd-params="start 28 S . start 48 0 6 ."
136
 
        dh_installman -a debian/crypttab.5 debian/luksformat.8 debian/cryptdisks_start.8 debian/cryptdisks_stop.8
 
138
        dh_installman -a debian/doc/crypttab.5 debian/doc/cryptdisks_start.8 debian/doc/cryptdisks_stop.8 debian/luksformat.8
137
139
        cp -a $(CURDIR)/debian/cryptsetup/etc $(CURDIR)/debian/cryptsetup-udeb/
138
140
        cp -a $(CURDIR)/debian/cryptsetup/lib $(CURDIR)/debian/cryptsetup-udeb/
139
141
        cp -a $(CURDIR)/debian/cryptsetup/sbin $(CURDIR)/debian/cryptsetup-udeb/