summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2006-12-08 10:45:33 +0000
committergirgen <girgen@FreeBSD.org>2006-12-08 10:45:33 +0000
commitbc688bda99a737f1ba30eaad3d4f39bf911ab984 (patch)
treea3c1d1e0e0a959b219b5aae51e77776c9c9a2e65 /databases
parent7420cdcd45867350d25a9120c6fc7574f7be20ea (diff)
downloadFreeBSD-ports-bc688bda99a737f1ba30eaad3d4f39bf911ab984.zip
FreeBSD-ports-bc688bda99a737f1ba30eaad3d4f39bf911ab984.tar.gz
More rubust regex to determine which version of postgresql that is
already installed. Reported by: Kostik Belousov PR: 106471
Diffstat (limited to 'databases')
-rw-r--r--databases/erserver/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/erserver/Makefile b/databases/erserver/Makefile
index 4e9cf89..4ca210b 100644
--- a/databases/erserver/Makefile
+++ b/databases/erserver/Makefile
@@ -41,7 +41,7 @@ DEFAULT_PGSQL_VER?=74
# Setting/finding PostgreSQL version we want.
.if exists(${LOCALBASE}/bin/postmaster)
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
- ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
+ ${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
.elif exists(${LOCALBASE}/bin/pg_config)
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
.else
OpenPOWER on IntegriCloud