Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  2 Nov 2000 00:46:43 -0800 (PST)
From:      saito@a2z.co.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/22530: japanese posggresql7 ports update
Message-ID:  <20001102084643.DC9B637B687@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22530
>Category:       ports
>Synopsis:       japanese posggresql7 ports update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 02 00:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Saito Tomokatsu
>Release:        4.1.1-STABLE
>Organization:
alpha omega inc.
>Environment:
>Description:
diff -u postgresql7.org/Makefile postgresql7/Makefile
--- postgresql7.org/Makefile    Tue Oct 17 19:23:54 2000
+++ postgresql7/Makefile        Thu Nov  2 17:20:26 2000
@@ -1,5 +1,5 @@
 # New ports collection makefile for:   PostgreSQL
-# Date created:                7 Jun 2000
+# Date created:                2 Nov 2000
 # Whom:                        Tomokatsu Saito <saito@a2z.co.jp>
 #
 # $FreeBSD: ports/japanese/postgresql7/Makefile,v 1.17 2000/10/08 01:58:04 asam
i Exp $
@@ -7,12 +7,20 @@
 
 PORTNAME=      postgresql
 PORTVERSION=   7.0.2
+PKGNAMESUFFIX= -20001025
 CATEGORIES=    japanese databases
-MASTER_SITES=  ftp://ftp.jaist.ac.jp/pub/dbms/PostgreSQL/v${PORTVERSION}/ \
+MASTER_SITES=  \
                ftp://ftp.sra.co.jp/pub/cmd/postgres/${PORTVERSION}/ \
+               ftp://ftp.sra.co.jp/pub/cmd/postgres/${PORTVERSION}/patches/ \
+               ftp://ftp.jaist.ac.jp/pub/dbms/PostgreSQL/v${PORTVERSION}/ \
                ftp://ftp.postgresql.org/pub/v${PORTVERSION}/
-DISTNAME=      ${PORTNAME}-${PORTVERSION}
 
+
+DISTFILES=     postgresql-7.0.2.tar.gz jumbo-20001025.patch.gz
+
+DIST_SUBDIR=   postgresql
+
+EXTRACT_ONLY=  postgresql-7.0.2.tar.gz
 MAINTAINER=    saito@a2z.co.jp
 
 .if ${MACHINE_ARCH} == "alpha"
@@ -22,8 +30,8 @@
 Y2K=           http://www.postgresql.org/y2k.html
 
 # if you want to use the tcl/tk frontend pgaccess, then you need to build
-# postgresql with tcl support by typing: make USE_TCL=yes
-.if defined(USE_TCL)
+# postgresql with tcl support by typing: make WITH_TCL=yes
+.if defined(WITH_TCL)
 LIB_DEPENDS=   tcl80jp.1:${PORTSDIR}/japanese/tcl80 \
                tk80jp.1:${PORTSDIR}/japanese/tk80
 TCL_INCDIR=    ${LOCALBASE}/include/tcl8.0jp
@@ -31,19 +39,21 @@
 MAKE_ENV+=     TCL_INCDIR=${TCL_INCDIR}
 CONFIGURE_TCL= --with-tcl --with-tclconfig=${LOCALBASE}/lib/tcl8.0jp --with-tkc
onfig=${LOCALBASE}/lib/tk8.0jp
 .endif
-.if defined(MULTIBYTE)
-WITH_MB=               --enable-multibyte=${MULTIBYTE}
+.if defined(DEFAULT_ENCODING)
+USE_MB=                --enable-multibyte=${DEFAULT_ENCODING}
+.else
+USE_MB=                --enable-multibyte=EUC_JP
 .endif
-.if defined(USE_PERL)
-WITH_PERL=             --with-perl
+.if defined(WITH_PERL)
+USE_PERL=              --with-perl
 .endif
-.if defined(USE_ODBC)
-WITH_ODBC=             --with-odbc
+.if defined(WITH_ODBC)
+USE_ODBC=              --with-odbc
 .endif
 
-# if you want jdbc, type make USE_JDBC=yes
+# if you want jdbc, type make WITH_JDBC=yes
 # Honors JAVA_HOME if you have it set, and don't want the dependency.
-.if defined(USE_JDBC)
+.if defined(WITH_JDBC)
 JAVA_HOME?=    ${LOCALBASE}/jdk1.1.8
 BUILD_DEPENDS= ${JAVA_HOME}/bin/javac:${PORTSDIR}/java/jdk
 #MAKE_ENV+=    JAVA_HOME=${JAVA_HOME}
@@ -60,7 +70,7 @@
 CONFIGURE_ARGS=        --prefix=${LOCALBASE}/pgsql \
                --enable-locale \
                --with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
-               ${WITH_MB} ${WITH_PERL} ${WITH_ODBC} \
+               ${USE_MB} ${USE_PERL} ${USE_ODBC} \
                --with-includes="${LOCALBASE}/include ${TCL_INCDIR} ${TK_INCDIR}
" \
                ${CONFIGURE_TCL} \
                --with-libraries=${LOCALBASE}/lib
@@ -99,20 +109,29 @@
 pre-fetch:
        @${ECHO_MSG} "To install and run postgresql you need to compile kernel w
ith:"
        @${ECHO_MSG} "        options    \"SYSVSHM, SYSVSEM, SYSVMSG\""
-.if !defined(USE_TCL)
+.if !defined(DEFAULT_ENCODING)
+       @${ECHO_MSG} "   make DEFAULT_ENCODING=<encoding>"
+       @${ECHO_MSG} "where <encoding> is one of these:"
+       @${ECHO_MSG} "   EUC_JP SQL_ASCII LATIN1 LATIN2 LATIN3 LATIN4 LATIN5"
+       @${ECHO_MSG} "   EUC_CN EUC_KR EUC_TW KOI8"
+       @${ECHO_MSG} "   UNICODE MULE_INTERNAL WIN ALT"
+       @${ECHO_MSG} "The default encoding is  EUC_JP."
+.endif
+.if !defined(WITH_TCL)
        @${ECHO_MSG} "To build the \"PostgreSQL to Tcl interface library\", libp
gtcl, type:"
-       @${ECHO_MSG} "    make USE_TCL=yes"
+       @${ECHO_MSG} "    make WITH_TCL=yes"
 .else
        @${ECHO_MSG} "Building PostgreSQL with \"libpgtcl\"."
 .endif
-.if !defined(USE_JDBC)
+.if !defined(WITH_JDBC)
        @ ${ECHO_MSG} "To build Java (JDBC) support, type:"
-       @ ${ECHO_MSG} "   make USE_JDBC=yes"
+       @ ${ECHO_MSG} "   make WITH_JDBC=yes"
 .else
        @ ${ECHO_MSG} "Building PostgreSQL with \"postgresql.jar\"."
 .endif
 
 post-patch:
+       @${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/jumbo-20001025.patch.gz | ${PATCH} $
{PATCH_ARGS} -d ${WRKDIR} 2> /dev/null || exit 0
        @ ${MV} ${WRKSRC}/template/freebsd ${WRKSRC}/template/freebsd.orig
        @ ${SED} -e 's#CFLAGS:-O2 -m486 -pipe#CFLAGS:${CFLAGS}#' \
                -e 's#USE_LOCALE:no#USE_LOCALE:yes#' \
@@ -122,7 +141,7 @@
                ${WRKSRC}/Makefile.global.in.old \
                >> ${WRKSRC}/Makefile.global.in
 post-build:
-.if defined(USE_JDBC)
+.if defined(WITH_JDBC)
        @ cd ${WRKSRC}/interfaces/jdbc && ${GMAKE}
 .if !defined(NOPORTDOCS)
        @ cd ${WRKSRC}/interfaces/jdbc && ${GMAKE} examples
@@ -178,17 +197,17 @@
        @ ${CHMOD} 554 ${PREFIX}/etc/rc.d/pgsql.sh
        @ ${CHOWN} root.pgsql ${PREFIX}/etc/rc.d/pgsql.sh
        @ ${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/pgsql
-.if defined(USE_TCL)
+.if defined(WITH_TCL)
        @${CP} ${TMPPLIST} ${TMPPLIST}.notcl
        @${CAT} ${PKGDIR}/pkg-plist.tcl ${TMPPLIST}.notcl > ${TMPPLIST}
        @${RM} ${TMPPLIST}.notcl
 .endif
-.if defined(USE_ODBC)
+.if defined(WITH_ODBC)
        @${CP} ${TMPPLIST} ${TMPPLIST}.noodbc
        @${CAT} ${PKGDIR}/pkg-plist.odbc ${TMPPLIST}.noodbc > ${TMPPLIST}
        @${RM} ${TMPPLIST}.noodbc
 .endif
-.if defined(USE_JDBC)
+.if defined(WITH_JDBC)
        @ ${MKDIR} -m 0555 ${PREFIX}/share/java
        @ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/postgresql.jar \
                          ${PREFIX}/share/java/postgresql.jar
Only in postgresql7.org: Makefile.org
diff -u postgresql7.org/distinfo postgresql7/distinfo
--- postgresql7.org/distinfo    Wed Jul 19 10:18:06 2000
+++ postgresql7/distinfo        Thu Nov  2 17:10:20 2000
@@ -1 +1,2 @@
-MD5 (postgresql-7.0.2.tar.gz) = fc512e38394256e2749299fdd69a937e
+MD5 (postgresql/postgresql-7.0.2.tar.gz) = fc512e38394256e2749299fdd69a937e
+MD5 (postgresql/jumbo-20001025.patch.gz) = c00f6578bba3522c90115412d53293aa
Common subdirectories: postgresql7.org/files and postgresql7/files
Common subdirectories: postgresql7.org/scripts and postgresql7/scripts

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001102084643.DC9B637B687>