File: rules

package info (click to toggle)
haveged 1.9.1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,212 kB
  • sloc: sh: 11,279; ansic: 8,966; makefile: 101
file content (26 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with=autoreconf --with=systemd

override_dh_auto_configure:
	case $$(dpkg --print-architecture) in \
	    mips*) \
		dh_auto_configure -- --enable-nistest=no; \
		;; \
	    *) \
		dh_auto_configure -- --enable-nistest=yes; \
		;; \
	esac

override_dh_strip:
	dh_strip --dbg-package=libhavege1-dbg

override_dh_install:
	dh_install

	mkdir -p debian/haveged/etc/apparmor.d
	cp debian/apparmor-profile debian/haveged/etc/apparmor.d/usr.sbin.haveged
	dh_apparmor --profile-name=usr.sbin.haveged -phaveged