summaryrefslogtreecommitdiffstats
path: root/package/postgresql/postgresql.mk
diff options
context:
space:
mode:
authorFloris Bos <bos@je-eigen-domein.nl>2014-08-13 15:57:09 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-17 21:18:09 +0200
commita9dbaa77263f545f3af5fce0276b3e34dbc467d5 (patch)
treed29ec435b81501edb89e09582f4cc1ae04b500d8 /package/postgresql/postgresql.mk
parentac7e0a5d0dc23d453c753ddaf56007fcd47a0a77 (diff)
downloadbuildroot-a9dbaa77263f545f3af5fce0276b3e34dbc467d5.tar.gz
buildroot-a9dbaa77263f545f3af5fce0276b3e34dbc467d5.zip
postgresql: add replacement pg_config
Normally pg_config is a native application compiled for the target architecture. Since we cannot execute those on the host system, provide a simple shell script as replacement. Signed-off-by: Floris Bos <bos@je-eigen-domein.nl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/postgresql/postgresql.mk')
-rw-r--r--package/postgresql/postgresql.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/postgresql/postgresql.mk b/package/postgresql/postgresql.mk
index 6941e55dfd..dd2e678954 100644
--- a/package/postgresql/postgresql.mk
+++ b/package/postgresql/postgresql.mk
@@ -11,6 +11,7 @@ POSTGRESQL_LICENSE = PostgreSQL
POSTGRESQL_LICENSE_FILES = COPYRIGHT
POSTGRESQL_INSTALL_STAGING = YES
+POSTGRESQL_CONFIG_SCRIPTS = pg_config
ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
POSTGRESQL_CONF_OPT += --disable-thread-safety
@@ -55,6 +56,13 @@ endef
POSTGRESQL_POST_INSTALL_TARGET_HOOKS += POSTGRESQL_INSTALL_TARGET_FIXUP
+define POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
+ $(INSTALL) -m 0755 -D package/postgresql/pg_config \
+ $(STAGING_DIR)/usr/bin/pg_config
+endef
+
+POSTGRESQL_POST_INSTALL_STAGING_HOOKS += POSTGRESQL_INSTALL_CUSTOM_PG_CONFIG
+
define POSTGRESQL_INSTALL_INIT_SYSV
$(INSTALL) -m 0755 -D package/postgresql/S50postgresql \
$(TARGET_DIR)/etc/init.d/S50postgresql
OpenPOWER on IntegriCloud