File: rules

package info (click to toggle)
rpm 6.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,580 kB
  • sloc: cpp: 53,319; ansic: 13,888; sh: 2,038; python: 1,175; makefile: 35; xml: 26
file content (40 lines) | stat: -rwxr-xr-x 978 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# For DEB_HOST_ARCH_OS
include /usr/share/dpkg/architecture.mk

# For proper pkg-config
DPKG_EXPORT_BUILDTOOLS = 1
include /usr/share/dpkg/buildtools.mk

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

include /usr/share/debhelper/dh_package_notes/package-notes.mk

ifeq (linux,$(DEB_HOST_ARCH_OS))
       configure_flags += -DWITH_CAP=ON -DWITH_SELINUX=ON -DWITH_FSVERITY=ON
else
       configure_flags += -DWITH_CAP=OFF -DWITH_SELINUX=OFF -DWITH_FSVERITY=OFF -DWITH_AUDIT=OFF -DWITH_FAPOLICYD=OFF
endif

configure_flags += \
	-DENABLE_TESTSUITE=OFF \
	-DMKTREE_BACKEND=rootfs \
	-DENABLE_PYTHON=ON \
	-DENABLE_BDB_RO=ON \
	-DENABLE_NDB=ON

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)

execute_after_dh_auto_install:
	# Fix permissions
	chmod +x debian/tmp/usr/lib/rpm/rpm.daily

%:
	dh $@