File: rules

package info (click to toggle)
realmd 0.17.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,812 kB
  • sloc: ansic: 17,209; sh: 5,034; xml: 1,770; makefile: 569; python: 327; sed: 16
file content (30 lines) | stat: -rwxr-xr-x 820 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(DEB_BUILD_ARCH_OS),linux)
  SYSTEMD_PARAMS := --with-systemd-journal --with-systemd-unit-dir=/usr/lib/systemd/system
else
  SYSTEMD_PARAMS := --without-systemd-journal --without-systemd-unit-dir
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --libdir=/usr/lib \
                             --htmldir=/usr/share/doc/realmd/html \
                             --with-new-samba-cli-options=yes \
                             --with-distro=debian ${SYSTEMD_PARAMS}

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_install:
	dh_install
	# drop zero-byte file
	rm debian/realmd/usr/share/doc/realmd/html/realmd-docs.proc