File: rules

package info (click to toggle)
ostree 2020.8-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,636 kB
  • sloc: ansic: 66,255; sh: 13,896; xml: 4,450; yacc: 1,236; javascript: 469; makefile: 231; python: 155
file content (85 lines) | stat: -rwxr-xr-x 2,089 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

binaries := $(shell dh_listpackages)

%:
	dh $@ --with=gir

override_dh_autoreconf:
	env NOCONFIGURE=1 dh_autoreconf ./autogen.sh

configure_options = \
	GJS=some-nonexistent-gjs-binary \
	--enable-installed-tests \
	--with-avahi \
	--with-dracut \
	--with-grub2 \
	--with-grub2-mkconfig-path=/usr/sbin/grub-mkconfig \
	--with-libarchive \
	--with-libsystemd \
	--with-libmount \
	--with-soup \
	--with-selinux \
	--with-systemdsystemgeneratordir=/lib/systemd/system-generators \
	--with-systemdsystemunitdir=/lib/systemd/system \
	--without-smack \
	$(NULL)

ifneq ($(filter libostree-doc,$(binaries)),)
configure_options += --enable-gtk-doc
else
configure_options += --disable-gtk-doc
endif

ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
configure_options += --enable-man
else
configure_options += --disable-man
endif

override_dh_auto_configure:
	dh_auto_configure -- $(configure_options)

override_dh_auto_test-arch:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	chmod +x tests/test-pull-bareuseronly.sh
	debian/test.sh
endif

override_dh_auto_test-indep:
	:

override_dh_auto_install:
	dh_auto_install
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
	# docbook-xsl capitalizes the whole heading, including the macro
	# used to represent a single quote... https://bugs.debian.org/821235
	sed -i -e 's,\*(AQ,*(Aq,g' \
		debian/tmp/usr/share/man/man1/ostree-remote.1 \
		debian/tmp/usr/share/man/man1/ostree-static-delta.1 \
		$(NULL)
endif

override_dh_install:
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp/usr/libexec/installed-tests/libostree/*.la
	:
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	# this is an LD_PRELOAD, not a real shared library
	dh_makeshlibs -Xinstalled-tests/ostree/libreaddir-rand.so

override_dh_fixperms-arch:
	# dh_fixperms assumes *.js are for browsers and makes them 0644.
	dh_fixperms -X'*.js'
	find debian/tmp -type f -name '*.js' -print0 | \
		xargs -0r chmod -v go=rX,u+rw,a-s

override_dh_installsystemd:
	dh_installsystemd --no-start