| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_BUILD_MAINT_OPTIONS. = hardening=+bindnow,+pie |
| 8 |
DEB_CFLAGS_MAINT_APPENDscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_CFLAGS_MAINT_APPEND. = -Wall |
| 9 |
include /usr/share/dpkg/architecture.mk |
| 10 |
-include /usr/share/dpkg/buildtools.mk |
| 11 |
|
| 12 |
CONFFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CONFFLAGS. = |
| 13 |
|
| 14 |
reprodicible |
| 15 |
include /usr/share/dpkg/pkg-info.mk |
| 16 |
DEB_DATEscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_DATE. := $(stripscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/strip. $(shellscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/shell. LC_ALL=C date -u +%F -d@$(SOURCE_DATE_EPOCHscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/SOURCE_DATE_EPOCH.))) |
| 17 |
|
| 18 |
%scip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/`%`().: |
| 19 |
dh $@ |
| 20 |
|
| 21 |
ifneq (,$(filterscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/filter. nodoc, $(DEB_BUILD_OPTIONSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_BUILD_OPTIONS.))) |
| 22 |
CONFFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CONFFLAGS. += --disable-asciidoc |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_auto_configurescip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/override_dh_auto_configure().: |
| 26 |
dh_auto_configurescip-debian debian debhelper . dh_auto_configure(). -- $(CONFFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CONFFLAGS.) \ |
| 27 |
--with-tmpfilesdir=/usr/lib/tmpfiles.d \ |
| 28 |
--enable-shared \ |
| 29 |
--enable-cryptsetup-reencrypt |
| 30 |
|
| 31 |
execute_after_dh_auto_buildscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_auto_build().: |
| 32 |
|
| 33 |
$(CCscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CC.) -o debian/askpass debian/askpass.c -Wall -Werror $(CFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CFLAGS.) $(CPPFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CPPFLAGS.) $(LDFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/LDFLAGS.) -pedantic |
| 34 |
$(CCscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CC.) -o debian/scripts/passdev debian/scripts/passdev.c -Wall -Werror $(CFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CFLAGS.) $(CPPFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CPPFLAGS.) $(LDFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/LDFLAGS.) -pedantic |
| 35 |
|
| 36 |
|
| 37 |
$(CCscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CC.) -o debian/scripts/suspend/cryptsetup-suspend debian/scripts/suspend/cryptsetup-suspend.c \ |
| 38 |
-Wall -Werror $(CFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CFLAGS.) $(CPPFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CPPFLAGS.) -I$(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/lib $(LDFLAGSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/LDFLAGS.) -L$(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/.libs -lcryptsetup -pedantic |
| 39 |
|
| 40 |
ifeq (,$(filterscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/filter. nodoc, $(DEB_BUILD_OPTIONSscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_BUILD_OPTIONS.))) |
| 41 |
|
| 42 |
sed 's/VERSION/$(DEB_VERSION)/;s/DATE/$(DEB_DATE)/' \ |
| 43 |
debian/doc/variables.xml.in >debian/doc/variables.xml |
| 44 |
xsltproc --nonet --xinclude -o debian/doc/ \ |
| 45 |
/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \ |
| 46 |
debian/doc/manpages.xml |
| 47 |
pod2man --section=8 --center="Administrative commands" \ |
| 48 |
--release="$(DEB_VERSION)" debian/scripts/luksformat \ |
| 49 |
debian/doc/luksformat.8 |
| 50 |
endif |
| 51 |
|
| 52 |
|
| 53 |
$(MAKE) -C debian/scripts/po all luksformat.pot |
| 54 |
|
| 55 |
execute_before_dh_auto_testscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_before_dh_auto_test().: |
| 56 |
|
| 57 |
@echo "blhc: ignore-line-regexp: ([0-9A-Za-z_]+-)*gcc\\s.*\\s\\.\\./tests/[0-9A-Za-z_-]+\\.c(\\s.*)?" |
| 58 |
|
| 59 |
execute_after_dh_auto_installscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_auto_install().: |
| 60 |
|
| 61 |
$(MAKEscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/MAKE.) -C debian/scripts/po DESTDIR=$(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/debian/cryptsetup-bin install |
| 62 |
|
| 63 |
execute_after_dh_installscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_install().: |
| 64 |
|
| 65 |
ifeq ($(shellscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/shell. dpkg-vendor --is Ubuntu && echo yes),yes) |
| 66 |
mkdir -p $(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks |
| 67 |
install -m 0644 debian/cryptsetup.apport \ |
| 68 |
$(CURDIR)/debian/cryptsetup/usr/share/apport/package-hooks/cryptsetup.py |
| 69 |
endif |
| 70 |
|
| 71 |
override_dh_installinitscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/override_dh_installinit().: |
| 72 |
dh_installinitscip-debian debian debhelper . dh_installinit(). -pcryptsetup --no-start --name=cryptdisks |
| 73 |
dh_installinitscip-debian debian debhelper . dh_installinit(). -pcryptsetup --no-start --name=cryptdisks-early |
| 74 |
|
| 75 |
execute_after_dh_auto_cleanscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_auto_clean().: |
| 76 |
$(MAKEscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/MAKE.) -C debian/scripts/po update clean |
| 77 |
if [ -f $(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/debian/cryptsetup-initramfs.preinst.in ]; then \ |
| 78 |
mv -fT $(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/debian/cryptsetup-initramfs.preinst.in $(CURDIRscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/CURDIR.)/debian/cryptsetup-initramfs.preinst; \ |
| 79 |
fi |
| 80 |
|
| 81 |
override_dh_bugfilesscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/override_dh_bugfiles().: |
| 82 |
dh_bugfilesscip-debian debian debhelper . dh_bugfiles(). -A |
| 83 |
|
| 84 |
execute_after_dh_fixperms-archscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_fixperms-arch().: |
| 85 |
chmod 0755 debian/cryptsetup/usr/lib/cryptsetup/checks/* |
| 86 |
chmod 0755 debian/cryptsetup/usr/lib/cryptsetup/scripts/decrypt_* |
| 87 |
chmod 0755 debian/cryptsetup-suspend/usr/lib/cryptsetup/scripts/suspend/cryptsetup-suspend-wrapper |
| 88 |
chmod 0755 debian/cryptsetup-suspend/usr/lib/systemd/system-shutdown/cryptsetup-suspend.shutdown |
| 89 |
ifeq (,$(filterscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/filter. noudeb, $(DEB_BUILD_PROFILESscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/DEB_BUILD_PROFILES.))) |
| 90 |
chmod 0755 debian/cryptsetup-udeb/usr/lib/cryptsetup/checks/* |
| 91 |
chmod 0755 debian/cryptsetup-udeb/usr/lib/cryptsetup/scripts/decrypt_* |
| 92 |
endif |
| 93 |
|
| 94 |
execute_after_dh_fixperms-indepscip-debian debian cryptsetup 2:2.8.7-1 cryptsetup/rules/execute_after_dh_fixperms-indep().: |
| 95 |
chmod 0755 debian/cryptsetup-initramfs/usr/share/cryptsetup/initramfs/bin/* |
| 96 |
chmod 0755 debian/cryptsetup-initramfs/usr/share/initramfs-tools/hooks/* |
| 97 |
chmod 0755 debian/cryptsetup-initramfs/usr/share/initramfs-tools/scripts/*/* |