File: rules

package info (click to toggle)
check-postgres 2.24.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,052 kB
  • sloc: perl: 12,007; sh: 17; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@

DESTDIR = $(CURDIR)/debian/check-postgres

override_dh_auto_install:
	dh_auto_install
# drop .pl extension from script
	mv $(DESTDIR)/usr/bin/check_postgres.pl $(DESTDIR)/usr/bin/check_postgres
	sed -i 's/check_postgres\.pl/check_postgres/g' $(DESTDIR)/usr/bin/check_postgres $(DESTDIR)/usr/share/man/man*/*
# install symlinks
	cd $(DESTDIR)/usr/bin && ./check_postgres --symlinks
	set -e; for f in $(DESTDIR)/usr/bin/check_postgres_*; do ln -s check_postgres.1p.gz $(DESTDIR)/usr/share/man/man1/`basename $$f`.1p.gz; done

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	+debian/tests/prove
endif