File: rules

package info (click to toggle)
libgeoip2-perl 2.006002-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,156 kB
  • sloc: perl: 2,275; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 383 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

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	# ship script as example, not in /usr/bin
	rm -rfv $(TMP)/usr/bin

override_dh_installexamples:
	dh_installexamples
	# fix interpreter path
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*