File: rules

package info (click to toggle)
binkd 1.1a-115-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,544 kB
  • sloc: ansic: 22,961; makefile: 1,126; perl: 368; sh: 320
file content (44 lines) | stat: -rwxr-xr-x 1,004 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

D := $(CURDIR)/debian/binkd

%:
	dh $@

execute_before_dh_autoreconf:
	cp mkfls/unix/install-sh mkfls/unix/configure.in mkfls/unix/Makefile.* .

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-af-force \
		--with-bwlim \
		--with-debug \
		--with-https \
		--with-ntlm \
		--with-perl

override_dh_auto_install:

override_dh_auto_clean:
	[ ! -e Makefile ] || $(MAKE) cleanall

override_dh_installchangelogs:
	dh_installchangelogs HISTORY

override_dh_install:
	cp binkd.cfg binkd.inc $D/etc/binkd/
	install binkd $D/usr/sbin/
	install --mode 755 debian/binkdlogstat $D/usr/sbin/

# this is a workaround for https://github.com/systemd/systemd/issues/33547
execute_before_dh_installsysusers:
	dh_installsysusers --name=binkd-group

execute_after_dh_fixperms:
	chown -R 64000:adm $D/var/log/binkd/
	chmod 750 $D/var/log/binkd/
	chown -R 64000:64000 $D/var/spool/ftn/ $D/etc/binkd/binkd.inc
	chmod 600 $D/etc/binkd/binkd.inc