summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2006-04-08 19:14:06 +0000
committerjdolecek <jdolecek>2006-04-08 19:14:06 +0000
commit48a40475f299e189d6526aebf77ad2925dd45daa (patch)
treec084cdaca89eca58bac5249158e3fd11f9eef99c /databases
parent576b466dfb8f7743c8ef0fc90a1db1f2be58fdfb (diff)
downloadpkgsrc-48a40475f299e189d6526aebf77ad2925dd45daa.tar.gz
use MASTER_SITE_PGSQL
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql73/Makefile.common14
-rw-r--r--databases/postgresql74/Makefile.common14
2 files changed, 14 insertions, 14 deletions
diff --git a/databases/postgresql73/Makefile.common b/databases/postgresql73/Makefile.common
index 09b1ec54123..ee127af7df5 100644
--- a/databases/postgresql73/Makefile.common
+++ b/databases/postgresql73/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.17 2006/04/06 06:21:42 reed Exp $
+# $NetBSD: Makefile.common,v 1.18 2006/04/08 19:16:36 jdolecek Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -11,12 +11,12 @@
DISTNAME?= postgresql-${DIST_VERS}
CATEGORIES+= databases
-MASTER_SITES?= http://www.postgresql.org/ftpsite/source/v${DIST_VERS}/ \
- ftp://ftp.postgresql.org/pub/source/v${DIST_VERS}/ \
- ftp://ftp.de.postgresql.org/mirror/postgresql/source/v${DIST_VERS}/ \
- ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/source/v${DIST_VERS}/ \
- ftp://ftp.sunsite.auc.dk/mirrors/postgresql/source/v${DIST_VERS}/ \
- ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/source/v${DIST_VERS}/
+MASTER_SITES?= ${MASTER_SITE_PGSQL:=source/v${DIST_VERS}/}
+
+# Craft a MASTER_SORT_REGEX that understands the location of the country
+# code in the FTP server name for the PostgreSQL mirror sites.
+#
+MASTER_SORT_REGEX+= ${MASTER_SORT:S/./\\./g:C/.*/:\/\/[^[\/]*&\/ :\/\/[^\/]*&\\./}
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.postgresql.org/
diff --git a/databases/postgresql74/Makefile.common b/databases/postgresql74/Makefile.common
index 3cc55b334f0..908674e7e02 100644
--- a/databases/postgresql74/Makefile.common
+++ b/databases/postgresql74/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.33 2006/04/06 06:21:42 reed Exp $
+# $NetBSD: Makefile.common,v 1.34 2006/04/08 19:14:06 jdolecek Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -11,12 +11,12 @@
DISTNAME?= postgresql-${DIST_VERS}
CATEGORIES+= databases
-MASTER_SITES?= \
- ftp://ftp.de.postgresql.org/mirror/postgresql/source/v${DIST_VERS}/ \
- ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/source/v${DIST_VERS}/ \
- ftp://ftp.sunsite.auc.dk/mirrors/postgresql/source/v${DIST_VERS}/ \
- ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/source/v${DIST_VERS}/ \
- ftp://ftp.postgresql.org/pub/source/v${DIST_VERS}/
+MASTER_SITES?= ${MASTER_SITE_PGSQL:=source/v${DIST_VERS}/}
+
+# Craft a MASTER_SORT_REGEX that understands the location of the country
+# code in the FTP server name for the PostgreSQL mirror sites.
+#
+MASTER_SORT_REGEX+= ${MASTER_SORT:S/./\\./g:C/.*/:\/\/[^[\/]*&\/ :\/\/[^\/]*&\\./}
EXTRACT_SUFX= .tar.bz2