1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export CONFIG_SHELL:=/bin/sh
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --with-conf=/etc/default --disable-zypp --enable-xattrs --disable-silent-rules --disable-ext4
override_dh_auto_install:
dh_auto_install
# Add pam-configs for snapper
cp -a $(CURDIR)/debian/pam-configs $(CURDIR)/debian/tmp/usr/share
# Remove zypp-related files
find $(CURDIR)/debian/tmp -name *zypp* -delete
# Install the configuration file in /etc/default
mkdir -p $(CURDIR)/debian/tmp/etc/default
install -m 0644 $(CURDIR)/data/sysconfig.snapper $(CURDIR)/debian/tmp/etc/default/snapper
# temporary workaround: remove cronjob
rm -rf $(CURDIR)/debian/tmp/etc/cron*
# Move the pam library to /lib
mkdir -p $(CURDIR)/debian/tmp/lib
mv $(CURDIR)/debian/tmp/$(DEB_HOST_MULTIARCH) $(CURDIR)/debian/tmp/lib
# Purge the la files
find $(CURDIR)/debian/tmp -name *.la -delete
# Purge a redundant COPYING file
rm -f $(CURDIR)/debian/tmp/usr/share/doc/snapper/COPYING
# Cleanup examples
make -C examples clean
override_dh_compress:
dh_compress -X.c -X.cc -X.h -X.hpp -X.am
override_dh_makeshlibs:
dh_makeshlibs -V
override_dh_missing:
dh_missing --fail-missing
|