File: rules

package info (click to toggle)
libgeoip2-perl 2.006001-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,148 kB
  • sloc: perl: 2,262; makefile: 10
file content (17 lines) | stat: -rwxr-xr-x 371 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|^#.*perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*