summaryrefslogtreecommitdiff
path: root/package/postgresql/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-05-13 22:27:11 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-05-13 22:27:48 +0200
commit71242d66a32a9e3e552c9cee6d6f6e703ff0797b (patch)
tree4fde8a4656be336d8e81330e5d4cc226170a31fe /package/postgresql/Makefile
parentbf62091b68e248270e432d935709ca5c95d1ae16 (diff)
rework post-install
Be sure to execute post-install as last step after populating staging dir.
Diffstat (limited to 'package/postgresql/Makefile')
-rw-r--r--package/postgresql/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile
index b28d4e85e..f60f7d8a7 100644
--- a/package/postgresql/Makefile
+++ b/package/postgresql/Makefile
@@ -36,4 +36,9 @@ libpq-install:
$(INSTALL_DIR) $(IDIR_LIBPQ)/usr/lib
$(CP) $(WRKINST)/usr/lib/libpq.so* $(IDIR_LIBPQ)/usr/lib
+post-install:
+ PATH='$(HOST_PATH)' sed -e "s#@@STAGING_TARGET_DIR@@#$(STAGING_TARGET_DIR)#" \
+ ./files/pg_config > $(STAGING_HOST_DIR)/usr/bin/pg_config
+ -rm $(STAGING_TARGET_DIR)/usr/bin/pg_config
+
include $(ADK_TOPDIR)/mk/pkg-bottom.mk