File: rules

package info (click to toggle)
snapper 0.10.6-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,072 kB
  • sloc: cpp: 24,846; ansic: 1,466; sh: 1,410; makefile: 514; python: 127; ruby: 90
file content (43 lines) | stat: -rwxr-xr-x 1,063 bytes parent folder | download | duplicates (2)
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
#!/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

	# 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*

	# 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