aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql-plruby
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2006-12-08 18:59:53 +0800
committergirgen <girgen@FreeBSD.org>2006-12-08 18:59:53 +0800
commitaa682facccb8cedc04e957ddba97c7e713532bdb (patch)
tree0aa3817a0ea19d204abec4102fddd6ac370d83fc /databases/postgresql-plruby
parentbc688bda99a737f1ba30eaad3d4f39bf911ab984 (diff)
downloadfreebsd-ports-gnome-aa682facccb8cedc04e957ddba97c7e713532bdb.tar.gz
freebsd-ports-gnome-aa682facccb8cedc04e957ddba97c7e713532bdb.tar.zst
freebsd-ports-gnome-aa682facccb8cedc04e957ddba97c7e713532bdb.zip
More rubust regex to determine which version of postgresql that is
already installed. Reported by: Kostik Belousov
Diffstat (limited to 'databases/postgresql-plruby')
-rw-r--r--databases/postgresql-plruby/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/postgresql-plruby/Makefile b/databases/postgresql-plruby/Makefile
index 87ad5183b52d..1d77059ab7df 100644
--- a/databases/postgresql-plruby/Makefile
+++ b/databases/postgresql-plruby/Makefile
@@ -61,7 +61,7 @@ post-build:
# 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