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
|
#!/usr/bin/make -f
# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS ?= hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --sbindir=/sbin --disable-shared \
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
--with-root-libdir=/lib/$(DEB_HOST_MULTIARCH)
override_dh_install:
find $(CURDIR) -name "*.la" -delete
rm $(CURDIR)/debian/tmp/sbin/sg_write_buffer
dh_install
dh_missing --fail-missing
override_dh_strip:
dh_strip --dbgsym-migration='f2fs-tools-dbg (<< 1.12.0-1~)'
get-orig-source:
wget http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-$(DEB_VERSION_UPSTREAM).tar.gz
gunzip < f2fs-tools-$(DEB_VERSION_UPSTREAM).tar.gz | \
xz > f2fs-tools-$(DEB_VERSION_UPSTREAM).tar.xz
rm f2fs-tools-$(DEB_VERSION_UPSTREAM).tar.gz
mv f2fs-tools-$(DEB_VERSION_UPSTREAM).tar.xz f2fs-tools_$(DEB_VERSION_UPSTREAM).orig.tar.xz
# dh_dwz when run on f2fs-tools-udeb ends up installing the
# /usr/lib/debug/.dwz files into the udeb. I think that's a bug,
# but for now, override it by just saying... just don't.
override_dh_dwz:
dh_dwz -N f2fs-tools-udeb
override_dh_makeshlibs:
dh_makeshlibs --no-add-udeb
test_printenv:
printenv | sort
|