File: rules

package info (click to toggle)
libproc-processtable-perl 0.56-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 528 kB
  • sloc: ansic: 4,334; perl: 392; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 489 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
PERL   ?= /usr/bin/perl
ARCH    = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')

%:
	dh $@

override_dh_auto_configure:
ifeq ($(ARCH),kfreebsd)
	$(PERL) hints/linux.pl
endif
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install
	$(RM) -v $(TMP)/$(ARCHLIB)/Proc/example.pl