summaryrefslogtreecommitdiff
path: root/package/postgresql/files/pg_config
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/files/pg_config
parentbf62091b68e248270e432d935709ca5c95d1ae16 (diff)
rework post-install
Be sure to execute post-install as last step after populating staging dir.
Diffstat (limited to 'package/postgresql/files/pg_config')
-rw-r--r--package/postgresql/files/pg_config19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/postgresql/files/pg_config b/package/postgresql/files/pg_config
new file mode 100644
index 000000000..0d82c24a1
--- /dev/null
+++ b/package/postgresql/files/pg_config
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+#
+# Minimal pg_config implementation as replacement for the native pg_config application
+# Only implements --includedir and --libdir
+#
+
+prefix=@@STAGING_TARGET_DIR@@/usr
+
+case "$1" in
+ --includedir)
+ echo "$prefix/include"
+ ;;
+ --libdir)
+ echo "$prefix/lib"
+ ;;
+ *)
+ echo "Usage: $0 {--includedir|--libdir}"
+esac