From 6c799f30c2bf08be0783e095db0252546ab24c01 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Fri, 1 Jan 1999 07:19:45 +0000 Subject: Upgrade to v6.4. This version of port does not support complete packing list for -DMULTIBYTE, -DUSE_PERL or -DUSE_ODBC options. I'll fix it later. PR: ports/8856, ports/8976 Submitted by: Ichiro Fukuhara --- japanese/postgresql7/Makefile | 93 ++++++--- japanese/postgresql7/distinfo | 4 +- japanese/postgresql7/files/patch-ad | 4 +- japanese/postgresql7/pkg-install | 98 +++++++++ japanese/postgresql7/pkg-plist | 341 ++++++++++++++++++++----------- japanese/postgresql7/pkg-plist.tcl | 388 +++++++++++++++++++++++++----------- 6 files changed, 665 insertions(+), 263 deletions(-) create mode 100644 japanese/postgresql7/pkg-install (limited to 'japanese/postgresql7') diff --git a/japanese/postgresql7/Makefile b/japanese/postgresql7/Makefile index 31db55929a7c..6bdc835753ee 100644 --- a/japanese/postgresql7/Makefile +++ b/japanese/postgresql7/Makefile @@ -1,34 +1,47 @@ # New ports collection makefile for: PostgreSQL-j -# Version required: 6.3.2+Multibyte-patch -# Date created: 20 Aug 1998 +# Version required: 6.4+Multibyte-patch +# Date created: 25 Nov 1998 # Whom: Ichiro Fukuhara # -# $Id: Makefile,v 1.2 1998/09/28 10:30:52 asami Exp $ +# $Id$ # -DISTNAME= postgresql-6.3.2 -PKGNAME= ja-postgresql-6.3.2 +DISTNAME= postgresql-v6.4 +PKGNAME= ja-postgresql-6.4 CATEGORIES= japanese databases MASTER_SITES= ftp://ftp.postgresql.org/pub/ \ ftp://ftp.jaist.ac.jp/pub/dbms/PostgreSQL/ \ - ftp://ftp.sra.co.jp/pub/cmd/postgres/6.3.2/ + ftp://ftp.sra.co.jp/pub/cmd/postgres/6.4/ -PATCH_SITES= ftp://ftp.sra.co.jp/pub/cmd/postgres/6.3.2/patches/FreeBSD/ -PATCHFILES= jumbo_981104.patch.gz +PATCH_SITES= ftp://ftp.sra.co.jp/pub/cmd/postgres/6.4/patches/ +PATCHFILES= jumbo-981124.patch.gz MAINTAINER= ichiro@ichiro.org WRKSRC= ${WRKDIR}/${DISTNAME}/src PATCH_DIST_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E -p1 +PLISTS= PLIST # 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) -MAKE_ENV= USE_TCL=true TCL_INCDIR=${PREFIX}/include/tcl7.6 -LIB_DEPENDS= tcl76jp.1:${PORTSDIR}/japanese/tcl76 \ - tk42jp.1:${PORTSDIR}/japanese/tk42 -WITH_TCL= --with-tcl -PLIST= ${PKGDIR}/PLIST.tcl +TCL_INCDIR= ${PREFIX}/include/tcl8.0jp +TK_INCDIR= ${PREFIX}/include/tk8.0jp +MAKE_ENV= USE_TCL=true TCL_INCDIR=${TCL_INCDIR} +WITH_TCL= --with-tcl --with-tclconfig="${PREFIX}/lib/tcl8.0jp ${PREFIX}/lib/tk8.0jp" +LIB_DEPENDS= tcl80jp.1:${PORTSDIR}/japanese/tcl80 \ + tk80jp.1:${PORTSDIR}/japanese/tk80 +PLISTS+= PLIST.tcl +.endif +.if defined(MULTIBYTE) +WITH_MB= --with-mb=${MULTIBYTE} +.endif +.if defined(USE_PERL) +WITH_PERL= --with-perl +.endif +.if defined(USE_ODBC) +WITH_ODBC= --with-odbc +PLISTS+= PLIST.odbc .endif NO_PACKAGE= "Requires ${PGSQL_UID} uid" @@ -38,15 +51,18 @@ MAKEFILE= GNUmakefile HAS_CONFIGURE= YES CONFIGURE_ARGS= --prefix=${PREFIX}/${INSTALL_DIR} \ --with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \ - --with-includes=${PREFIX}/include ${WITH_TCL} \ - --with-libraries=${PREFIX}/lib --with-mb=EUC_JP + --with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" ${WITH_TCL}\ + --with-libraries=${PREFIX}/lib \ + ${WITH_MB} ${WITH_PERL} ${WITH_ODBC} + +INSTALL_TARGET= install install-man MAN1= cleardbdir.1 createdb.1 createuser.1 destroydb.1 \ - destroyuser.1 ecpg.1 initdb.1 ipcclean.1 initlocation.1 \ - pg_dump.1 pg_dumpall.1 pg_passwd.1 pgintro.1 postgres.1 \ - postmaster.1 psql.1 -MAN3= catalogs.3 large_objects.3 libpq.3 oracle_compat.3 pgbuiltin.3 -MAN5= bki.5 page.5 pg_hba.conf.5 + destroyuser.1 ecpg.1 initdb.1 initlocation.1 \ + ipcclean.1 pg_dump.1 pg_dumpall.1 pg_passwd.1 \ + pg_upgrade.1 postgres.1 postmaster.1 psql.1 +MAN3= catalogs.3 libpq.3 +MAN5= pg_hba.conf.5 MANL= abort.l alter_table.l alter_user.l begin.l close.l cluster.l \ commit.l copy.l create_aggregate.l create_database.l \ create_function.l create_index.l create_language.l \ @@ -57,12 +73,13 @@ MANL= abort.l alter_table.l alter_user.l begin.l close.l cluster.l \ drop_language.l drop_operator.l drop_rule.l drop_sequence.l \ drop_table.l drop_trigger.l drop_type.l drop_user.l \ drop_view.l end.l explain.l fetch.l grant.l insert.l listen.l \ - load.l lock.l move.l notify.l reset.l revoke.l \ - rollback.l select.l set.l show.l sql.l update.l vacuum.l + load.l lock.l move.l notify.l reset.l revoke.l rollback.l \ + select.l set.l show.l sql.l update.l vacuum.l MANPREFIX= ${PREFIX}/${INSTALL_DIR} PLIST_SUB= INSTALL_DIR=${INSTALL_DIR} +PLIST= ${WRKDIR}/PLIST # These values are easily overridable like as # "make PGQL_UID=postgresql PGSQL_GID=postgresql install" @@ -71,13 +88,20 @@ PGSQL_UID= pgsql PGSQL_GID= pgsql pre-fetch: -.if !defined(USE_TCL) +.if !defined(USE_TCL) & !defined(USE_PERL) & !defined(USE_ODBC) & !defined(MULTIBYTE) + + @${ECHO_MSG} "To build the \"MULTIBYTE PostgreSQL\", type:" + @${ECHO_MSG} " make MULTIBYTE={EUC_JP,EUC_CN,EUC_KR,EUC_TW,UNICODE,MULE_INTERNAL,LATIN1-5}" + @${ECHO_MSG} " USE_TCL=yes, USE_PERL=yes, USE_ODBC=yes" + @${ECHO_MSG} "" @${ECHO_MSG} "To build the \"PostgreSQL to Tcl interface library\", libpgtcl, type:" - @${ECHO_MSG} " make USE_TCL=yes" + @${ECHO_MSG} " make USE_TCL=yes" .else @${ECHO_MSG} "Building PostgreSQL with \"libpgtcl\"." .endif +.include + post-patch: find ${WRKDIR} -name '*.orig' -exec ${RM} {} \; @@ -86,17 +110,19 @@ post-build: @ ${ECHO} "Dump existing databases, before installing new db version !!" @ ${ECHO} "Detailed instructions, see INSTALL file under ${WRKDIR}... " @ ${ECHO} "------------------------------------------------------------" + @${RM} -f ${WRKDIR}/PLIST +.for i in ${PLISTS} + ${CAT} ${PKGDIR}/${i} >> ${WRKDIR}/PLIST +.endfor pre-install: .if defined(PACKAGE_BUILDING) ${RM} -rf ${PREFIX}/${INSTALL_DIR} .endif @ ${MKDIR} ${PREFIX}/${INSTALL_DIR} - @ ${SED} "s=PGSQL_UID=${PGSQL_UID}=g ; s=PGSQL_GID=${PGSQL_GID}=g ; \ - s=INSTALL_DIR=${INSTALL_DIR}=g" < ${SCRIPTDIR}/createuser.tmpl \ - > ${WRKDIR}/createuser - @ ${SETENV} ${MAKE_ENV} perl ${WRKDIR}/createuser - + @ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \ + PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \ + ${SH} ${PKGDIR}/INSTALL PRE-INSTALL post-install: @ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \ ${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \ @@ -123,7 +149,7 @@ post-install: @ chown -R ${PGSQL_UID}:${PGSQL_GID} ${PREFIX}/${INSTALL_DIR} @ ${ECHO} 'Initializing PostgreSQL Databases - this may take a few minutes...' @ ${LDCONFIG} -m ${PREFIX}/${INSTALL_DIR}/lib - @ su -l ${PGSQL_UID} -c '${PREFIX}/${INSTALL_DIR}/bin/initdb --pglib=${PREFIX}/${INSTALL_DIR}/lib --pgdata=${PREFIX}/${INSTALL_DIR}/data' + @ /usr/bin/su -l ${PGSQL_UID} -c '${PREFIX}/${INSTALL_DIR}/bin/initdb --pglib=${PREFIX}/${INSTALL_DIR}/lib --pgdata=${PREFIX}/${INSTALL_DIR}/data' @ ${SED} "s=!!PG_PATH!!=${PREFIX}/${INSTALL_DIR}=g ; s=!!PGSQL_UID!!=${PGSQL_UID}=g" \ < ${FILESDIR}/pgsql.sh.tmpl > ${PREFIX}/etc/rc.d/pgsql.sh @ chmod 554 ${PREFIX}/etc/rc.d/pgsql.sh @@ -136,5 +162,10 @@ post-install: .if !defined(BATCH) @ more -e ${FILESDIR}/post-install-notes .endif +#.if (${PORTOBJFORMAT} == "elf") +# @${ECHO} "Hack for ELF library..." +# @${RM} ${PREFIX}/${INSTALL_DIR}/lib/libpg.so.2.0 +# @${RM} ${PREFIX}/${INSTALL_DIR}/lib/libpg++.so.2.0 +#.endif -.include +.include diff --git a/japanese/postgresql7/distinfo b/japanese/postgresql7/distinfo index 2c981a8e7977..da2303a66330 100644 --- a/japanese/postgresql7/distinfo +++ b/japanese/postgresql7/distinfo @@ -1,2 +1,2 @@ -MD5 (postgresql-6.3.2.tar.gz) = 8902842461c9a42854ba9883bee56a4c -MD5 (jumbo_981104.patch.gz) = b3dfe9e1fe61106133d71808723318e9 +MD5 (postgresql-v6.4.tar.gz) = 8a6e224f90b0201757eb05aa0068bfa9 +MD5 (jumbo-981124.patch.gz) = 7050d2c2221c004d1b3778f8965be92d diff --git a/japanese/postgresql7/files/patch-ad b/japanese/postgresql7/files/patch-ad index 3529936565aa..56f482cd4dd8 100644 --- a/japanese/postgresql7/files/patch-ad +++ b/japanese/postgresql7/files/patch-ad @@ -5,8 +5,8 @@ SHARED_LIB:-fpic -DPIC -CFLAGS:-O2 -m486 -pipe +CFLAGS:-pipe -O2 - SRCH_INC:/usr/local/include - SRCH_LIB:/usr/local/lib + SRCH_INC: + SRCH_LIB: -USE_LOCALE:no +USE_LOCALE:yes DLSUFFIX:.so diff --git a/japanese/postgresql7/pkg-install b/japanese/postgresql7/pkg-install new file mode 100644 index 000000000000..e589ba9ef351 --- /dev/null +++ b/japanese/postgresql7/pkg-install @@ -0,0 +1,98 @@ +#!/bin/sh +# an installation script for postgresql + +check_pw() +{ + if which -s pw; then + : + else + cat < /dev/null` + id_pgsql=`id -u ${PGSQL_UID} 2> /dev/null` + if [ X"$id_pgsql" != X ]; then + exit 0 + elif [ X"$id_70" != X ]; then + cat <