buildroot/package/postgresql/pg_config
Adam Duskett 8193cd84a5 postgresql: add version output to pg_config
Some external packages call pg_config to determine the installed PostgreSQL
version. Add this output to Buildroots own pg_config, so these packages
correctly compile.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-04 22:59:54 +02:00

23 lines
372 B
Bash

#!/bin/sh
#
# Minimal pg_config implementation as replacement for the native pg_config application
# Only implements --includedir and --libdir
#
prefix=/usr
case "$1" in
--includedir)
echo "$prefix/include"
;;
--libdir)
echo "$prefix/lib"
;;
--version)
echo "PostgreSQL @POSTGRESQL_VERSION@"
;;
*)
echo "Usage: $0 {--includedir|--libdir|--version}"
esac