File: rules

package info (click to toggle)
opennds 9.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,032 kB
  • sloc: ansic: 8,132; sh: 3,889; php: 1,908; makefile: 345; python: 55
file content (36 lines) | stat: -rwxr-xr-x 850 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
#!/usr/bin/make -f
# -*- makefile -*-

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

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

export CFLAGS += -flto
export LDFLAGS += -flto

%:
	dh $@

override_dh_install:
	rm debian/tmp/etc/opennds/opennds.uci
	mkdir -p debian/tmp/lib/systemd/system/
	mv debian/tmp/etc/systemd/system/opennds.service debian/tmp/lib/systemd/system/
	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_fixperms:
	dh_fixperms
	if [ -x debian/opennds/etc/opennds/fas-hid.php ]; then \
	    chmod a-x debian/opennds/etc/opennds/fas-hid.php; \
	fi

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..