summaryrefslogtreecommitdiff
path: root/databases/postgresql90
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2012-10-21 13:52:15 +0000
committercheusov <cheusov@pkgsrc.org>2012-10-21 13:52:15 +0000
commit37878eb314ecf6f4a35726b0bf32378cd0dec892 (patch)
tree6c076994674020931959636824077c9e9f3abab4 /databases/postgresql90
parentbeef445204af12941e40505f8fda30e0f5eee082 (diff)
downloadpkgsrc-37878eb314ecf6f4a35726b0bf32378cd0dec892.tar.gz
Register self-CONFLICTS between postgresql modules.
This also fixes some minor pkglint warnings.
Diffstat (limited to 'databases/postgresql90')
-rw-r--r--databases/postgresql90/Makefile.common12
1 files changed, 9 insertions, 3 deletions
diff --git a/databases/postgresql90/Makefile.common b/databases/postgresql90/Makefile.common
index f8f1570d931..60296eaf41e 100644
--- a/databases/postgresql90/Makefile.common
+++ b/databases/postgresql90/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2012/10/05 22:15:36 adam Exp $
+# $NetBSD: Makefile.common,v 1.21 2012/10/21 13:52:15 cheusov Exp $
#
# used by databases/postgresql90-adminpack/Makefile
# used by databases/postgresql90-client/Makefile
@@ -31,8 +31,14 @@ HOMEPAGE= http://www.postgresql.org/
LICENSE= postgresql-license
CONFLICTS+= postgresql-[0-9]*
-CONFLICTS+= postgresql[0-8][0-9]-*
-CONFLICTS+= postgresql9[1-9]-*
+CONFLICTS+= postgresql[0-8][0-9]-[0-9]*
+CONFLICTS+= postgresql9[1-9]-[0-9]*
+
+.if !empty(PKGNAME:M*-*-*)
+module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
+CONFLICTS+= postgresql[0-8][0-9]-${module}-[0-9]*
+CONFLICTS+= postgresql9[1-9]-${module}-[0-9]*
+.endif
DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql90/distinfo
COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql90/files