Use dh --sourcedirectory=src
Adrian Vondendriesch authored 1 year, 9 months ago
Christoph Berg committed 1 year, 8 months ago
0 | 0 |
debian/pgbackrest.conf etc/
|
|
1 |
usr/bin/pgbackrest
|
8 | 8 |
#export DH_VERBOSE = 1
|
9 | 9 |
|
10 | 10 |
%:
|
11 | |
dh $@ --buildsystem=makefile
|
|
11 |
dh $@ --sourcedirectory=src
|
12 | 12 |
|
13 | 13 |
override_dh_auto_configure:
|
14 | |
# src contains a seperate configure script.
|
15 | |
cd $(CURDIR)/src && ./configure --prefix=/usr --bindir=/usr/bin
|
16 | |
dh_auto_configure --buildsystem=makefile
|
|
14 |
# src contains a separate configure script.
|
|
15 |
dh_auto_configure --sourcedirectory=src -- --prefix=/usr --bindir=/usr/bin
|
17 | 16 |
|
18 | 17 |
override_dh_auto_build:
|
19 | 18 |
# Replace user name in doc cache with the current user
|
|
27 | 26 |
-t pgbackrest \
|
28 | 27 |
-s 1 \
|
29 | 28 |
${MANTEMPLATE} > ${CURDIR}/doc/output/man/pgbackrest.1
|
30 | |
make -C $(CURDIR)/src/
|
31 | |
dh_auto_build
|
|
29 |
dh_auto_build --sourcedirectory=src
|
32 | 30 |
|
33 | 31 |
override_dh_auto_clean:
|
34 | |
rm -rf $(CURDIR)/doc/output
|
35 | |
dh_auto_clean
|
36 | |
|
37 | |
override_dh_auto_install:
|
38 | |
make -C src install DESTDIR=$(CURDIR)/debian/pgbackrest
|
39 | |
dh_auto_install
|
|
32 |
! [ -f src/Makefile ] || $(MAKE) -C src clean-all
|
40 | 33 |
|
41 | 34 |
# pgBackRest must be configured before the TLS server can be started.
|
42 | 35 |
# Moreover a user must configure valid CA, client and server certificates.
|
43 | 36 |
override_dh_installsystemd:
|
44 | 37 |
dh_installsystemd --no-enable --no-start
|
45 | |
|
46 | |
.PHONY: build
|
47 | |
|
48 | |
build:
|
49 | |
dh build
|