File: rules

package info (click to toggle)
miniupnpd 2.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,896 kB
  • sloc: ansic: 24,231; sh: 1,414; makefile: 349
file content (68 lines) | stat: -rwxr-xr-x 1,765 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


%:
	dh $@

override_dh_auto_clean:
	$(MAKE) -f Makefile.linux clean
	rm -rf config.h

override_dh_clean:
	if [ -h Makefile ]; then \
		mv Makefile.bsd Makefile; \
	fi
	dh_clean

override_dh_auto_configure:
	if [ ! -h Makefile ]; then \
		mv Makefile Makefile.bsd; \
		ln -s Makefile.linux Makefile; \
	fi
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build -- CONFIG_OPTIONS="--igd2 --ipv6 --leasefile --vendorcfg --pcp-peer --portinuse"

override_dh_auto_test:
	# some test scripts missing from the tarball

override_dh_auto_install:
	dh_auto_install -- STRIP=echo

	# Move the miniupnpd.conf in /usr/share so it's not marked as CONFFILE
	mkdir -p $(CURDIR)/debian/miniupnpd/usr/share/miniupnpd
	mv $(CURDIR)/debian/miniupnpd/etc/miniupnpd/miniupnpd.conf $(CURDIR)/debian/miniupnpd/usr/share/miniupnpd/
	sed -i " \
		/^secure_mode=no/ d; \
		/^notify_interval=60/ d; \
		s/^clean_ruleset_interval=600/#clean_ruleset_interval=600/; \
		s/^allow/#allow/; \
		s/^deny/#deny/; \
		s/^uuid=.*/uuid=/; \
	" $(CURDIR)/debian/miniupnpd/usr/share/miniupnpd/miniupnpd.conf

	# Copy the /etc/default/miniupnpd to /usr/share
	cp $(CURDIR)/debian/examples/miniupnpd.default $(CURDIR)/debian/miniupnpd/usr/share/miniupnpd/

override_dh_installinit:
	dh_installinit --no-enable --no-start

override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

display-po-stats:
	cd $(CURDIR)/debian/po ; for i in *.po ; do \
		echo -n $$i": " ; \
		msgfmt -o /dev/null --statistic $$i ; \
	done

call-for-po-trans:
	podebconf-report-po --call --withtranslators --languageteam