summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheusov <cheusov>2012-10-21 13:52:15 +0000
committercheusov <cheusov>2012-10-21 13:52:15 +0000
commitb2ae75e44866bb5d16bcb6873c20abc89ff61f07 (patch)
tree6c076994674020931959636824077c9e9f3abab4
parent062bca90ac1c0da7f1a0d28917c2721d6efccb74 (diff)
downloadpkgsrc-b2ae75e44866bb5d16bcb6873c20abc89ff61f07.tar.gz
Register self-CONFLICTS between postgresql modules.
This also fixes some minor pkglint warnings.
-rw-r--r--databases/postgresql83/Makefile.common8
-rw-r--r--databases/postgresql84/Makefile.common8
-rw-r--r--databases/postgresql90/Makefile.common12
-rw-r--r--databases/postgresql91/Makefile.common12
-rw-r--r--databases/postgresql92/Makefile.common12
5 files changed, 41 insertions, 11 deletions
diff --git a/databases/postgresql83/Makefile.common b/databases/postgresql83/Makefile.common
index c49693e585b..718f28828dd 100644
--- a/databases/postgresql83/Makefile.common
+++ b/databases/postgresql83/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.26 2012/10/05 22:28:47 adam Exp $
+# $NetBSD: Makefile.common,v 1.27 2012/10/21 13:52:15 cheusov Exp $
#
# used by databases/postgresql83-adminpack/Makefile
# used by databases/postgresql83-client/Makefile
@@ -29,6 +29,12 @@ CONFLICTS+= postgresql7[0-9]-*
CONFLICTS+= postgresql8[0-24-9]-*
CONFLICTS+= postgresql9[0-9]-*
+.if !empty(PKGNAME:M*-*-*)
+module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
+CONFLICTS+= postgresql8[0-24-9]-${module}-[0-9]*
+CONFLICTS+= postgresql9[0-9]-${module}-[0-9]*
+.endif
+
DISTINFO_FILE?= ${.CURDIR}/../postgresql83/distinfo
COMMON_FILESDIR?= ${.CURDIR}/../postgresql83/files
PATCHDIR?= ${.CURDIR}/../postgresql83/patches
diff --git a/databases/postgresql84/Makefile.common b/databases/postgresql84/Makefile.common
index 8123868810a..10336a6168a 100644
--- a/databases/postgresql84/Makefile.common
+++ b/databases/postgresql84/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.22 2012/10/05 22:15:35 adam Exp $
+# $NetBSD: Makefile.common,v 1.23 2012/10/21 13:52:15 cheusov Exp $
#
# used by databases/postgresql84-adminpack/Makefile
# used by databases/postgresql84-client/Makefile
@@ -31,6 +31,12 @@ CONFLICTS+= postgresql7[0-9]-*
CONFLICTS+= postgresql8[0-3]-*
CONFLICTS+= postgresql9[0-9]-*
+.if !empty(PKGNAME:M*-*-*)
+module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
+CONFLICTS+= postgresql8[0-35-9]-${module}-[0-9]*
+CONFLICTS+= postgresql9[0-9]-${module}-[0-9]*
+.endif
+
DISTINFO_FILE?= ${.CURDIR}/../postgresql84/distinfo
COMMON_FILESDIR?= ${.CURDIR}/../postgresql84/files
PATCHDIR?= ${.CURDIR}/../postgresql84/patches
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
diff --git a/databases/postgresql91/Makefile.common b/databases/postgresql91/Makefile.common
index 70587783c17..b3ac4ccb808 100644
--- a/databases/postgresql91/Makefile.common
+++ b/databases/postgresql91/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.10 2012/10/05 22:15:36 adam Exp $
+# $NetBSD: Makefile.common,v 1.11 2012/10/21 13:52:15 cheusov Exp $
#
# used by databases/postgresql91-adminpack/Makefile
# used by databases/postgresql91-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[02-9]-*
+CONFLICTS+= postgresql[0-8][0-9]-[0-9]*
+CONFLICTS+= postgresql9[02-9]-[0-9]*
+
+.if !empty(PKGNAME:M*-*-*)
+module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
+CONFLICTS+= postgresql[0-8][0-9]-${module}-[0-9]*
+CONFLICTS+= postgresql9[02-9]-${module}-[0-9]*
+.endif
DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql91/distinfo
COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql91/files
diff --git a/databases/postgresql92/Makefile.common b/databases/postgresql92/Makefile.common
index 71ca661df1e..63ec70ae4ae 100644
--- a/databases/postgresql92/Makefile.common
+++ b/databases/postgresql92/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.1 2012/10/05 21:03:10 adam Exp $
+# $NetBSD: Makefile.common,v 1.2 2012/10/21 13:52:15 cheusov Exp $
#
# used by databases/postgresql92-adminpack/Makefile
# used by databases/postgresql92-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[013-9]-*
+CONFLICTS+= postgresql[0-8][0-9]-[0-9]*
+CONFLICTS+= postgresql9[013-9]-[0-9]*
+
+.if !empty(PKGNAME:M*-*-*)
+module= ${PKGNAME:C/-[0-9].*$//:C/^.*-//}
+CONFLICTS+= postgresql[0-8][0-9]-${module}-[0-9]*
+CONFLICTS+= postgresql9[013-9]-${module}-[0-9]*
+.endif
DISTINFO_FILE?= ${.CURDIR}/../../databases/postgresql92/distinfo
COMMON_FILESDIR?= ${.CURDIR}/../../databases/postgresql92/files