summaryrefslogtreecommitdiffstats
path: root/postgresql/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql/Makefile')
-rw-r--r--postgresql/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/postgresql/Makefile b/postgresql/Makefile
index 3a2e4b9..9bc75b3 100644
--- a/postgresql/Makefile
+++ b/postgresql/Makefile
@@ -1,6 +1,6 @@
# Open Infrastructure: service-tools
-# Copyright (C) 2014-2021 Daniel Baumann <daniel.baumann@open-infrastructure.net>
+# Copyright (C) 2014-2022 Daniel Baumann <daniel.baumann@open-infrastructure.net>
#
# SPDX-License-Identifier: GPL-3.0+
#
@@ -63,8 +63,18 @@ build:
install: build
mkdir -p $(DESTDIR)/usr/bin
cp -r bin/* $(DESTDIR)/usr/bin
+ ln -sf pg_hba.conf $(DESTDIR)/usr/bin/update-pg_hba.conf
+
+ mkdir -p $(DESTDIR)/usr/share/bash-completion/completions
+ cp -r share/bash-completion/* $(DESTDIR)/usr/share/bash-completion/completions
uninstall:
+ for FILE in share/bash-completion/*; \
+ do \
+ rm -f $(DESTDIR)/usr/share/bash-completion/completions/$$(basename $${FILE}); \
+ done
+
+ rm -f $(DESTDIR)/usr/bin/update-pg_hba.conf
for FILE in bin/*; \
do \
rm -f $(DESTDIR)/usr/bin/$$(basename $${FILE}); \