1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/patch/debian-package.patch
David Steele c22e10e4a9 Honor configure --prefix option.
The --prefix option was entirely ignored and DESTDIR was a combination of DESTDIR and bindir.

Bring both in line with recommendations for autoconf and make as specified in https://www.gnu.org/software/make/manual/html_node/Directory-Variables.html and https://www.gnu.org/prep/standards/html_node/DESTDIR.html.

Suggested by Daniel Westermann.
2019-06-24 15:42:33 -04:00

21 lines
466 B
Diff

--- rules
+++ rules
@@ -13,7 +13,7 @@
override_dh_auto_configure:
# src contains a seperate configure script.
- cd $(CURDIR)/src && ./configure
+ cd $(CURDIR)/src && ./configure --prefix=/usr
dh_auto_configure
override_dh_auto_build:
@@ -36,7 +36,7 @@
dh_auto_clean
override_dh_auto_install:
- make -C src install DESTDIR=$(CURDIR)/debian/pgbackrest/usr/bin
+ make -C src install DESTDIR=$(CURDIR)/debian/pgbackrest
dh_auto_install
.PHONY: build