File: rules

package info (click to toggle)
passt 0.0~git20230309.7c7625d-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,448 kB
  • sloc: ansic: 9,696; sh: 2,820; makefile: 334
file content (17 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_install:
	dh_auto_install -- prefix=/usr
	dh_apparmor --profile-name=usr.bin.passt -ppasst

ifneq (,$(findstring amd64,$(DEB_BUILD_ARCH)))
override_dh_link:
	dh_link usr/share/man/man1/passt.1 usr/share/man/man1/passt.avx2.1
	dh_link usr/share/man/man1/pasta.1 usr/share/man/man1/pasta.avx2.1
endif

%:
	export VERSION="$(DEB_UPSTREAM_VERSION)"
	dh $@