mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Upgrade to 7.1, change to new layout style.
PR: ports/26741 Submitted by: maintainer
This commit is contained in:
parent
fe7ab376bb
commit
bfb9f8e6c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41758
476 changed files with 16324 additions and 23016 deletions
|
@ -6,47 +6,62 @@
|
|||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTVERSION= 7.0.3
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 7.1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
MASTER_SITES= ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
ftp://ftp.de.postgresql.org/%SUBDIR%/ \
|
||||
ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.digex.net/pub/packages/database/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.sunet.se/pub/unix/databases/relational/postgresql/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= source/v${PORTVERSION}
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}.base${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.support${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.docs${EXTRACT_SUFX}
|
||||
# ${PORTNAME}-${PORTVERSION}.test${EXTRACT_SUFX}
|
||||
DIST_SUBDIR= postgresql
|
||||
DISTFILES= ${PORTNAME}-base-${PORTVERSION}${EXTRACT_SUFX} \
|
||||
${PORTNAME}-opt-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.if !defined(NOPORTDOCS)
|
||||
DISTFILES+= ${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
|
||||
MAINTAINER= girgen@partitur.se
|
||||
|
||||
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
||||
DIST_SUBDIR= postgresql
|
||||
|
||||
INSTALLS_SHLIB= YES
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
LDCONFIG_DIRS= %%PREFIX%%/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
DOCDIR= ${WRKDIR}/${DISTNAME}/doc
|
||||
PLIST= ${WRKDIR}/.PLIST.generated
|
||||
|
||||
USE_GMAKE= YES
|
||||
MAKEFILE= GNUmakefile
|
||||
HAS_CONFIGURE= YES
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \
|
||||
--enable-locale \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
CONFIGURE_ARGS= --enable-locale \
|
||||
--enable-syslog --with-CXX \
|
||||
--sysconfdir=${PREFIX}/etc/postgresql \
|
||||
--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \
|
||||
--with-libraries=${PREFIX}/lib
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/pgsql/include \
|
||||
--datadir=${PREFIX}/share \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
--prefix=${PREFIX}/pgsql
|
||||
PG_PREFIX= pgsql/
|
||||
PG_INCLUDE= pgsql/include
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
.else
|
||||
GNU_CONFIGURE= YES
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/include/pgsql
|
||||
PG_PREFIX=""
|
||||
PG_INCLUDE= include/pgsql
|
||||
.endif
|
||||
|
||||
PLIST_SUB= PG_PREFIX="${PG_PREFIX}" PG_INCLUDE="${PG_INCLUDE}"
|
||||
|
||||
MAN1= createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_ctl.1 \
|
||||
pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_upgrade.1 pgaccess.1 \
|
||||
pgadmin.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_config.1 \
|
||||
pg_ctl.1 pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_restore.1 \
|
||||
pgaccess.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
vacuumdb.1
|
||||
MANL= abort.l alter_group.l alter_table.l alter_user.l \
|
||||
begin.l close.l cluster.l comment.l commit.l copy.l \
|
||||
begin.l checkpoint.l close.l cluster.l comment.l commit.l copy.l \
|
||||
create_aggregate.l create_constraint_trigger.l \
|
||||
create_database.l create_function.l create_group.l \
|
||||
create_index.l create_language.l create_operator.l \
|
||||
|
@ -60,9 +75,8 @@ MANL= abort.l alter_group.l alter_table.l alter_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 reindex.l \
|
||||
reset.l revoke.l rollback.l select.l select_into.l \
|
||||
set.l show.l truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
set.l set_constraints.l set_transaction.l show.l \
|
||||
truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
WRKDIR="${WRKDIR}" \
|
||||
|
@ -76,92 +90,66 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|||
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
||||
.endif
|
||||
|
||||
pre-extract:
|
||||
pre-fetch:
|
||||
@ ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postgresql
|
||||
|
||||
post-patch:
|
||||
@ ${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#' \
|
||||
${WRKSRC}/template/freebsd.orig >> ${WRKSRC}/template/freebsd
|
||||
@ ${MV} ${WRKSRC}/Makefile.global.in ${WRKSRC}/Makefile.global.in.old
|
||||
@ ${SED} -e 's=!!PREFIX!!=${PREFIX}=g' \
|
||||
${WRKSRC}/Makefile.global.in.old \
|
||||
>> ${WRKSRC}/Makefile.global.in
|
||||
|
||||
#
|
||||
# USE_AUTOCONF implies GNU_CONFIGURE, which we don't want, so we have
|
||||
# to do it by hand.
|
||||
#
|
||||
pre-configure:
|
||||
@(cd ${WRKSRC} && ${AUTOCONF})
|
||||
|
||||
post-build:
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${GMAKE} -C ${WRKSRC}/interfaces/jdbc jdbc${JAVAVERSION}
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if defined(PACKAGE_BUILDING)
|
||||
${RM} -rf ${PREFIX}/pgsql
|
||||
@ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL
|
||||
.if !defined(BATCH)
|
||||
# remind folks twice for a while, so they really don't miss the layout shift
|
||||
@ ${SED} "s|/usr/local|${PREFIX}|g" < ${PKGMESSAGE} | head -n 25 | more -e
|
||||
.endif
|
||||
@ ${MKDIR} ${PREFIX}/pgsql
|
||||
@ ${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser
|
||||
.if !defined(BATCH)
|
||||
@ ${SED} -e "s#%%WRKDIR%%#${WRKDIR}#; s#%%DISTNAME%%#${DISTNAME}#" \
|
||||
< ${FILESDIR}/pre-install-notes | more -e
|
||||
@ ${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${PLIST} ${PLIST}.nomulti ;\
|
||||
${GREP} -v bin/pg_encoding ${PLIST}.nomulti > ${PLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@ ${CP} ${PLIST} ${PLIST}.notcl ;\
|
||||
${CAT} ${PKGDIR}/${TCL_PLIST} ${PLIST}.notcl > ${PLIST} ;\
|
||||
${RM} ${PLIST}.notcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.noodbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.odbc ${PLIST}.noodbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.nojdbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.jdbc ${PLIST}.nojdbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.nojdbc
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${PLIST}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(NOPORTDOCS)
|
||||
@ ${GMAKE} -C ${DOCDIR} man
|
||||
.else
|
||||
@ ${GMAKE} -C ${DOCDIR} install
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/FAQ* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/README* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/TODO ${PREFIX}/share/doc/pgsql
|
||||
# ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/*ps.gz ${PREFIX}/share/doc/pgsql
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${TMPPLIST}
|
||||
.endif
|
||||
@ ${SED} 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
< ${FILESDIR}/dot.profile.in \
|
||||
> ${PREFIX}/pgsql/dot.profile.dist;
|
||||
@ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \
|
||||
${CP} ${PREFIX}/pgsql/dot.profile.dist \
|
||||
${PREFIX}/pgsql/.profile; \
|
||||
# install shell defaults for pgsql user
|
||||
.for i in profile cshrc
|
||||
@ ${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/dot.$i.in \
|
||||
> ${PREFIX}/share/postgresql/dot.$i.dist; \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/; \
|
||||
if [ ! -f ~pgsql/.$i ]; then \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/.$i; \
|
||||
fi
|
||||
@ ${CHOWN} -R pgsql:pgsql ${PREFIX}/pgsql
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/pgsql/lib
|
||||
@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/pgsql/lib
|
||||
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
|
||||
.endfor
|
||||
@ ${SED} -e "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/pgsql.sh.tmpl \
|
||||
> ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHMOD} 554 ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHOWN} root.pgsql ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#' < ${FILESDIR}/post-install-notes \
|
||||
> ${PREFIX}/pgsql/post-install-notes
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.nomulti
|
||||
@${GREP} -v pgsql/bin/pg_encoding ${TMPPLIST}.nomulti > ${TMPPLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.notcl
|
||||
@${CAT} ${PKGDIR}/${TCL_PLIST} ${TMPPLIST}.notcl > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.notcl
|
||||
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
||||
# XXX This directory and the single file are not registered in
|
||||
# XXX the PLIST, because of different PREFIX.
|
||||
@${MKDIR} ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
> ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3/pkgIndex.tcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.noodbc
|
||||
@${CAT} ${PKGDIR}/pkg-plist.odbc ${TMPPLIST}.noodbc > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/postgresql.jar \
|
||||
@ ${LN} -sf ${PREFIX}/share/postgresql/postgresql.jar \
|
||||
${PREFIX}/share/java/classes/postgresql.jar
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting postgresql.jar in"
|
||||
|
@ -169,33 +157,38 @@ post-install:
|
|||
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
|
||||
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
|
||||
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
|
||||
@ ${ECHO_MSG} "You will need to modify you applications' props files."
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.jdbc >> ${TMPPLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/example/*java \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/README* \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting jdbc examples into ${PREFIX}/share/examples/pgsql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\
|
||||
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
|
||||
pax -rw . ${PREFIX}/share/examples/postgresql
|
||||
.for i in README Implementation
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
|
||||
${PREFIX}/share/examples/postgresql
|
||||
.endfor
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting java examples into ${PREFIX}/share/examples/postgresql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(BATCH)
|
||||
@ more -e ${PREFIX}/pgsql/post-install-notes
|
||||
.endif
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_version postgres psql
|
||||
@ strip ${PREFIX}/pgsql/bin/${file}
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_restore postgres psql
|
||||
@ strip ${PREFIX}/${PG_PREFIX}bin/${file}
|
||||
.endfor
|
||||
.endif
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port/freebsd
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port
|
||||
@ ${CAT} ${PKGMESSAGE}
|
||||
# information overload mode activated, sorry about this... ;-)
|
||||
@ ${CAT} ${FILESDIR}/post-install-notes ${PKGMESSAGE} |\
|
||||
${SED} "s|/usr/local|${PREFIX}|g" |\
|
||||
tee ${PREFIX}/share/postgresql/post-install-notes ;\
|
||||
${INSTALL_DATA} ${PREFIX}/share/postgresql/post-install-notes ~pgsql/. ;\
|
||||
${CHOWN} -R pgsql:pgsql ~pgsql/.
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/${PG_PREFIX}lib
|
||||
.endif
|
||||
|
||||
post-clean:
|
||||
@ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
||||
|
||||
post-extract: ${POSTEXTRACT}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (postgresql/postgresql-7.0.3.base.tar.gz) = 0eeda8217b5b11e5a9351fc424808426
|
||||
MD5 (postgresql/postgresql-7.0.3.support.tar.gz) = b930f71068d776ef45402fcbebfa58cf
|
||||
MD5 (postgresql/postgresql-7.0.3.docs.tar.gz) = 3d3fc76073f6d77febefc83f887fc87d
|
||||
MD5 (postgresql/postgresql-base-7.1.tar.gz) = fce51e036ea8aadafe42f35841e50cc6
|
||||
MD5 (postgresql/postgresql-opt-7.1.tar.gz) = dca8a70020caab1024afe4d0f203fef1
|
||||
MD5 (postgresql/postgresql-docs-7.1.tar.gz) = 8fd7a862909663a6034d4aeb70ea7b71
|
||||
|
|
13
databases/postgresql-devel-server/files/dot.cshrc.in
Normal file
13
databases/postgresql-devel-server/files/dot.cshrc.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
set path = ( %%PREFIX%%/%%PG_PREFIX%%bin $path )
|
||||
|
||||
setenv PGLIB %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
setenv PGDATA $HOME/data
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#setenv PGDATESTYLE ISO
|
||||
#setenv LC_ALL sv_SE.ISO_8859-1
|
||||
|
||||
# if you want to make regression tests use this TZ
|
||||
#setenv TZ PST8PDT
|
|
@ -1,10 +1,12 @@
|
|||
PATH=${PATH}:%%PREFIX%%/pgsql/bin
|
||||
PGLIB=%%PREFIX%%/pgsql/lib
|
||||
# both new and old layout's paths, but new path first...
|
||||
PATH=%%PREFIX%%/%%PG_PREFIX%%bin:${PATH}
|
||||
|
||||
PGLIB=%%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
PGDATA=%%PREFIX%%/pgsql/data
|
||||
PGDATA=${HOME}/data
|
||||
|
||||
export PATH MANPATH PGLIB PGDATA
|
||||
export PATH PGLIB PGDATA
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#PGDATESTYLE=ISO
|
||||
|
|
|
@ -1,67 +1,118 @@
|
|||
--- bin/pg_passwd/pg_passwd.c.orig Mon Apr 17 05:45:18 2000
|
||||
+++ bin/pg_passwd/pg_passwd.c Sat May 20 17:54:59 2000
|
||||
@@ -18,11 +18,15 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#ifndef _POSIX_SOURCE
|
||||
+# define _PASSWORD_LEN 128 /* max length, not containing NULL */
|
||||
--- src/bin/pg_passwd/pg_passwd.c.orig Sat Mar 24 01:54:55 2001
|
||||
+++ src/bin/pg_passwd/pg_passwd.c Wed Apr 18 04:54:14 2001
|
||||
@@ -7,6 +7,12 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
+
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <pwd.h> /* defines _PASSWORD_LEN, max # of characters in a password */
|
||||
+#include <sys/time.h> /* gettimeofday for password salt */
|
||||
+#endif
|
||||
+
|
||||
char *comname;
|
||||
static void usage(FILE *stream);
|
||||
#define issaltchar(c) (isalnum((unsigned char) (c)) || (c) == '.' || (c) == '/')
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
@@ -23,18 +29,31 @@
|
||||
* We assume that the output of crypt(3) is always 13 characters,
|
||||
* and that at most 8 characters can usefully be sent to it.
|
||||
*
|
||||
+ * For FreeBSD, take these values from /usr/include/pwd.h
|
||||
* Postgres usernames are assumed to be less than NAMEDATALEN chars long.
|
||||
*/
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define CLEAR_PASSWD_LEN _PASSWORD_LEN
|
||||
+#define CRYPTED_PASSWD_LEN _PASSWORD_LEN /* max length, not containing NULL */
|
||||
+#define SALT_LEN 10
|
||||
+#else
|
||||
#define CLEAR_PASSWD_LEN 8 /* not including null */
|
||||
#define CRYPTED_PASSWD_LEN 13 /* not including null */
|
||||
+#define SALT_LEN 3
|
||||
+#endif
|
||||
+
|
||||
+static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
|
||||
+ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
+
|
||||
|
||||
const char *progname;
|
||||
|
||||
static void usage(void);
|
||||
+static void to64(char *s, long v, int n);
|
||||
static void read_pwd_file(char *filename);
|
||||
static void write_pwd_file(char *filename, char *bkname);
|
||||
-static void encrypt_pwd(char key[9], char salt[3], char passwd[14]);
|
||||
+static void encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1]);
|
||||
static void encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1]);
|
||||
static void prompt_for_username(char *username);
|
||||
static void prompt_for_password(char *prompt, char *password);
|
||||
|
||||
@@ -150,7 +154,7 @@
|
||||
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
- if (strlen(p) != 13)
|
||||
+ if (strlen(p) > _PASSWORD_LEN)
|
||||
{
|
||||
fprintf(stderr, "WARNING: %s: line %d: illegal password length.\n",
|
||||
filename, npwds + 1);
|
||||
@@ -214,7 +218,7 @@
|
||||
@@ -47,6 +66,15 @@
|
||||
printf("Report bugs to <pgsql-bugs@postgresql.org>.\n");
|
||||
}
|
||||
|
||||
+static void
|
||||
+to64(char *s, long v, int n)
|
||||
+{
|
||||
+ while (--n >= 0) {
|
||||
+ *s++ = itoa64[v&0x3f];
|
||||
+ v >>= 6;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
typedef struct
|
||||
{
|
||||
char *uname;
|
||||
@@ -154,7 +182,7 @@
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
|
||||
- if (strlen(p) != CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
+ if (strlen(p) > CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
{
|
||||
fprintf(stderr, "%s:%d: warning: invalid password length\n",
|
||||
filename, npwds + 1);
|
||||
@@ -221,15 +249,25 @@
|
||||
|
||||
static void
|
||||
-encrypt_pwd(char key[9], char salt[3], char passwd[14])
|
||||
+encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1])
|
||||
encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1])
|
||||
{
|
||||
+#if !defined(__FreeBSD__)
|
||||
int n;
|
||||
-
|
||||
+#endif
|
||||
/* select a salt, if not already given */
|
||||
if (salt[0] == '\0')
|
||||
{
|
||||
+#if defined(__FreeBSD__)
|
||||
+ struct timeval tv;
|
||||
+ srandomdev();
|
||||
+ gettimeofday(&tv,0);
|
||||
+ to64(&salt[0], random(), 3);
|
||||
+ to64(&salt[3], tv.tv_usec, 3);
|
||||
+ to64(&salt[6], tv.tv_sec, 2);
|
||||
+ salt[8] = '\0';
|
||||
srand(time(NULL));
|
||||
+#else
|
||||
do
|
||||
{
|
||||
n = rand() % 256;
|
||||
@@ -241,6 +279,7 @@
|
||||
} while (!issaltchar(n));
|
||||
salt[1] = n;
|
||||
salt[2] = '\0';
|
||||
+#endif
|
||||
}
|
||||
|
||||
@@ -246,9 +250,9 @@
|
||||
|
||||
#ifdef NOT_USED
|
||||
static int
|
||||
-check_pwd(char key[9], char passwd[14])
|
||||
+check_pwd(char key[9], char passwd[_PASSWORD_LEN+1])
|
||||
{
|
||||
- char shouldbe[14];
|
||||
+ char shouldbe[_PASSWORD_LEN+1];
|
||||
char salt[3];
|
||||
|
||||
salt[0] = passwd[0];
|
||||
@@ -256,7 +260,7 @@
|
||||
salt[2] = '\0';
|
||||
encrypt_pwd(key, salt, shouldbe);
|
||||
|
||||
- return strncmp(shouldbe, passwd, 13) == 0 ? 1 : 0;
|
||||
+ return strncmp(shouldbe, passwd, _PASSWORD_LEN) == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -332,7 +336,7 @@
|
||||
char salt[3];
|
||||
char key[9],
|
||||
key2[9];
|
||||
- char e_passwd[14];
|
||||
+ char e_passwd[_PASSWORD_LEN+1];
|
||||
int i;
|
||||
|
||||
comname = argv[0];
|
||||
/* get encrypted password */
|
||||
@@ -335,7 +374,7 @@
|
||||
char *filename;
|
||||
char bkname[MAXPGPATH];
|
||||
char username[NAMEDATALEN];
|
||||
- char salt[3];
|
||||
+ char salt[SALT_LEN];
|
||||
char key[CLEAR_PASSWD_LEN + 1],
|
||||
key2[CLEAR_PASSWD_LEN + 1];
|
||||
char e_passwd[CRYPTED_PASSWD_LEN + 1];
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- configure.orig Sun Oct 10 14:37:07 1999
|
||||
+++ configure Sun Oct 10 14:37:29 1999
|
||||
@@ -1429,7 +1429,7 @@
|
||||
ELF_SYS=true
|
||||
else
|
||||
rm -rf conftest*
|
||||
- if test "X$elf" = "Xyes"
|
||||
+ if test "X$PORTOBJFORMAT" = "Xelf"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
|
@ -1,11 +0,0 @@
|
|||
--- Makefile.global.in.orig Sun Dec 6 00:08:56 1998
|
||||
+++ Makefile.global.in Sat Feb 27 04:23:12 1999
|
||||
@@ -79,7 +79,7 @@
|
||||
POSTMANDIR= $(POSTGRESDIR)/man
|
||||
|
||||
# Where the formatted documents (e.g., the reference manual) get installed.
|
||||
-POSTDOCDIR= $(POSTGRESDIR)/doc
|
||||
+POSTDOCDIR= !!PREFIX!!/share/doc/pgsql
|
||||
|
||||
# Where the header files necessary to build frontend programs get installed.
|
||||
HEADERDIR= $(POSTGRESDIR)/include
|
|
@ -1,11 +0,0 @@
|
|||
--- ../doc/Makefile.orig Sun Nov 29 06:30:13 1998
|
||||
+++ ../doc/Makefile Mon Jun 21 17:00:13 1999
|
||||
@@ -12,7 +12,7 @@
|
||||
#
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
-PGDOCS= $(POSTGRESDIR)/doc
|
||||
+PGDOCS= $(POSTDOCDIR)
|
||||
SRCDIR= ../src
|
||||
|
||||
TAR= tar
|
|
@ -1,58 +0,0 @@
|
|||
--- configure.in.orig Sun Nov 5 05:03:47 2000
|
||||
+++ configure.in Mon Dec 4 02:36:15 2000
|
||||
@@ -299,13 +299,28 @@
|
||||
[ --with-tcl build Tcl interfaces and pgtclsh ],
|
||||
[
|
||||
case "$withval" in
|
||||
- y | ye | yes) USE_TCL=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ y | ye | yes) USE_TCL=true; AC_MSG_RESULT(enabled) ;;
|
||||
*) USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ;;
|
||||
esac
|
||||
],
|
||||
[ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ]
|
||||
)
|
||||
|
||||
+dnl We include tk support with tcl unless user says --without-tk
|
||||
+if test USE_TCL = true
|
||||
+then
|
||||
+AC_MSG_CHECKING(setting USE_TK)
|
||||
+AC_ARG_WITH(
|
||||
+ tk,
|
||||
+ [ --without-tk build Tcl *without* Tk ],
|
||||
+ [
|
||||
+ case "$withval" in
|
||||
+ y | ye | yes) USE_TK=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ *) USE_TK=n; AC_MSG_RESULT(disabled) ;;
|
||||
+ esac
|
||||
+ ]
|
||||
+)
|
||||
+fi
|
||||
export USE_TCL
|
||||
export USE_TK
|
||||
|
||||
@@ -482,7 +497,7 @@
|
||||
#endif
|
||||
],
|
||||
ELF_SYS=true,
|
||||
-[if test "X$elf" = "Xyes"
|
||||
+[if test "X$PORTOBJFORMAT" = "Xyes"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
||||
@@ -1248,10 +1263,15 @@
|
||||
else
|
||||
AC_MSG_RESULT($TCL_CONFIG_SH)
|
||||
AC_SUBST(TCL_CONFIG_SH)
|
||||
+ . ${TCL_CONFIG_SH}
|
||||
+ AC_SUBST(TCL_LIB_SPEC)
|
||||
fi
|
||||
fi
|
||||
|
||||
-USE_TK=$USE_TCL # If TCL is disabled, disable TK
|
||||
+USE_TK=${USE_TK:=$USE_TCL} # If TCL is disabled, disable TK
|
||||
+ # otherwise -- enable unless explicitly
|
||||
+ # disabled
|
||||
+
|
||||
|
||||
dnl Check for Tk configuration script tkConfig.sh
|
||||
if test "$USE_TK" = true
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000
|
||||
+++ interfaces/libpq/fe-connect.c Fri Sep 15 13:53:52 2000
|
||||
@@ -801 +801 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -809 +809 @@
|
||||
- sprintf(conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
+ printfPQExpBuffer(&conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
@@ -822 +822 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -832 +832 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -850 +850 @@
|
||||
- strcpy(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/jdbc/Makefile.orig Sun Nov 5 05:03:53 2000
|
||||
+++ interfaces/jdbc/Makefile Fri Dec 8 03:16:17 2000
|
||||
@@ -10,10 +10,10 @@
|
||||
|
||||
FIND = find
|
||||
IDL2JAVA = idltojava -fno-cpp -fno-tie
|
||||
-JAR = jar
|
||||
-JAVA = java
|
||||
-JAVAC = javac -g
|
||||
-JAVADOC = javadoc
|
||||
+JAR = !!JAVA_HOME!!/bin/jar
|
||||
+JAVA = !!JAVA_HOME!!/bin/java
|
||||
+JAVAC = !!JAVA_HOME!!/bin/javac
|
||||
+JAVADOC = !!JAVA_HOME!!/bin/javadoc
|
||||
RM = rm -f
|
||||
TOUCH = touch
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
--- pl/tcl/Makefile~ Sat Apr 29 19:45:42 2000
|
||||
+++ pl/tcl/Makefile Sat May 20 22:42:22 2000
|
||||
@@ -71,7 +71,9 @@
|
||||
CFLAGS+= $(TCL_SHLIB_CFLAGS) $(TCL_DEFS)
|
||||
|
||||
CFLAGS+= -I$(SRCDIR)/include -I$(SRCDIR)/backend $(PGSQL_INCLUDES)
|
||||
-
|
||||
+
|
||||
+CFLAGS+= -I$(TCL_INCDIR)
|
||||
+
|
||||
#
|
||||
# Uncomment the following to enable the unknown command lookup
|
||||
# on the first of all calls to the call handler. See the doc
|
|
@ -1,5 +0,0 @@
|
|||
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
|
||||
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
|
||||
@@ -1 +1 @@
|
||||
-
|
||||
+-i -o "-F"
|
|
@ -1,42 +0,0 @@
|
|||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
|
@ -1,9 +0,0 @@
|
|||
This patches let you disable Tk even if you have it installed and
|
||||
makes sure the TCL-library is added as a dependency for libpgtcl.
|
||||
--- interfaces/libpgtcl/Makefile.in Tue Mar 7 20:58:36 2000
|
||||
+++ interfaces/libpgtcl/Makefile.in Wed Sep 20 08:57:28 2000
|
||||
@@ -29,3 +29,3 @@
|
||||
|
||||
-SHLIB_LINK+= $(LIBPQ)
|
||||
+SHLIB_LINK+= $(LIBPQ) @TCL_LIB_SPEC@
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
--- contrib/retep/build.xml~ Fri Mar 16 22:50:36 2001
|
||||
+++ contrib/retep/build.xml Wed Apr 18 09:24:20 2001
|
||||
@@ -38,6 +38,7 @@
|
||||
<target name="compile" depends="checks,prepare">
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="${package}/**" />
|
||||
+ <exclude name="${package}/**" unless="jdk1.2+" />
|
||||
</javac>
|
||||
</target>
|
||||
|
19
databases/postgresql-devel-server/files/patch-doc-makefile
Normal file
19
databases/postgresql-devel-server/files/patch-doc-makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- doc/Makefile~ Sun Jan 7 03:03:22 2001
|
||||
+++ doc/Makefile Wed Apr 18 08:12:30 2001
|
||||
@@ -43,10 +43,13 @@
|
||||
gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
|
||||
endif
|
||||
|
||||
-
|
||||
installdirs:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
|
||||
-
|
||||
+ifdef found_html
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/html
|
||||
+endif
|
||||
+ifdef found_man
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(mandir)
|
||||
+endif
|
||||
|
||||
uninstall:
|
||||
ifdef found_html
|
10
databases/postgresql-devel-server/files/patch-jdbc-build-xml
Normal file
10
databases/postgresql-devel-server/files/patch-jdbc-build-xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/interfaces/jdbc/build.xml~ Fri Mar 16 22:50:43 2001
|
||||
+++ src/interfaces/jdbc/build.xml Wed Apr 18 08:57:57 2001
|
||||
@@ -120,6 +120,7 @@
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="example/**" />
|
||||
<exclude name="example/corba/**"/>
|
||||
+ <exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
--- src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java~ Fri Feb 23 19:12:23 2001
|
||||
+++ src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java Wed Apr 18 08:51:03 2001
|
||||
@@ -288,8 +288,8 @@
|
||||
*/
|
||||
public java.sql.ResultSet getResultSet() throws SQLException
|
||||
{
|
||||
- if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
|
||||
- return result;
|
||||
+ if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
|
||||
+ return result;
|
||||
return null;
|
||||
}
|
||||
|
|
@ -2,28 +2,29 @@
|
|||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
|
||||
# Preinstalled options are -i -o "-F"
|
||||
# For postmaster startup options, edit $PGDATA/postgresql.conf
|
||||
|
||||
PGBIN=%%PREFIX%%/%%PG_PREFIX%%bin
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
[ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
su -l pgsql -c \
|
||||
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
|
||||
'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -w -l ~pgsql/errlog'
|
||||
echo -n ' pgsql'
|
||||
}
|
||||
;;
|
||||
|
||||
stop)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl stop -m fast'
|
||||
}
|
||||
;;
|
||||
|
||||
status)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl status'
|
||||
}
|
||||
;;
|
||||
|
||||
|
|
|
@ -15,5 +15,8 @@ operations. You do NOT need to install the pgaccess port separately.
|
|||
If you built in the TCL support, you can load the Pg package into your
|
||||
TCL scripts as easily as ``package require Pgtcl''.
|
||||
|
||||
To start PostgreSQL, run the startup script:
|
||||
%%PREFIX%%/etc/rc.d/010.pgsql.sh start
|
||||
If you built with Java support, add
|
||||
/usr/local/share/java/classes/postgresql.jar to your classpath.
|
||||
|
||||
If you have many tables and many clients running, consider raising
|
||||
kern.maxfiles using sysctl(8).
|
||||
|
|
|
@ -1,9 +1,21 @@
|
|||
# ----------------------------------------------------------------
|
||||
# UPGRADE NOTE! Depending on which version you are upgrading from,
|
||||
# you may have to dump/restore existing databases
|
||||
# as part of the update.
|
||||
# This is *NOT* done by this port!
|
||||
# For detailed instructions, see
|
||||
# %%WRKDIR%%/%%DISTNAME%%/INSTALL
|
||||
# after extraction.
|
||||
# --------------------------------------------------------------
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
%%PREFIX%%/bin
|
||||
%%PREFIX%%/lib
|
||||
%%PREFIX%%/include/pgsql
|
||||
|
||||
You *must* move away your old installation to avoid problems with
|
||||
ldconfig(8) and user's PATH:s. If you rather install using the
|
||||
old-fashion layout, cancel at next screen and run make as:
|
||||
|
||||
$ make -DWITH_OLD_LAYOUT
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
If you want JAVA support, I will try to determine your JAVA_HOME using
|
||||
javavmwrapper. If you want a different JVM, please set JAVA_HOME.
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# remove postgresql users
|
||||
|
||||
case $2 in
|
||||
|
||||
POST-DEINSTALL)
|
||||
pw groupdel pgsql
|
||||
pw userdel pgsql
|
||||
;;
|
||||
|
||||
esac
|
|
@ -37,6 +37,10 @@ PRE-INSTALL)
|
|||
fi
|
||||
fi
|
||||
|
||||
if ! [ -x ~pgsql ] ; then
|
||||
mkdir -p ${DB_DIR}
|
||||
chown pgsql:pgsql ${DB_DIR}
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,30 @@
|
|||
==========================================
|
||||
To initialize the database, you should run
|
||||
initdb as the "pgsql" user.
|
||||
|
||||
======================================================================
|
||||
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
/usr/local/bin
|
||||
/usr/local/lib
|
||||
/usr/local/include/pgsql
|
||||
|
||||
You *must* move away your old installation from users' and
|
||||
ldconfig(8)'s PATHs. If you rather install using the old-fashion
|
||||
layout, cancel now and build the port with "make -DWITH_OLD_LAYOUT".
|
||||
|
||||
The pgsql user's home dir is /usr/local/pgsql by default, but can be
|
||||
changed with for example chpass(1). Datadir defaults to ~pgsql/data,
|
||||
but can be changed by modifying the ~pgsql/.profile script.
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
======================================================================
|
||||
|
||||
To initialize the database, you should run initdb as the "pgsql" user.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -9,4 +33,6 @@ Example:
|
|||
You can then start PostgreSQL by running:
|
||||
|
||||
/usr/local/etc/rc.d/010.pgsql.sh start
|
||||
==========================================
|
||||
|
||||
For postmaster settings, see ~pgsql/data/postmaster.conf
|
||||
======================================================================
|
||||
|
|
|
@ -1,95 +1,90 @@
|
|||
@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi
|
||||
%%PG_PREFIX%%bin/postmaster
|
||||
%%PG_PREFIX%%bin/postgres
|
||||
%%PG_PREFIX%%bin/ecpg
|
||||
%%PG_PREFIX%%bin/initdb
|
||||
%%PG_PREFIX%%bin/initlocation
|
||||
%%PG_PREFIX%%bin/ipcclean
|
||||
%%PG_PREFIX%%bin/pg_ctl
|
||||
%%PG_PREFIX%%bin/pg_dump
|
||||
%%PG_PREFIX%%bin/pg_restore
|
||||
%%PG_PREFIX%%bin/pg_encoding
|
||||
%%PG_PREFIX%%bin/pg_dumpall
|
||||
%%PG_PREFIX%%bin/pg_id
|
||||
%%PG_PREFIX%%bin/pg_passwd
|
||||
%%PG_PREFIX%%bin/psql
|
||||
%%PG_PREFIX%%bin/createdb
|
||||
%%PG_PREFIX%%bin/dropdb
|
||||
%%PG_PREFIX%%bin/createuser
|
||||
%%PG_PREFIX%%bin/dropuser
|
||||
%%PG_PREFIX%%bin/droplang
|
||||
%%PG_PREFIX%%bin/vacuumdb
|
||||
%%PG_PREFIX%%bin/createlang
|
||||
%%PG_PREFIX%%bin/pg_config
|
||||
etc/rc.d/010.pgsql.sh
|
||||
pgsql/dot.profile.dist
|
||||
@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile)
|
||||
pgsql/bin/createdb
|
||||
pgsql/bin/createlang
|
||||
pgsql/bin/createuser
|
||||
pgsql/bin/dropdb
|
||||
pgsql/bin/droplang
|
||||
pgsql/bin/dropuser
|
||||
pgsql/bin/ecpg
|
||||
pgsql/bin/initdb
|
||||
pgsql/bin/initlocation
|
||||
pgsql/bin/ipcclean
|
||||
pgsql/bin/pg_ctl
|
||||
pgsql/bin/pg_dump
|
||||
pgsql/bin/pg_dumpall
|
||||
pgsql/bin/pg_encoding
|
||||
pgsql/bin/pg_id
|
||||
pgsql/bin/pg_passwd
|
||||
pgsql/bin/pg_upgrade
|
||||
pgsql/bin/pg_version
|
||||
pgsql/bin/postgres
|
||||
pgsql/bin/postmaster
|
||||
pgsql/bin/psql
|
||||
pgsql/bin/vacuumdb
|
||||
pgsql/include/access/attnum.h
|
||||
pgsql/include/c.h
|
||||
pgsql/include/commands/trigger.h
|
||||
pgsql/include/config.h
|
||||
pgsql/include/ecpgerrno.h
|
||||
pgsql/include/ecpglib.h
|
||||
pgsql/include/ecpgtype.h
|
||||
pgsql/include/executor/spi.h
|
||||
pgsql/include/fmgr.h
|
||||
pgsql/include/lib/dllist.h
|
||||
pgsql/include/libpgeasy.h
|
||||
pgsql/include/libpq/libpq-fs.h
|
||||
pgsql/include/libpq/pqcomm.h
|
||||
pgsql/include/libpq++/pgconnection.h
|
||||
pgsql/include/libpq++/pgcursordb.h
|
||||
pgsql/include/libpq++/pgdatabase.h
|
||||
pgsql/include/libpq++/pglobject.h
|
||||
pgsql/include/libpq++/pgtransdb.h
|
||||
pgsql/include/libpq++.h
|
||||
pgsql/include/libpq-fe.h
|
||||
pgsql/include/libpq-int.h
|
||||
pgsql/include/os.h
|
||||
pgsql/include/postgres.h
|
||||
pgsql/include/postgres_ext.h
|
||||
pgsql/include/pqexpbuffer.h
|
||||
pgsql/include/sql3types.h
|
||||
pgsql/include/sqlca.h
|
||||
pgsql/include/utils/elog.h
|
||||
pgsql/include/utils/geo_decls.h
|
||||
pgsql/include/utils/mcxt.h
|
||||
pgsql/include/utils/palloc.h
|
||||
pgsql/lib/global1.bki.source
|
||||
pgsql/lib/global1.description
|
||||
pgsql/lib/libecpg.a
|
||||
pgsql/lib/libecpg.so
|
||||
pgsql/lib/libecpg.so.3
|
||||
pgsql/lib/libpgeasy.a
|
||||
pgsql/lib/libpgeasy.so
|
||||
pgsql/lib/libpgeasy.so.2
|
||||
pgsql/lib/libpq++.a
|
||||
pgsql/lib/libpq++.so
|
||||
pgsql/lib/libpq++.so.3
|
||||
pgsql/lib/libpq.a
|
||||
pgsql/lib/libpq.so
|
||||
pgsql/lib/libpq.so.2
|
||||
pgsql/lib/local1_template1.bki.source
|
||||
pgsql/lib/local1_template1.description
|
||||
pgsql/lib/pg_geqo.sample
|
||||
pgsql/lib/pg_hba.conf.sample
|
||||
pgsql/lib/pg_ident.conf.sample
|
||||
pgsql/lib/pg_options.sample
|
||||
pgsql/lib/plpgsql.so
|
||||
pgsql/lib/postmaster.opts.default.sample
|
||||
@exec chown -R root:wheel %D/pgsql/lib
|
||||
pgsql/post-install-notes
|
||||
@dirrm pgsql/bin
|
||||
@dirrm pgsql/include/access
|
||||
@dirrm pgsql/include/commands
|
||||
@dirrm pgsql/include/executor
|
||||
@dirrm pgsql/include/lib
|
||||
@dirrm pgsql/include/libpq
|
||||
@dirrm pgsql/include/libpq++
|
||||
@dirrm pgsql/include/utils
|
||||
@dirrm pgsql/include
|
||||
@dirrm pgsql/lib
|
||||
@dirrm pgsql/man/man1
|
||||
@dirrm pgsql/man/manl
|
||||
@dirrm pgsql/man
|
||||
@dirrm pgsql
|
||||
%%PG_INCLUDE%%/lib/dllist.h
|
||||
@dirrm %%PG_INCLUDE%%/lib
|
||||
%%PG_INCLUDE%%/libpq/pqcomm.h
|
||||
%%PG_INCLUDE%%/libpq/libpq-fs.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq
|
||||
%%PG_INCLUDE%%/libpq++/pgconnection.h
|
||||
%%PG_INCLUDE%%/libpq++/pgdatabase.h
|
||||
%%PG_INCLUDE%%/libpq++/pgtransdb.h
|
||||
%%PG_INCLUDE%%/libpq++/pgcursordb.h
|
||||
%%PG_INCLUDE%%/libpq++/pglobject.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq++
|
||||
%%PG_INCLUDE%%/c.h
|
||||
%%PG_INCLUDE%%/postgres_ext.h
|
||||
%%PG_INCLUDE%%/postgres_fe.h
|
||||
%%PG_INCLUDE%%/os.h
|
||||
%%PG_INCLUDE%%/config.h
|
||||
%%PG_INCLUDE%%/libpq-fe.h
|
||||
%%PG_INCLUDE%%/libpq-int.h
|
||||
%%PG_INCLUDE%%/pqexpbuffer.h
|
||||
%%PG_INCLUDE%%/ecpgerrno.h
|
||||
%%PG_INCLUDE%%/ecpglib.h
|
||||
%%PG_INCLUDE%%/ecpgtype.h
|
||||
%%PG_INCLUDE%%/sqlca.h
|
||||
%%PG_INCLUDE%%/sql3types.h
|
||||
%%PG_INCLUDE%%/libpgeasy.h
|
||||
%%PG_INCLUDE%%/libpq++.h
|
||||
@dirrm %%PG_INCLUDE%%
|
||||
%%PG_PREFIX%%lib/libpq.so
|
||||
%%PG_PREFIX%%lib/libpq.a
|
||||
%%PG_PREFIX%%lib/libpq.so.2
|
||||
%%PG_PREFIX%%lib/libecpg.so
|
||||
%%PG_PREFIX%%lib/libecpg.a
|
||||
%%PG_PREFIX%%lib/libecpg.so.3
|
||||
%%PG_PREFIX%%lib/libpgeasy.so
|
||||
%%PG_PREFIX%%lib/libpgeasy.a
|
||||
%%PG_PREFIX%%lib/libpgeasy.so.2
|
||||
%%PG_PREFIX%%lib/libpq++.so
|
||||
%%PG_PREFIX%%lib/libpq++.a
|
||||
%%PG_PREFIX%%lib/libpq++.so.3
|
||||
%%PG_PREFIX%%lib/plpgsql.so
|
||||
share/postgresql/global.bki
|
||||
share/postgresql/global.description
|
||||
share/postgresql/post-install-notes
|
||||
share/postgresql/template1.bki
|
||||
share/postgresql/template1.description
|
||||
share/postgresql/pg_hba.conf.sample
|
||||
share/postgresql/pg_ident.conf.sample
|
||||
share/postgresql/postgresql.conf.sample
|
||||
@unexec if cmp -s ~pgsql/.profile %D/share/postgresql/dot.profile.dist; then rm -f ~pgsql/.profile; fi
|
||||
@unexec if cmp -s ~pgsql/.cshrc %D/share/postgresql/dot.cshrc.dist; then rm -f ~pgsql/.cshrc; fi
|
||||
@unexec [ -f ~pgsql/dot.profile.dist ] && rm ~pgsql/dot.profile.dist
|
||||
@unexec [ -f ~pgsql/dot.cshrc.dist ] && rm ~pgsql/dot.cshrc.dist
|
||||
@exec [ -f %D/share/postgresql/post-install-notes ] && cp %D/share/postgresql/post-install-notes ~pgsql && chown pgsql:pgsql ~pgsql/post-install-notes
|
||||
@unexec [ -f ~pgsql/post-install-notes ] && rm ~pgsql/post-install-notes
|
||||
share/postgresql/dot.profile.dist
|
||||
share/postgresql/dot.cshrc.dist
|
||||
@dirrm share/postgresql
|
||||
@exec [ -f %D/share/postgresql/dot.profile.dist ] && cp %D/share/postgresql/dot.profile.dist ~pgsql/.
|
||||
@exec [ -f %D/share/postgresql/dot.cshrc.dist ] && cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.
|
||||
@exec [ -f ~pgsql/.profile ] || (cp %D/share/postgresql/dot.profile.dist ~pgsql/.profile && chown pgsql:pgsql ~pgsql/.profile)
|
||||
@exec [ -f ~pgsql/.cshrc ] || (cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.cshrc && chown pgsql:pgsql ~pgsql/.cshrc)
|
||||
@unexec rmdir %D/%%PG_PREFIX%%bin 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%lib 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/man1 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/manl 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man 2> /dev/null || true
|
||||
@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %D/pgsql and the pgsql user manually."
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,14 +1,27 @@
|
|||
share/examples/pgsql/jdbc/ImageViewer.java
|
||||
share/examples/pgsql/jdbc/basic.java
|
||||
share/examples/pgsql/jdbc/blobtest.java
|
||||
share/examples/pgsql/jdbc/datestyle.java
|
||||
share/examples/pgsql/jdbc/metadata.java
|
||||
share/examples/pgsql/jdbc/psql.java
|
||||
share/examples/pgsql/jdbc/threadsafe.java
|
||||
share/examples/pgsql/jdbc/README
|
||||
share/examples/pgsql/jdbc/README_6.3
|
||||
@dirrm share/examples/pgsql/jdbc
|
||||
@dirrm share/examples/pgsql
|
||||
share/examples/postgresql/corba/StockClient.java
|
||||
share/examples/postgresql/corba/StockDB.java
|
||||
share/examples/postgresql/corba/StockDispenserImpl.java
|
||||
share/examples/postgresql/corba/StockItemImpl.java
|
||||
share/examples/postgresql/corba/StockServer.java
|
||||
share/examples/postgresql/corba/readme
|
||||
share/examples/postgresql/corba/stock.idl
|
||||
share/examples/postgresql/corba/stock.sql
|
||||
@dirrm share/examples/postgresql/corba
|
||||
share/examples/postgresql/ImageViewer.java
|
||||
share/examples/postgresql/Unicode.java
|
||||
share/examples/postgresql/basic.java
|
||||
share/examples/postgresql/blobtest.java
|
||||
share/examples/postgresql/datestyle.java
|
||||
share/examples/postgresql/metadata.java
|
||||
share/examples/postgresql/psql.java
|
||||
share/examples/postgresql/threadsafe.java
|
||||
share/examples/postgresql/README
|
||||
share/examples/postgresql/Implementation
|
||||
@dirrm share/examples/postgresql
|
||||
share/postgresql/java/postgresql-examples.jar
|
||||
share/postgresql/java/postgresql.jar
|
||||
share/postgresql/java/retepTools.jar
|
||||
@dirrm share/postgresql/java
|
||||
share/java/classes/postgresql.jar
|
||||
@unexec rmdir %D/share/java/classes 2>/dev/null || true
|
||||
@unexec rmdir %D/share/java 2>/dev/null || true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pgsql/bin/pgtclsh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
pgsql/include/iodbc/iodbc.h
|
||||
pgsql/include/iodbc/isql.h
|
||||
pgsql/include/iodbc/isqlext.h
|
||||
pgsql/lib/libpsqlodbc.a
|
||||
pgsql/lib/libpsqlodbc.so
|
||||
pgsql/lib/libpsqlodbc.so.0
|
||||
pgsql/odbcinst.ini
|
||||
@dirrm pgsql/include/iodbc
|
||||
%%PG_INCLUDE%%/iodbc/iodbc.h
|
||||
%%PG_INCLUDE%%/iodbc/isql.h
|
||||
%%PG_INCLUDE%%/iodbc/isqlext.h
|
||||
@dirrm %%PG_INCLUDE%%/iodbc
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.a
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so.0
|
||||
etc/postgresql/odbcinst.ini
|
||||
@dirrm etc/postgresql
|
||||
share/postgresql/odbc.sql
|
||||
|
|
|
@ -1,141 +1,146 @@
|
|||
pgsql/bin/pgaccess
|
||||
pgsql/bin/pgtclsh
|
||||
pgsql/bin/pgtksh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
pgsql/pgaccess/images/icon_button.gif
|
||||
pgsql/pgaccess/images/icon_checkbutton.gif
|
||||
pgsql/pgaccess/images/icon_entry.gif
|
||||
pgsql/pgaccess/images/icon_frame.gif
|
||||
pgsql/pgaccess/images/icon_label.gif
|
||||
pgsql/pgaccess/images/icon_listbox.gif
|
||||
pgsql/pgaccess/images/icon_query.gif
|
||||
pgsql/pgaccess/images/icon_radiobutton.gif
|
||||
pgsql/pgaccess/images/icon_text.gif
|
||||
pgsql/pgaccess/lib/database.tcl
|
||||
pgsql/pgaccess/lib/forms.tcl
|
||||
pgsql/pgaccess/lib/functions.tcl
|
||||
pgsql/pgaccess/lib/help/abort.hlp
|
||||
pgsql/pgaccess/lib/help/add_records.hlp
|
||||
pgsql/pgaccess/lib/help/alter_table.hlp
|
||||
pgsql/pgaccess/lib/help/alter_user.hlp
|
||||
pgsql/pgaccess/lib/help/author.hlp
|
||||
pgsql/pgaccess/lib/help/begin.hlp
|
||||
pgsql/pgaccess/lib/help/close.hlp
|
||||
pgsql/pgaccess/lib/help/cluster.hlp
|
||||
pgsql/pgaccess/lib/help/commit.hlp
|
||||
pgsql/pgaccess/lib/help/copy.hlp
|
||||
pgsql/pgaccess/lib/help/copyrights.hlp
|
||||
pgsql/pgaccess/lib/help/create_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/create_database.hlp
|
||||
pgsql/pgaccess/lib/help/create_function.hlp
|
||||
pgsql/pgaccess/lib/help/create_index.hlp
|
||||
pgsql/pgaccess/lib/help/create_language.hlp
|
||||
pgsql/pgaccess/lib/help/create_operator.hlp
|
||||
pgsql/pgaccess/lib/help/create_rule.hlp
|
||||
pgsql/pgaccess/lib/help/create_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/create_table.hlp
|
||||
pgsql/pgaccess/lib/help/create_table_as.hlp
|
||||
pgsql/pgaccess/lib/help/create_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/create_type.hlp
|
||||
pgsql/pgaccess/lib/help/create_user.hlp
|
||||
pgsql/pgaccess/lib/help/create_view.hlp
|
||||
pgsql/pgaccess/lib/help/data_types.hlp
|
||||
pgsql/pgaccess/lib/help/datefunc.hlp
|
||||
pgsql/pgaccess/lib/help/declare.hlp
|
||||
pgsql/pgaccess/lib/help/delete.hlp
|
||||
pgsql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/drop_database.hlp
|
||||
pgsql/pgaccess/lib/help/drop_function.hlp
|
||||
pgsql/pgaccess/lib/help/drop_index.hlp
|
||||
pgsql/pgaccess/lib/help/drop_language.hlp
|
||||
pgsql/pgaccess/lib/help/drop_operator.hlp
|
||||
pgsql/pgaccess/lib/help/drop_rule.hlp
|
||||
pgsql/pgaccess/lib/help/drop_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/drop_table.hlp
|
||||
pgsql/pgaccess/lib/help/drop_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/drop_type.hlp
|
||||
pgsql/pgaccess/lib/help/drop_user.hlp
|
||||
pgsql/pgaccess/lib/help/drop_view.hlp
|
||||
pgsql/pgaccess/lib/help/explain.hlp
|
||||
pgsql/pgaccess/lib/help/fetch.hlp
|
||||
pgsql/pgaccess/lib/help/form_design.hlp
|
||||
pgsql/pgaccess/lib/help/forms.hlp
|
||||
pgsql/pgaccess/lib/help/functions.hlp
|
||||
pgsql/pgaccess/lib/help/geomfunc.hlp
|
||||
pgsql/pgaccess/lib/help/grant.hlp
|
||||
pgsql/pgaccess/lib/help/history.hlp
|
||||
pgsql/pgaccess/lib/help/index.hlp
|
||||
pgsql/pgaccess/lib/help/inheritance.hlp
|
||||
pgsql/pgaccess/lib/help/insert.hlp
|
||||
pgsql/pgaccess/lib/help/ipv4func.hlp
|
||||
pgsql/pgaccess/lib/help/isolation.hlp
|
||||
pgsql/pgaccess/lib/help/keywords.hlp
|
||||
pgsql/pgaccess/lib/help/listen.hlp
|
||||
pgsql/pgaccess/lib/help/load.hlp
|
||||
pgsql/pgaccess/lib/help/lock.hlp
|
||||
pgsql/pgaccess/lib/help/mathfunc.hlp
|
||||
pgsql/pgaccess/lib/help/move.hlp
|
||||
pgsql/pgaccess/lib/help/mvcc.hlp
|
||||
pgsql/pgaccess/lib/help/new_query.hlp
|
||||
pgsql/pgaccess/lib/help/new_table.hlp
|
||||
pgsql/pgaccess/lib/help/notify.hlp
|
||||
pgsql/pgaccess/lib/help/open_query.hlp
|
||||
pgsql/pgaccess/lib/help/open_table.hlp
|
||||
pgsql/pgaccess/lib/help/pgfunctions.hlp
|
||||
pgsql/pgaccess/lib/help/postgresql.hlp
|
||||
pgsql/pgaccess/lib/help/queries.hlp
|
||||
pgsql/pgaccess/lib/help/reports.hlp
|
||||
pgsql/pgaccess/lib/help/reset.hlp
|
||||
pgsql/pgaccess/lib/help/revoke.hlp
|
||||
pgsql/pgaccess/lib/help/rollback.hlp
|
||||
pgsql/pgaccess/lib/help/schema.hlp
|
||||
pgsql/pgaccess/lib/help/scripts.hlp
|
||||
pgsql/pgaccess/lib/help/select.hlp
|
||||
pgsql/pgaccess/lib/help/select_into.hlp
|
||||
pgsql/pgaccess/lib/help/sequences.hlp
|
||||
pgsql/pgaccess/lib/help/set.hlp
|
||||
pgsql/pgaccess/lib/help/show.hlp
|
||||
pgsql/pgaccess/lib/help/sql_guide.hlp
|
||||
pgsql/pgaccess/lib/help/sqlfunc.hlp
|
||||
pgsql/pgaccess/lib/help/stringfunc.hlp
|
||||
pgsql/pgaccess/lib/help/tables.hlp
|
||||
pgsql/pgaccess/lib/help/unlisten.hlp
|
||||
pgsql/pgaccess/lib/help/update.hlp
|
||||
pgsql/pgaccess/lib/help/users.hlp
|
||||
pgsql/pgaccess/lib/help/vacuum.hlp
|
||||
pgsql/pgaccess/lib/help/view_table_structure.hlp
|
||||
pgsql/pgaccess/lib/help/views.hlp
|
||||
pgsql/pgaccess/lib/help/visual_designer.hlp
|
||||
pgsql/pgaccess/lib/help/y2k.hlp
|
||||
pgsql/pgaccess/lib/help.tcl
|
||||
pgsql/pgaccess/lib/languages/czech
|
||||
pgsql/pgaccess/lib/languages/deutsch
|
||||
pgsql/pgaccess/lib/languages/francais
|
||||
pgsql/pgaccess/lib/languages/italiano
|
||||
pgsql/pgaccess/lib/languages/magyar
|
||||
pgsql/pgaccess/lib/languages/portugues
|
||||
pgsql/pgaccess/lib/languages/romana
|
||||
pgsql/pgaccess/lib/languages/russian.koi8r
|
||||
pgsql/pgaccess/lib/languages/russian_win
|
||||
pgsql/pgaccess/lib/languages/spanish
|
||||
pgsql/pgaccess/lib/mainlib.tcl
|
||||
pgsql/pgaccess/lib/preferences.tcl
|
||||
pgsql/pgaccess/lib/queries.tcl
|
||||
pgsql/pgaccess/lib/reports.tcl
|
||||
pgsql/pgaccess/lib/schema.tcl
|
||||
pgsql/pgaccess/lib/scripts.tcl
|
||||
pgsql/pgaccess/lib/sequences.tcl
|
||||
pgsql/pgaccess/lib/tables.tcl
|
||||
pgsql/pgaccess/lib/users.tcl
|
||||
pgsql/pgaccess/lib/views.tcl
|
||||
pgsql/pgaccess/lib/visualqb.tcl
|
||||
pgsql/pgaccess/main.tcl
|
||||
@dirrm pgsql/pgaccess/images
|
||||
@dirrm pgsql/pgaccess/lib/help
|
||||
@dirrm pgsql/pgaccess/lib/languages
|
||||
@dirrm pgsql/pgaccess/lib
|
||||
@dirrm pgsql/pgaccess
|
||||
%%PG_PREFIX%%bin/pgaccess
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_PREFIX%%bin/pgtksh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
share/postgresql/pgaccess/images/icon_button.gif
|
||||
share/postgresql/pgaccess/images/icon_checkbutton.gif
|
||||
share/postgresql/pgaccess/images/icon_entry.gif
|
||||
share/postgresql/pgaccess/images/icon_frame.gif
|
||||
share/postgresql/pgaccess/images/icon_label.gif
|
||||
share/postgresql/pgaccess/images/icon_listbox.gif
|
||||
share/postgresql/pgaccess/images/icon_query.gif
|
||||
share/postgresql/pgaccess/images/icon_radiobutton.gif
|
||||
share/postgresql/pgaccess/images/icon_text.gif
|
||||
share/postgresql/pgaccess/lib/database.tcl
|
||||
share/postgresql/pgaccess/lib/forms.tcl
|
||||
share/postgresql/pgaccess/lib/functions.tcl
|
||||
share/postgresql/pgaccess/lib/help/abort.hlp
|
||||
share/postgresql/pgaccess/lib/help/add_records.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/author.hlp
|
||||
share/postgresql/pgaccess/lib/help/begin.hlp
|
||||
share/postgresql/pgaccess/lib/help/close.hlp
|
||||
share/postgresql/pgaccess/lib/help/cluster.hlp
|
||||
share/postgresql/pgaccess/lib/help/commit.hlp
|
||||
share/postgresql/pgaccess/lib/help/copy.hlp
|
||||
share/postgresql/pgaccess/lib/help/copyrights.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table_as.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/data_types.hlp
|
||||
share/postgresql/pgaccess/lib/help/datefunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/declare.hlp
|
||||
share/postgresql/pgaccess/lib/help/delete.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/explain.hlp
|
||||
share/postgresql/pgaccess/lib/help/fetch.hlp
|
||||
share/postgresql/pgaccess/lib/help/form_design.hlp
|
||||
share/postgresql/pgaccess/lib/help/forms.hlp
|
||||
share/postgresql/pgaccess/lib/help/functions.hlp
|
||||
share/postgresql/pgaccess/lib/help/geomfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/grant.hlp
|
||||
share/postgresql/pgaccess/lib/help/history.hlp
|
||||
share/postgresql/pgaccess/lib/help/index.hlp
|
||||
share/postgresql/pgaccess/lib/help/inheritance.hlp
|
||||
share/postgresql/pgaccess/lib/help/insert.hlp
|
||||
share/postgresql/pgaccess/lib/help/ipv4func.hlp
|
||||
share/postgresql/pgaccess/lib/help/isolation.hlp
|
||||
share/postgresql/pgaccess/lib/help/keywords.hlp
|
||||
share/postgresql/pgaccess/lib/help/listen.hlp
|
||||
share/postgresql/pgaccess/lib/help/load.hlp
|
||||
share/postgresql/pgaccess/lib/help/lock.hlp
|
||||
share/postgresql/pgaccess/lib/help/mathfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/move.hlp
|
||||
share/postgresql/pgaccess/lib/help/mvcc.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/notify.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/pgfunctions.hlp
|
||||
share/postgresql/pgaccess/lib/help/postgresql.hlp
|
||||
share/postgresql/pgaccess/lib/help/queries.hlp
|
||||
share/postgresql/pgaccess/lib/help/reports.hlp
|
||||
share/postgresql/pgaccess/lib/help/reset.hlp
|
||||
share/postgresql/pgaccess/lib/help/revoke.hlp
|
||||
share/postgresql/pgaccess/lib/help/rollback.hlp
|
||||
share/postgresql/pgaccess/lib/help/schema.hlp
|
||||
share/postgresql/pgaccess/lib/help/scripts.hlp
|
||||
share/postgresql/pgaccess/lib/help/select.hlp
|
||||
share/postgresql/pgaccess/lib/help/select_into.hlp
|
||||
share/postgresql/pgaccess/lib/help/sequences.hlp
|
||||
share/postgresql/pgaccess/lib/help/set.hlp
|
||||
share/postgresql/pgaccess/lib/help/show.hlp
|
||||
share/postgresql/pgaccess/lib/help/sql_guide.hlp
|
||||
share/postgresql/pgaccess/lib/help/sqlfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/stringfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/tables.hlp
|
||||
share/postgresql/pgaccess/lib/help/unlisten.hlp
|
||||
share/postgresql/pgaccess/lib/help/update.hlp
|
||||
share/postgresql/pgaccess/lib/help/users.hlp
|
||||
share/postgresql/pgaccess/lib/help/vacuum.hlp
|
||||
share/postgresql/pgaccess/lib/help/view_table_structure.hlp
|
||||
share/postgresql/pgaccess/lib/help/views.hlp
|
||||
share/postgresql/pgaccess/lib/help/visual_designer.hlp
|
||||
share/postgresql/pgaccess/lib/help/y2k.hlp
|
||||
share/postgresql/pgaccess/lib/help.tcl
|
||||
share/postgresql/pgaccess/lib/languages/czech
|
||||
share/postgresql/pgaccess/lib/languages/chinese_big5
|
||||
share/postgresql/pgaccess/lib/languages/chinese_gb
|
||||
share/postgresql/pgaccess/lib/languages/deutsch
|
||||
share/postgresql/pgaccess/lib/languages/euskara
|
||||
share/postgresql/pgaccess/lib/languages/francais
|
||||
share/postgresql/pgaccess/lib/languages/italiano
|
||||
share/postgresql/pgaccess/lib/languages/japanese
|
||||
share/postgresql/pgaccess/lib/languages/magyar
|
||||
share/postgresql/pgaccess/lib/languages/nederlands
|
||||
share/postgresql/pgaccess/lib/languages/portugues
|
||||
share/postgresql/pgaccess/lib/languages/romana
|
||||
share/postgresql/pgaccess/lib/languages/russian.koi8r
|
||||
share/postgresql/pgaccess/lib/languages/russian_win
|
||||
share/postgresql/pgaccess/lib/languages/spanish
|
||||
share/postgresql/pgaccess/lib/mainlib.tcl
|
||||
share/postgresql/pgaccess/lib/preferences.tcl
|
||||
share/postgresql/pgaccess/lib/queries.tcl
|
||||
share/postgresql/pgaccess/lib/reports.tcl
|
||||
share/postgresql/pgaccess/lib/schema.tcl
|
||||
share/postgresql/pgaccess/lib/scripts.tcl
|
||||
share/postgresql/pgaccess/lib/sequences.tcl
|
||||
share/postgresql/pgaccess/lib/tables.tcl
|
||||
share/postgresql/pgaccess/lib/users.tcl
|
||||
share/postgresql/pgaccess/lib/views.tcl
|
||||
share/postgresql/pgaccess/lib/visualqb.tcl
|
||||
share/postgresql/pgaccess/main.tcl
|
||||
@dirrm share/postgresql/pgaccess/images
|
||||
@dirrm share/postgresql/pgaccess/lib/help
|
||||
@dirrm share/postgresql/pgaccess/lib/languages
|
||||
@dirrm share/postgresql/pgaccess/lib
|
||||
@dirrm share/postgresql/pgaccess
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
|
||||
cd $WRKSRC || exit 1
|
||||
|
||||
perl -pi -e "s=!!JAVA_HOME!!=${JAVA_HOME}=; s=!!PREFIX!!=${PREFIX}=" ${WRKSRC}/interfaces/jdbc/Makefile
|
|
@ -10,26 +10,22 @@ fi
|
|||
|
||||
if [ ! "${BATCH}" ]; then
|
||||
dialog --title "Backup your data NOW" \
|
||||
--msgbox "`sed -e \"s#%%WRKDIR%%#${WRKDIR}#; s#%%DISTNAME%%#${DISTNAME}#\" < ${FILESDIR}/pre-install-notes`" \
|
||||
--msgbox "`sed -e \"s#%%PREFIX%%#${PREFIX}#\" < ${FILESDIR}/pre-install-notes`" \
|
||||
-1 -1
|
||||
fi
|
||||
|
||||
#SSL=${NO_OPENSSL:+OFF}
|
||||
#SSL=${NOSSL:-ON}
|
||||
|
||||
if [ "${BATCH}" ]; then
|
||||
set \"MultiByte\"
|
||||
set \"MultiByte\" \"ODBC\" \"SSL\"
|
||||
else
|
||||
/usr/bin/dialog --title "configuration options" --clear \
|
||||
--checklist "\n\
|
||||
Please select desired options:" -1 -1 8 \
|
||||
Please select desired options:" -1 -1 7 \
|
||||
JDBC "Java DataBase Connectivity" OFF \
|
||||
MultiByte "Multibyte for Multilingualism" ON \
|
||||
ODBC "Open Database Connectivity" OFF \
|
||||
Perl "Perl" OFF \
|
||||
TCL "Tcl" ON \
|
||||
TCLTK "Tcl/Tk" ON \
|
||||
SSL "Secure Socket Layer (requires certificate)" OFF \
|
||||
SSL "Secure Socket Layer" ON \
|
||||
KRB5 "Kerberos 5" OFF \
|
||||
2> /tmp/checklist.tmp.$$
|
||||
|
||||
|
@ -57,26 +53,46 @@ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
\"JDBC\")
|
||||
# use JAVA_HOME if set correctly
|
||||
# We use JAVA_HOME if set correctly. If the user has
|
||||
# specified a JVM with JAVA_HOME or via the javavmwrapper,
|
||||
# we validate that it really exists. It is unnecessarily
|
||||
# complicated and error prone to try to figure out the
|
||||
# correct java version just to be able to determine a
|
||||
# BUILD_DEPEND in this case. Instead, assume that a set
|
||||
# JAVA_HOME together with simple sanity check mean we have
|
||||
# an installed JVM, and we don't bother setting
|
||||
# BUILD_DEPENDS.
|
||||
|
||||
echo "# JDBC"
|
||||
if [ "${JAVA_HOME}" -a -x ${JAVA_HOME}/bin/javac ]; then
|
||||
# if JAVA_HOME is set and exists, use it
|
||||
if [ "${JAVA_HOME}" -a -x "${JAVA_HOME}/bin/javac" ]; then
|
||||
echo JAVA_HOME=${JAVA_HOME}
|
||||
if [ "$(${JAVA_HOME}/bin/java -version 2>&1 | egrep \"1.1)" ]; then
|
||||
JAVAVERSION=1
|
||||
echo BUILD_DEPENDS+= ${JAVA_HOME}/bin/javac:\${PORTSDIR}/java/jdk
|
||||
else
|
||||
JAVAVERSION=2
|
||||
echo BUILD_DEPENDS+= ${JAVA_HOME}/bin/javac:\${PORTSDIR}/java/jdk12-beta
|
||||
fi
|
||||
else
|
||||
JAVAVERSION=1
|
||||
echo BUILD_DEPENDS+= \${LOCALBASE}/jdk1.1.8/bin/javac:\${PORTSDIR}/java/jdk
|
||||
echo JAVA_HOME=\${LOCALBASE}/jdk1.1.8
|
||||
# No JAVA_HOME, check javavmwrapper's config file
|
||||
if [ -r "${LOCALBASE}/etc/javavms" ]; then
|
||||
VMS=`/usr/bin/sed 's|#.*||' < "${LOCALBASE}/etc/javavms" | uniq`
|
||||
for JAVAVM in ${VMS}; do
|
||||
if [ -x "${JAVAVM}" ]; then
|
||||
JAVA_HOME=`echo ${JAVAVM} | /usr/bin/sed 's|/bin/java$||`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [ "${JAVA_HOME}" -a -x "${JAVA_HOME}/bin/javac" ]; then
|
||||
# yep, wrapper was good
|
||||
echo JAVA_HOME=${JAVA_HOME}
|
||||
else
|
||||
# nothing, use our boring 1.1.8, the only native non-beta jdk :(
|
||||
echo BUILD_DEPENDS+= \${LOCALBASE}/jdk1.1.8/bin/javac:\${PORTSDIR}/java/jdk
|
||||
echo JAVA_HOME=\${LOCALBASE}/jdk1.1.8
|
||||
fi
|
||||
fi
|
||||
cat <<-EOF
|
||||
JAVAVERSION=${JAVAVERSION}
|
||||
BUILD_DEPENDS+= ant:\${PORTSDIR}/devel/jakarta-ant
|
||||
WITH_JDBC=YES
|
||||
SCRIPTS_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
MAKE_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
SCRIPTS_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
CONFIGURE_ARGS+= --with-java
|
||||
|
||||
EOF
|
||||
;;
|
||||
|
@ -89,14 +105,6 @@ while [ "$1" ]; do
|
|||
WITH_ODBC=YES
|
||||
CONFIGURE_ARGS+= --with-odbc
|
||||
|
||||
EOF
|
||||
;;
|
||||
\"Perl\")
|
||||
cat <<-EOF
|
||||
# PERL
|
||||
WITH_PERL=YES
|
||||
CONFIGURE_ARGS+= --with-perl
|
||||
|
||||
EOF
|
||||
;;
|
||||
\"TCL\")
|
||||
|
@ -115,6 +123,7 @@ while [ "$1" ]; do
|
|||
CFLAGS+= -DUSE_SSL
|
||||
WITH_SSL= yes
|
||||
CONFIGURE_ENV+= LDFLAGS="-L\${OPENSSLLIB} -lssl -lcrypto"
|
||||
CONFIGURE_ARGS+= --with-openssl
|
||||
|
||||
EOF
|
||||
;;
|
||||
|
@ -215,15 +224,17 @@ if [ "${TCL}" ]; then
|
|||
cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
CONFIGURE_ARGS+= --with-tcl --with-tclconfig="\${TCLCONFIG}"
|
||||
TCLV=\${WITH_TCL:S/.//}
|
||||
TCL_INCDIR= \${LOCALBASE}/include/tcl\${WITH_TCL}
|
||||
MAKE_ENV= TCL_INCDIR=\${TCL_INCDIR}
|
||||
LIB_DEPENDS= tcl\${TCLV}.1:\${PORTSDIR}/lang/tcl\${TCLV}
|
||||
TCLCONFIG= '\${LOCALBASE}/lib/tcl\${WITH_TCL}'
|
||||
TCL_INCDIR= \${LOCALBASE}/include/tcl\${WITH_TCL}
|
||||
MAKE_ENV+= TCL_INCDIR=\${TCL_INCDIR}
|
||||
LIB_DEPENDS+= tcl\${TCLV}:\${PORTSDIR}/lang/tcl\${TCLV}
|
||||
TCLCONFIG= "\${LOCALBASE}/lib/tcl\${WITH_TCL}"
|
||||
.if defined(WITH_TK)
|
||||
TK_INCDIR= \${LOCALBASE}/include/tk\${WITH_TCL}
|
||||
CONFIGURE_ENV+= WISH=\${LOCALBASE}/bin/wish\${WITH_TCL}
|
||||
LIB_DEPENDS+= tk\${TCLV}.1:\${PORTSDIR}/x11-toolkits/tk\${TCLV}
|
||||
TCLCONFIG+= '\${LOCALBASE}/lib/tk\${WITH_TCL}'
|
||||
CONFIGURE_ARGS+= --with-tkconfig="\${TKCONFIG}"
|
||||
TK_INCDIR= \${LOCALBASE}/include/tk\${WITH_TCL}
|
||||
CONFIGURE_ENV+= WISH=\${LOCALBASE}/bin/wish\${WITH_TCL}
|
||||
LIB_DEPENDS+= tk\${TCLV}:\${PORTSDIR}/x11-toolkits/tk\${TCLV}
|
||||
TKCONFIG= "\${LOCALBASE}/lib/tk\${WITH_TCL}"
|
||||
TCLCONFIG+= \${TKCONFIG}
|
||||
TCL_PLIST= pkg-plist.tcl
|
||||
.else
|
||||
TCL_PLIST= pkg-plist.notk
|
||||
|
@ -259,8 +270,7 @@ if [ "${KRB5}" ]; then
|
|||
fi
|
||||
cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
.if defined(KRB5_HOME) && exists(\${KRB5_HOME})
|
||||
CONFIGURE_KRB= --with-krb5=\${KRB5_HOME} \
|
||||
--with-krb-keytab=FILE:\${PREFIX}/pgsql/etc/keytab
|
||||
CONFIGURE_KRB= --with-krb5=\${KRB5_HOME}
|
||||
.endif
|
||||
|
||||
EOF
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
|
||||
eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
|
||||
& eval 'exec /usr/bin/perl -S $0 $argv:q'
|
||||
if 0;
|
||||
|
||||
if( $> ) {
|
||||
print "\nYou must be root to run this step!\n\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
if( getpwnam( "pgsql" ) ) {
|
||||
( $null, $null, $pgUID ) = getpwnam( "pgsql" );
|
||||
} else {
|
||||
$pgUID = 70;
|
||||
while( getpwuid( $pgUID ) ) {
|
||||
$pgUID++;
|
||||
}
|
||||
}
|
||||
|
||||
if( getgrnam( "pgsql" ) ) {
|
||||
( $null, $null, $pgGID ) = getgrnam( "pgsql" );
|
||||
} else {
|
||||
$pgGID = 70;
|
||||
while( getgrgid( $pgGID ) ) {
|
||||
$pgGID++;
|
||||
}
|
||||
&append_file( "/etc/group", "pgsql:*:$pgGID:" );
|
||||
}
|
||||
|
||||
print "pgsql user using uid $pgUID\n";
|
||||
print "pgsql user using gid $pgGID\n";
|
||||
|
||||
system( "/usr/bin/chpass -a \"pgsql:*:$pgUID:$pgGID\:\:0:0:PostgreSQL pseudo-user:$ENV{'PREFIX'}/pgsql:/bin/sh\"" );
|
||||
|
||||
sub append_file {
|
||||
local($file,@list) = @_;
|
||||
local($LOCK_EX) = 2;
|
||||
local($LOCK_NB) = 4;
|
||||
local($LOCK_UN) = 8;
|
||||
|
||||
open(F, ">> $file") || die "$file: $!\n";
|
||||
while( ! flock( F, $LOCK_EX | $LOCK_NB ) ) {
|
||||
exit 1;
|
||||
}
|
||||
print F join( "\n", @list) . "\n";
|
||||
close F;
|
||||
flock( F, $LOCK_UN );
|
||||
}
|
|
@ -6,47 +6,62 @@
|
|||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTVERSION= 7.0.3
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 7.1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
MASTER_SITES= ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
ftp://ftp.de.postgresql.org/%SUBDIR%/ \
|
||||
ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.digex.net/pub/packages/database/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.sunet.se/pub/unix/databases/relational/postgresql/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= source/v${PORTVERSION}
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}.base${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.support${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.docs${EXTRACT_SUFX}
|
||||
# ${PORTNAME}-${PORTVERSION}.test${EXTRACT_SUFX}
|
||||
DIST_SUBDIR= postgresql
|
||||
DISTFILES= ${PORTNAME}-base-${PORTVERSION}${EXTRACT_SUFX} \
|
||||
${PORTNAME}-opt-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.if !defined(NOPORTDOCS)
|
||||
DISTFILES+= ${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
|
||||
MAINTAINER= girgen@partitur.se
|
||||
|
||||
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
||||
DIST_SUBDIR= postgresql
|
||||
|
||||
INSTALLS_SHLIB= YES
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
LDCONFIG_DIRS= %%PREFIX%%/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
DOCDIR= ${WRKDIR}/${DISTNAME}/doc
|
||||
PLIST= ${WRKDIR}/.PLIST.generated
|
||||
|
||||
USE_GMAKE= YES
|
||||
MAKEFILE= GNUmakefile
|
||||
HAS_CONFIGURE= YES
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \
|
||||
--enable-locale \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
CONFIGURE_ARGS= --enable-locale \
|
||||
--enable-syslog --with-CXX \
|
||||
--sysconfdir=${PREFIX}/etc/postgresql \
|
||||
--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \
|
||||
--with-libraries=${PREFIX}/lib
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/pgsql/include \
|
||||
--datadir=${PREFIX}/share \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
--prefix=${PREFIX}/pgsql
|
||||
PG_PREFIX= pgsql/
|
||||
PG_INCLUDE= pgsql/include
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
.else
|
||||
GNU_CONFIGURE= YES
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/include/pgsql
|
||||
PG_PREFIX=""
|
||||
PG_INCLUDE= include/pgsql
|
||||
.endif
|
||||
|
||||
PLIST_SUB= PG_PREFIX="${PG_PREFIX}" PG_INCLUDE="${PG_INCLUDE}"
|
||||
|
||||
MAN1= createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_ctl.1 \
|
||||
pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_upgrade.1 pgaccess.1 \
|
||||
pgadmin.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_config.1 \
|
||||
pg_ctl.1 pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_restore.1 \
|
||||
pgaccess.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
vacuumdb.1
|
||||
MANL= abort.l alter_group.l alter_table.l alter_user.l \
|
||||
begin.l close.l cluster.l comment.l commit.l copy.l \
|
||||
begin.l checkpoint.l close.l cluster.l comment.l commit.l copy.l \
|
||||
create_aggregate.l create_constraint_trigger.l \
|
||||
create_database.l create_function.l create_group.l \
|
||||
create_index.l create_language.l create_operator.l \
|
||||
|
@ -60,9 +75,8 @@ MANL= abort.l alter_group.l alter_table.l alter_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 reindex.l \
|
||||
reset.l revoke.l rollback.l select.l select_into.l \
|
||||
set.l show.l truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
set.l set_constraints.l set_transaction.l show.l \
|
||||
truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
WRKDIR="${WRKDIR}" \
|
||||
|
@ -76,92 +90,66 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|||
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
||||
.endif
|
||||
|
||||
pre-extract:
|
||||
pre-fetch:
|
||||
@ ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postgresql
|
||||
|
||||
post-patch:
|
||||
@ ${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#' \
|
||||
${WRKSRC}/template/freebsd.orig >> ${WRKSRC}/template/freebsd
|
||||
@ ${MV} ${WRKSRC}/Makefile.global.in ${WRKSRC}/Makefile.global.in.old
|
||||
@ ${SED} -e 's=!!PREFIX!!=${PREFIX}=g' \
|
||||
${WRKSRC}/Makefile.global.in.old \
|
||||
>> ${WRKSRC}/Makefile.global.in
|
||||
|
||||
#
|
||||
# USE_AUTOCONF implies GNU_CONFIGURE, which we don't want, so we have
|
||||
# to do it by hand.
|
||||
#
|
||||
pre-configure:
|
||||
@(cd ${WRKSRC} && ${AUTOCONF})
|
||||
|
||||
post-build:
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${GMAKE} -C ${WRKSRC}/interfaces/jdbc jdbc${JAVAVERSION}
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if defined(PACKAGE_BUILDING)
|
||||
${RM} -rf ${PREFIX}/pgsql
|
||||
@ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL
|
||||
.if !defined(BATCH)
|
||||
# remind folks twice for a while, so they really don't miss the layout shift
|
||||
@ ${SED} "s|/usr/local|${PREFIX}|g" < ${PKGMESSAGE} | head -n 25 | more -e
|
||||
.endif
|
||||
@ ${MKDIR} ${PREFIX}/pgsql
|
||||
@ ${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser
|
||||
.if !defined(BATCH)
|
||||
@ ${SED} -e "s#%%WRKDIR%%#${WRKDIR}#; s#%%DISTNAME%%#${DISTNAME}#" \
|
||||
< ${FILESDIR}/pre-install-notes | more -e
|
||||
@ ${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${PLIST} ${PLIST}.nomulti ;\
|
||||
${GREP} -v bin/pg_encoding ${PLIST}.nomulti > ${PLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@ ${CP} ${PLIST} ${PLIST}.notcl ;\
|
||||
${CAT} ${PKGDIR}/${TCL_PLIST} ${PLIST}.notcl > ${PLIST} ;\
|
||||
${RM} ${PLIST}.notcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.noodbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.odbc ${PLIST}.noodbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.nojdbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.jdbc ${PLIST}.nojdbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.nojdbc
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${PLIST}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(NOPORTDOCS)
|
||||
@ ${GMAKE} -C ${DOCDIR} man
|
||||
.else
|
||||
@ ${GMAKE} -C ${DOCDIR} install
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/FAQ* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/README* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/TODO ${PREFIX}/share/doc/pgsql
|
||||
# ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/*ps.gz ${PREFIX}/share/doc/pgsql
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${TMPPLIST}
|
||||
.endif
|
||||
@ ${SED} 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
< ${FILESDIR}/dot.profile.in \
|
||||
> ${PREFIX}/pgsql/dot.profile.dist;
|
||||
@ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \
|
||||
${CP} ${PREFIX}/pgsql/dot.profile.dist \
|
||||
${PREFIX}/pgsql/.profile; \
|
||||
# install shell defaults for pgsql user
|
||||
.for i in profile cshrc
|
||||
@ ${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/dot.$i.in \
|
||||
> ${PREFIX}/share/postgresql/dot.$i.dist; \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/; \
|
||||
if [ ! -f ~pgsql/.$i ]; then \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/.$i; \
|
||||
fi
|
||||
@ ${CHOWN} -R pgsql:pgsql ${PREFIX}/pgsql
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/pgsql/lib
|
||||
@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/pgsql/lib
|
||||
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
|
||||
.endfor
|
||||
@ ${SED} -e "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/pgsql.sh.tmpl \
|
||||
> ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHMOD} 554 ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHOWN} root.pgsql ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#' < ${FILESDIR}/post-install-notes \
|
||||
> ${PREFIX}/pgsql/post-install-notes
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.nomulti
|
||||
@${GREP} -v pgsql/bin/pg_encoding ${TMPPLIST}.nomulti > ${TMPPLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.notcl
|
||||
@${CAT} ${PKGDIR}/${TCL_PLIST} ${TMPPLIST}.notcl > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.notcl
|
||||
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
||||
# XXX This directory and the single file are not registered in
|
||||
# XXX the PLIST, because of different PREFIX.
|
||||
@${MKDIR} ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
> ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3/pkgIndex.tcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.noodbc
|
||||
@${CAT} ${PKGDIR}/pkg-plist.odbc ${TMPPLIST}.noodbc > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/postgresql.jar \
|
||||
@ ${LN} -sf ${PREFIX}/share/postgresql/postgresql.jar \
|
||||
${PREFIX}/share/java/classes/postgresql.jar
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting postgresql.jar in"
|
||||
|
@ -169,33 +157,38 @@ post-install:
|
|||
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
|
||||
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
|
||||
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
|
||||
@ ${ECHO_MSG} "You will need to modify you applications' props files."
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.jdbc >> ${TMPPLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/example/*java \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/README* \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting jdbc examples into ${PREFIX}/share/examples/pgsql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\
|
||||
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
|
||||
pax -rw . ${PREFIX}/share/examples/postgresql
|
||||
.for i in README Implementation
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
|
||||
${PREFIX}/share/examples/postgresql
|
||||
.endfor
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting java examples into ${PREFIX}/share/examples/postgresql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(BATCH)
|
||||
@ more -e ${PREFIX}/pgsql/post-install-notes
|
||||
.endif
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_version postgres psql
|
||||
@ strip ${PREFIX}/pgsql/bin/${file}
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_restore postgres psql
|
||||
@ strip ${PREFIX}/${PG_PREFIX}bin/${file}
|
||||
.endfor
|
||||
.endif
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port/freebsd
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port
|
||||
@ ${CAT} ${PKGMESSAGE}
|
||||
# information overload mode activated, sorry about this... ;-)
|
||||
@ ${CAT} ${FILESDIR}/post-install-notes ${PKGMESSAGE} |\
|
||||
${SED} "s|/usr/local|${PREFIX}|g" |\
|
||||
tee ${PREFIX}/share/postgresql/post-install-notes ;\
|
||||
${INSTALL_DATA} ${PREFIX}/share/postgresql/post-install-notes ~pgsql/. ;\
|
||||
${CHOWN} -R pgsql:pgsql ~pgsql/.
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/${PG_PREFIX}lib
|
||||
.endif
|
||||
|
||||
post-clean:
|
||||
@ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
||||
|
||||
post-extract: ${POSTEXTRACT}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (postgresql/postgresql-7.0.3.base.tar.gz) = 0eeda8217b5b11e5a9351fc424808426
|
||||
MD5 (postgresql/postgresql-7.0.3.support.tar.gz) = b930f71068d776ef45402fcbebfa58cf
|
||||
MD5 (postgresql/postgresql-7.0.3.docs.tar.gz) = 3d3fc76073f6d77febefc83f887fc87d
|
||||
MD5 (postgresql/postgresql-base-7.1.tar.gz) = fce51e036ea8aadafe42f35841e50cc6
|
||||
MD5 (postgresql/postgresql-opt-7.1.tar.gz) = dca8a70020caab1024afe4d0f203fef1
|
||||
MD5 (postgresql/postgresql-docs-7.1.tar.gz) = 8fd7a862909663a6034d4aeb70ea7b71
|
||||
|
|
13
databases/postgresql-devel/files/dot.cshrc.in
Normal file
13
databases/postgresql-devel/files/dot.cshrc.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
set path = ( %%PREFIX%%/%%PG_PREFIX%%bin $path )
|
||||
|
||||
setenv PGLIB %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
setenv PGDATA $HOME/data
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#setenv PGDATESTYLE ISO
|
||||
#setenv LC_ALL sv_SE.ISO_8859-1
|
||||
|
||||
# if you want to make regression tests use this TZ
|
||||
#setenv TZ PST8PDT
|
|
@ -1,10 +1,12 @@
|
|||
PATH=${PATH}:%%PREFIX%%/pgsql/bin
|
||||
PGLIB=%%PREFIX%%/pgsql/lib
|
||||
# both new and old layout's paths, but new path first...
|
||||
PATH=%%PREFIX%%/%%PG_PREFIX%%bin:${PATH}
|
||||
|
||||
PGLIB=%%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
PGDATA=%%PREFIX%%/pgsql/data
|
||||
PGDATA=${HOME}/data
|
||||
|
||||
export PATH MANPATH PGLIB PGDATA
|
||||
export PATH PGLIB PGDATA
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#PGDATESTYLE=ISO
|
||||
|
|
|
@ -1,67 +1,118 @@
|
|||
--- bin/pg_passwd/pg_passwd.c.orig Mon Apr 17 05:45:18 2000
|
||||
+++ bin/pg_passwd/pg_passwd.c Sat May 20 17:54:59 2000
|
||||
@@ -18,11 +18,15 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#ifndef _POSIX_SOURCE
|
||||
+# define _PASSWORD_LEN 128 /* max length, not containing NULL */
|
||||
--- src/bin/pg_passwd/pg_passwd.c.orig Sat Mar 24 01:54:55 2001
|
||||
+++ src/bin/pg_passwd/pg_passwd.c Wed Apr 18 04:54:14 2001
|
||||
@@ -7,6 +7,12 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
+
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <pwd.h> /* defines _PASSWORD_LEN, max # of characters in a password */
|
||||
+#include <sys/time.h> /* gettimeofday for password salt */
|
||||
+#endif
|
||||
+
|
||||
char *comname;
|
||||
static void usage(FILE *stream);
|
||||
#define issaltchar(c) (isalnum((unsigned char) (c)) || (c) == '.' || (c) == '/')
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
@@ -23,18 +29,31 @@
|
||||
* We assume that the output of crypt(3) is always 13 characters,
|
||||
* and that at most 8 characters can usefully be sent to it.
|
||||
*
|
||||
+ * For FreeBSD, take these values from /usr/include/pwd.h
|
||||
* Postgres usernames are assumed to be less than NAMEDATALEN chars long.
|
||||
*/
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define CLEAR_PASSWD_LEN _PASSWORD_LEN
|
||||
+#define CRYPTED_PASSWD_LEN _PASSWORD_LEN /* max length, not containing NULL */
|
||||
+#define SALT_LEN 10
|
||||
+#else
|
||||
#define CLEAR_PASSWD_LEN 8 /* not including null */
|
||||
#define CRYPTED_PASSWD_LEN 13 /* not including null */
|
||||
+#define SALT_LEN 3
|
||||
+#endif
|
||||
+
|
||||
+static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
|
||||
+ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
+
|
||||
|
||||
const char *progname;
|
||||
|
||||
static void usage(void);
|
||||
+static void to64(char *s, long v, int n);
|
||||
static void read_pwd_file(char *filename);
|
||||
static void write_pwd_file(char *filename, char *bkname);
|
||||
-static void encrypt_pwd(char key[9], char salt[3], char passwd[14]);
|
||||
+static void encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1]);
|
||||
static void encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1]);
|
||||
static void prompt_for_username(char *username);
|
||||
static void prompt_for_password(char *prompt, char *password);
|
||||
|
||||
@@ -150,7 +154,7 @@
|
||||
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
- if (strlen(p) != 13)
|
||||
+ if (strlen(p) > _PASSWORD_LEN)
|
||||
{
|
||||
fprintf(stderr, "WARNING: %s: line %d: illegal password length.\n",
|
||||
filename, npwds + 1);
|
||||
@@ -214,7 +218,7 @@
|
||||
@@ -47,6 +66,15 @@
|
||||
printf("Report bugs to <pgsql-bugs@postgresql.org>.\n");
|
||||
}
|
||||
|
||||
+static void
|
||||
+to64(char *s, long v, int n)
|
||||
+{
|
||||
+ while (--n >= 0) {
|
||||
+ *s++ = itoa64[v&0x3f];
|
||||
+ v >>= 6;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
typedef struct
|
||||
{
|
||||
char *uname;
|
||||
@@ -154,7 +182,7 @@
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
|
||||
- if (strlen(p) != CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
+ if (strlen(p) > CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
{
|
||||
fprintf(stderr, "%s:%d: warning: invalid password length\n",
|
||||
filename, npwds + 1);
|
||||
@@ -221,15 +249,25 @@
|
||||
|
||||
static void
|
||||
-encrypt_pwd(char key[9], char salt[3], char passwd[14])
|
||||
+encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1])
|
||||
encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1])
|
||||
{
|
||||
+#if !defined(__FreeBSD__)
|
||||
int n;
|
||||
-
|
||||
+#endif
|
||||
/* select a salt, if not already given */
|
||||
if (salt[0] == '\0')
|
||||
{
|
||||
+#if defined(__FreeBSD__)
|
||||
+ struct timeval tv;
|
||||
+ srandomdev();
|
||||
+ gettimeofday(&tv,0);
|
||||
+ to64(&salt[0], random(), 3);
|
||||
+ to64(&salt[3], tv.tv_usec, 3);
|
||||
+ to64(&salt[6], tv.tv_sec, 2);
|
||||
+ salt[8] = '\0';
|
||||
srand(time(NULL));
|
||||
+#else
|
||||
do
|
||||
{
|
||||
n = rand() % 256;
|
||||
@@ -241,6 +279,7 @@
|
||||
} while (!issaltchar(n));
|
||||
salt[1] = n;
|
||||
salt[2] = '\0';
|
||||
+#endif
|
||||
}
|
||||
|
||||
@@ -246,9 +250,9 @@
|
||||
|
||||
#ifdef NOT_USED
|
||||
static int
|
||||
-check_pwd(char key[9], char passwd[14])
|
||||
+check_pwd(char key[9], char passwd[_PASSWORD_LEN+1])
|
||||
{
|
||||
- char shouldbe[14];
|
||||
+ char shouldbe[_PASSWORD_LEN+1];
|
||||
char salt[3];
|
||||
|
||||
salt[0] = passwd[0];
|
||||
@@ -256,7 +260,7 @@
|
||||
salt[2] = '\0';
|
||||
encrypt_pwd(key, salt, shouldbe);
|
||||
|
||||
- return strncmp(shouldbe, passwd, 13) == 0 ? 1 : 0;
|
||||
+ return strncmp(shouldbe, passwd, _PASSWORD_LEN) == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -332,7 +336,7 @@
|
||||
char salt[3];
|
||||
char key[9],
|
||||
key2[9];
|
||||
- char e_passwd[14];
|
||||
+ char e_passwd[_PASSWORD_LEN+1];
|
||||
int i;
|
||||
|
||||
comname = argv[0];
|
||||
/* get encrypted password */
|
||||
@@ -335,7 +374,7 @@
|
||||
char *filename;
|
||||
char bkname[MAXPGPATH];
|
||||
char username[NAMEDATALEN];
|
||||
- char salt[3];
|
||||
+ char salt[SALT_LEN];
|
||||
char key[CLEAR_PASSWD_LEN + 1],
|
||||
key2[CLEAR_PASSWD_LEN + 1];
|
||||
char e_passwd[CRYPTED_PASSWD_LEN + 1];
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- configure.orig Sun Oct 10 14:37:07 1999
|
||||
+++ configure Sun Oct 10 14:37:29 1999
|
||||
@@ -1429,7 +1429,7 @@
|
||||
ELF_SYS=true
|
||||
else
|
||||
rm -rf conftest*
|
||||
- if test "X$elf" = "Xyes"
|
||||
+ if test "X$PORTOBJFORMAT" = "Xelf"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
|
@ -1,11 +0,0 @@
|
|||
--- Makefile.global.in.orig Sun Dec 6 00:08:56 1998
|
||||
+++ Makefile.global.in Sat Feb 27 04:23:12 1999
|
||||
@@ -79,7 +79,7 @@
|
||||
POSTMANDIR= $(POSTGRESDIR)/man
|
||||
|
||||
# Where the formatted documents (e.g., the reference manual) get installed.
|
||||
-POSTDOCDIR= $(POSTGRESDIR)/doc
|
||||
+POSTDOCDIR= !!PREFIX!!/share/doc/pgsql
|
||||
|
||||
# Where the header files necessary to build frontend programs get installed.
|
||||
HEADERDIR= $(POSTGRESDIR)/include
|
|
@ -1,11 +0,0 @@
|
|||
--- ../doc/Makefile.orig Sun Nov 29 06:30:13 1998
|
||||
+++ ../doc/Makefile Mon Jun 21 17:00:13 1999
|
||||
@@ -12,7 +12,7 @@
|
||||
#
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
-PGDOCS= $(POSTGRESDIR)/doc
|
||||
+PGDOCS= $(POSTDOCDIR)
|
||||
SRCDIR= ../src
|
||||
|
||||
TAR= tar
|
|
@ -1,58 +0,0 @@
|
|||
--- configure.in.orig Sun Nov 5 05:03:47 2000
|
||||
+++ configure.in Mon Dec 4 02:36:15 2000
|
||||
@@ -299,13 +299,28 @@
|
||||
[ --with-tcl build Tcl interfaces and pgtclsh ],
|
||||
[
|
||||
case "$withval" in
|
||||
- y | ye | yes) USE_TCL=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ y | ye | yes) USE_TCL=true; AC_MSG_RESULT(enabled) ;;
|
||||
*) USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ;;
|
||||
esac
|
||||
],
|
||||
[ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ]
|
||||
)
|
||||
|
||||
+dnl We include tk support with tcl unless user says --without-tk
|
||||
+if test USE_TCL = true
|
||||
+then
|
||||
+AC_MSG_CHECKING(setting USE_TK)
|
||||
+AC_ARG_WITH(
|
||||
+ tk,
|
||||
+ [ --without-tk build Tcl *without* Tk ],
|
||||
+ [
|
||||
+ case "$withval" in
|
||||
+ y | ye | yes) USE_TK=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ *) USE_TK=n; AC_MSG_RESULT(disabled) ;;
|
||||
+ esac
|
||||
+ ]
|
||||
+)
|
||||
+fi
|
||||
export USE_TCL
|
||||
export USE_TK
|
||||
|
||||
@@ -482,7 +497,7 @@
|
||||
#endif
|
||||
],
|
||||
ELF_SYS=true,
|
||||
-[if test "X$elf" = "Xyes"
|
||||
+[if test "X$PORTOBJFORMAT" = "Xyes"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
||||
@@ -1248,10 +1263,15 @@
|
||||
else
|
||||
AC_MSG_RESULT($TCL_CONFIG_SH)
|
||||
AC_SUBST(TCL_CONFIG_SH)
|
||||
+ . ${TCL_CONFIG_SH}
|
||||
+ AC_SUBST(TCL_LIB_SPEC)
|
||||
fi
|
||||
fi
|
||||
|
||||
-USE_TK=$USE_TCL # If TCL is disabled, disable TK
|
||||
+USE_TK=${USE_TK:=$USE_TCL} # If TCL is disabled, disable TK
|
||||
+ # otherwise -- enable unless explicitly
|
||||
+ # disabled
|
||||
+
|
||||
|
||||
dnl Check for Tk configuration script tkConfig.sh
|
||||
if test "$USE_TK" = true
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000
|
||||
+++ interfaces/libpq/fe-connect.c Fri Sep 15 13:53:52 2000
|
||||
@@ -801 +801 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -809 +809 @@
|
||||
- sprintf(conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
+ printfPQExpBuffer(&conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
@@ -822 +822 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -832 +832 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -850 +850 @@
|
||||
- strcpy(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/jdbc/Makefile.orig Sun Nov 5 05:03:53 2000
|
||||
+++ interfaces/jdbc/Makefile Fri Dec 8 03:16:17 2000
|
||||
@@ -10,10 +10,10 @@
|
||||
|
||||
FIND = find
|
||||
IDL2JAVA = idltojava -fno-cpp -fno-tie
|
||||
-JAR = jar
|
||||
-JAVA = java
|
||||
-JAVAC = javac -g
|
||||
-JAVADOC = javadoc
|
||||
+JAR = !!JAVA_HOME!!/bin/jar
|
||||
+JAVA = !!JAVA_HOME!!/bin/java
|
||||
+JAVAC = !!JAVA_HOME!!/bin/javac
|
||||
+JAVADOC = !!JAVA_HOME!!/bin/javadoc
|
||||
RM = rm -f
|
||||
TOUCH = touch
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
--- pl/tcl/Makefile~ Sat Apr 29 19:45:42 2000
|
||||
+++ pl/tcl/Makefile Sat May 20 22:42:22 2000
|
||||
@@ -71,7 +71,9 @@
|
||||
CFLAGS+= $(TCL_SHLIB_CFLAGS) $(TCL_DEFS)
|
||||
|
||||
CFLAGS+= -I$(SRCDIR)/include -I$(SRCDIR)/backend $(PGSQL_INCLUDES)
|
||||
-
|
||||
+
|
||||
+CFLAGS+= -I$(TCL_INCDIR)
|
||||
+
|
||||
#
|
||||
# Uncomment the following to enable the unknown command lookup
|
||||
# on the first of all calls to the call handler. See the doc
|
|
@ -1,5 +0,0 @@
|
|||
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
|
||||
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
|
||||
@@ -1 +1 @@
|
||||
-
|
||||
+-i -o "-F"
|
|
@ -1,42 +0,0 @@
|
|||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
|
@ -1,9 +0,0 @@
|
|||
This patches let you disable Tk even if you have it installed and
|
||||
makes sure the TCL-library is added as a dependency for libpgtcl.
|
||||
--- interfaces/libpgtcl/Makefile.in Tue Mar 7 20:58:36 2000
|
||||
+++ interfaces/libpgtcl/Makefile.in Wed Sep 20 08:57:28 2000
|
||||
@@ -29,3 +29,3 @@
|
||||
|
||||
-SHLIB_LINK+= $(LIBPQ)
|
||||
+SHLIB_LINK+= $(LIBPQ) @TCL_LIB_SPEC@
|
||||
|
10
databases/postgresql-devel/files/patch-contrib-retep-build
Normal file
10
databases/postgresql-devel/files/patch-contrib-retep-build
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- contrib/retep/build.xml~ Fri Mar 16 22:50:36 2001
|
||||
+++ contrib/retep/build.xml Wed Apr 18 09:24:20 2001
|
||||
@@ -38,6 +38,7 @@
|
||||
<target name="compile" depends="checks,prepare">
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="${package}/**" />
|
||||
+ <exclude name="${package}/**" unless="jdk1.2+" />
|
||||
</javac>
|
||||
</target>
|
||||
|
19
databases/postgresql-devel/files/patch-doc-makefile
Normal file
19
databases/postgresql-devel/files/patch-doc-makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- doc/Makefile~ Sun Jan 7 03:03:22 2001
|
||||
+++ doc/Makefile Wed Apr 18 08:12:30 2001
|
||||
@@ -43,10 +43,13 @@
|
||||
gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
|
||||
endif
|
||||
|
||||
-
|
||||
installdirs:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
|
||||
-
|
||||
+ifdef found_html
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/html
|
||||
+endif
|
||||
+ifdef found_man
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(mandir)
|
||||
+endif
|
||||
|
||||
uninstall:
|
||||
ifdef found_html
|
10
databases/postgresql-devel/files/patch-jdbc-build-xml
Normal file
10
databases/postgresql-devel/files/patch-jdbc-build-xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/interfaces/jdbc/build.xml~ Fri Mar 16 22:50:43 2001
|
||||
+++ src/interfaces/jdbc/build.xml Wed Apr 18 08:57:57 2001
|
||||
@@ -120,6 +120,7 @@
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="example/**" />
|
||||
<exclude name="example/corba/**"/>
|
||||
+ <exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
13
databases/postgresql-devel/files/patch-jdbc1-statement
Normal file
13
databases/postgresql-devel/files/patch-jdbc1-statement
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java~ Fri Feb 23 19:12:23 2001
|
||||
+++ src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java Wed Apr 18 08:51:03 2001
|
||||
@@ -288,8 +288,8 @@
|
||||
*/
|
||||
public java.sql.ResultSet getResultSet() throws SQLException
|
||||
{
|
||||
- if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
|
||||
- return result;
|
||||
+ if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
|
||||
+ return result;
|
||||
return null;
|
||||
}
|
||||
|
|
@ -2,28 +2,29 @@
|
|||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
|
||||
# Preinstalled options are -i -o "-F"
|
||||
# For postmaster startup options, edit $PGDATA/postgresql.conf
|
||||
|
||||
PGBIN=%%PREFIX%%/%%PG_PREFIX%%bin
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
[ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
su -l pgsql -c \
|
||||
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
|
||||
'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -w -l ~pgsql/errlog'
|
||||
echo -n ' pgsql'
|
||||
}
|
||||
;;
|
||||
|
||||
stop)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl stop -m fast'
|
||||
}
|
||||
;;
|
||||
|
||||
status)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl status'
|
||||
}
|
||||
;;
|
||||
|
||||
|
|
|
@ -15,5 +15,8 @@ operations. You do NOT need to install the pgaccess port separately.
|
|||
If you built in the TCL support, you can load the Pg package into your
|
||||
TCL scripts as easily as ``package require Pgtcl''.
|
||||
|
||||
To start PostgreSQL, run the startup script:
|
||||
%%PREFIX%%/etc/rc.d/010.pgsql.sh start
|
||||
If you built with Java support, add
|
||||
/usr/local/share/java/classes/postgresql.jar to your classpath.
|
||||
|
||||
If you have many tables and many clients running, consider raising
|
||||
kern.maxfiles using sysctl(8).
|
||||
|
|
|
@ -1,9 +1,21 @@
|
|||
# ----------------------------------------------------------------
|
||||
# UPGRADE NOTE! Depending on which version you are upgrading from,
|
||||
# you may have to dump/restore existing databases
|
||||
# as part of the update.
|
||||
# This is *NOT* done by this port!
|
||||
# For detailed instructions, see
|
||||
# %%WRKDIR%%/%%DISTNAME%%/INSTALL
|
||||
# after extraction.
|
||||
# --------------------------------------------------------------
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
%%PREFIX%%/bin
|
||||
%%PREFIX%%/lib
|
||||
%%PREFIX%%/include/pgsql
|
||||
|
||||
You *must* move away your old installation to avoid problems with
|
||||
ldconfig(8) and user's PATH:s. If you rather install using the
|
||||
old-fashion layout, cancel at next screen and run make as:
|
||||
|
||||
$ make -DWITH_OLD_LAYOUT
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
If you want JAVA support, I will try to determine your JAVA_HOME using
|
||||
javavmwrapper. If you want a different JVM, please set JAVA_HOME.
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# remove postgresql users
|
||||
|
||||
case $2 in
|
||||
|
||||
POST-DEINSTALL)
|
||||
pw groupdel pgsql
|
||||
pw userdel pgsql
|
||||
;;
|
||||
|
||||
esac
|
|
@ -37,6 +37,10 @@ PRE-INSTALL)
|
|||
fi
|
||||
fi
|
||||
|
||||
if ! [ -x ~pgsql ] ; then
|
||||
mkdir -p ${DB_DIR}
|
||||
chown pgsql:pgsql ${DB_DIR}
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,30 @@
|
|||
==========================================
|
||||
To initialize the database, you should run
|
||||
initdb as the "pgsql" user.
|
||||
|
||||
======================================================================
|
||||
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
/usr/local/bin
|
||||
/usr/local/lib
|
||||
/usr/local/include/pgsql
|
||||
|
||||
You *must* move away your old installation from users' and
|
||||
ldconfig(8)'s PATHs. If you rather install using the old-fashion
|
||||
layout, cancel now and build the port with "make -DWITH_OLD_LAYOUT".
|
||||
|
||||
The pgsql user's home dir is /usr/local/pgsql by default, but can be
|
||||
changed with for example chpass(1). Datadir defaults to ~pgsql/data,
|
||||
but can be changed by modifying the ~pgsql/.profile script.
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
======================================================================
|
||||
|
||||
To initialize the database, you should run initdb as the "pgsql" user.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -9,4 +33,6 @@ Example:
|
|||
You can then start PostgreSQL by running:
|
||||
|
||||
/usr/local/etc/rc.d/010.pgsql.sh start
|
||||
==========================================
|
||||
|
||||
For postmaster settings, see ~pgsql/data/postmaster.conf
|
||||
======================================================================
|
||||
|
|
|
@ -1,95 +1,90 @@
|
|||
@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi
|
||||
%%PG_PREFIX%%bin/postmaster
|
||||
%%PG_PREFIX%%bin/postgres
|
||||
%%PG_PREFIX%%bin/ecpg
|
||||
%%PG_PREFIX%%bin/initdb
|
||||
%%PG_PREFIX%%bin/initlocation
|
||||
%%PG_PREFIX%%bin/ipcclean
|
||||
%%PG_PREFIX%%bin/pg_ctl
|
||||
%%PG_PREFIX%%bin/pg_dump
|
||||
%%PG_PREFIX%%bin/pg_restore
|
||||
%%PG_PREFIX%%bin/pg_encoding
|
||||
%%PG_PREFIX%%bin/pg_dumpall
|
||||
%%PG_PREFIX%%bin/pg_id
|
||||
%%PG_PREFIX%%bin/pg_passwd
|
||||
%%PG_PREFIX%%bin/psql
|
||||
%%PG_PREFIX%%bin/createdb
|
||||
%%PG_PREFIX%%bin/dropdb
|
||||
%%PG_PREFIX%%bin/createuser
|
||||
%%PG_PREFIX%%bin/dropuser
|
||||
%%PG_PREFIX%%bin/droplang
|
||||
%%PG_PREFIX%%bin/vacuumdb
|
||||
%%PG_PREFIX%%bin/createlang
|
||||
%%PG_PREFIX%%bin/pg_config
|
||||
etc/rc.d/010.pgsql.sh
|
||||
pgsql/dot.profile.dist
|
||||
@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile)
|
||||
pgsql/bin/createdb
|
||||
pgsql/bin/createlang
|
||||
pgsql/bin/createuser
|
||||
pgsql/bin/dropdb
|
||||
pgsql/bin/droplang
|
||||
pgsql/bin/dropuser
|
||||
pgsql/bin/ecpg
|
||||
pgsql/bin/initdb
|
||||
pgsql/bin/initlocation
|
||||
pgsql/bin/ipcclean
|
||||
pgsql/bin/pg_ctl
|
||||
pgsql/bin/pg_dump
|
||||
pgsql/bin/pg_dumpall
|
||||
pgsql/bin/pg_encoding
|
||||
pgsql/bin/pg_id
|
||||
pgsql/bin/pg_passwd
|
||||
pgsql/bin/pg_upgrade
|
||||
pgsql/bin/pg_version
|
||||
pgsql/bin/postgres
|
||||
pgsql/bin/postmaster
|
||||
pgsql/bin/psql
|
||||
pgsql/bin/vacuumdb
|
||||
pgsql/include/access/attnum.h
|
||||
pgsql/include/c.h
|
||||
pgsql/include/commands/trigger.h
|
||||
pgsql/include/config.h
|
||||
pgsql/include/ecpgerrno.h
|
||||
pgsql/include/ecpglib.h
|
||||
pgsql/include/ecpgtype.h
|
||||
pgsql/include/executor/spi.h
|
||||
pgsql/include/fmgr.h
|
||||
pgsql/include/lib/dllist.h
|
||||
pgsql/include/libpgeasy.h
|
||||
pgsql/include/libpq/libpq-fs.h
|
||||
pgsql/include/libpq/pqcomm.h
|
||||
pgsql/include/libpq++/pgconnection.h
|
||||
pgsql/include/libpq++/pgcursordb.h
|
||||
pgsql/include/libpq++/pgdatabase.h
|
||||
pgsql/include/libpq++/pglobject.h
|
||||
pgsql/include/libpq++/pgtransdb.h
|
||||
pgsql/include/libpq++.h
|
||||
pgsql/include/libpq-fe.h
|
||||
pgsql/include/libpq-int.h
|
||||
pgsql/include/os.h
|
||||
pgsql/include/postgres.h
|
||||
pgsql/include/postgres_ext.h
|
||||
pgsql/include/pqexpbuffer.h
|
||||
pgsql/include/sql3types.h
|
||||
pgsql/include/sqlca.h
|
||||
pgsql/include/utils/elog.h
|
||||
pgsql/include/utils/geo_decls.h
|
||||
pgsql/include/utils/mcxt.h
|
||||
pgsql/include/utils/palloc.h
|
||||
pgsql/lib/global1.bki.source
|
||||
pgsql/lib/global1.description
|
||||
pgsql/lib/libecpg.a
|
||||
pgsql/lib/libecpg.so
|
||||
pgsql/lib/libecpg.so.3
|
||||
pgsql/lib/libpgeasy.a
|
||||
pgsql/lib/libpgeasy.so
|
||||
pgsql/lib/libpgeasy.so.2
|
||||
pgsql/lib/libpq++.a
|
||||
pgsql/lib/libpq++.so
|
||||
pgsql/lib/libpq++.so.3
|
||||
pgsql/lib/libpq.a
|
||||
pgsql/lib/libpq.so
|
||||
pgsql/lib/libpq.so.2
|
||||
pgsql/lib/local1_template1.bki.source
|
||||
pgsql/lib/local1_template1.description
|
||||
pgsql/lib/pg_geqo.sample
|
||||
pgsql/lib/pg_hba.conf.sample
|
||||
pgsql/lib/pg_ident.conf.sample
|
||||
pgsql/lib/pg_options.sample
|
||||
pgsql/lib/plpgsql.so
|
||||
pgsql/lib/postmaster.opts.default.sample
|
||||
@exec chown -R root:wheel %D/pgsql/lib
|
||||
pgsql/post-install-notes
|
||||
@dirrm pgsql/bin
|
||||
@dirrm pgsql/include/access
|
||||
@dirrm pgsql/include/commands
|
||||
@dirrm pgsql/include/executor
|
||||
@dirrm pgsql/include/lib
|
||||
@dirrm pgsql/include/libpq
|
||||
@dirrm pgsql/include/libpq++
|
||||
@dirrm pgsql/include/utils
|
||||
@dirrm pgsql/include
|
||||
@dirrm pgsql/lib
|
||||
@dirrm pgsql/man/man1
|
||||
@dirrm pgsql/man/manl
|
||||
@dirrm pgsql/man
|
||||
@dirrm pgsql
|
||||
%%PG_INCLUDE%%/lib/dllist.h
|
||||
@dirrm %%PG_INCLUDE%%/lib
|
||||
%%PG_INCLUDE%%/libpq/pqcomm.h
|
||||
%%PG_INCLUDE%%/libpq/libpq-fs.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq
|
||||
%%PG_INCLUDE%%/libpq++/pgconnection.h
|
||||
%%PG_INCLUDE%%/libpq++/pgdatabase.h
|
||||
%%PG_INCLUDE%%/libpq++/pgtransdb.h
|
||||
%%PG_INCLUDE%%/libpq++/pgcursordb.h
|
||||
%%PG_INCLUDE%%/libpq++/pglobject.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq++
|
||||
%%PG_INCLUDE%%/c.h
|
||||
%%PG_INCLUDE%%/postgres_ext.h
|
||||
%%PG_INCLUDE%%/postgres_fe.h
|
||||
%%PG_INCLUDE%%/os.h
|
||||
%%PG_INCLUDE%%/config.h
|
||||
%%PG_INCLUDE%%/libpq-fe.h
|
||||
%%PG_INCLUDE%%/libpq-int.h
|
||||
%%PG_INCLUDE%%/pqexpbuffer.h
|
||||
%%PG_INCLUDE%%/ecpgerrno.h
|
||||
%%PG_INCLUDE%%/ecpglib.h
|
||||
%%PG_INCLUDE%%/ecpgtype.h
|
||||
%%PG_INCLUDE%%/sqlca.h
|
||||
%%PG_INCLUDE%%/sql3types.h
|
||||
%%PG_INCLUDE%%/libpgeasy.h
|
||||
%%PG_INCLUDE%%/libpq++.h
|
||||
@dirrm %%PG_INCLUDE%%
|
||||
%%PG_PREFIX%%lib/libpq.so
|
||||
%%PG_PREFIX%%lib/libpq.a
|
||||
%%PG_PREFIX%%lib/libpq.so.2
|
||||
%%PG_PREFIX%%lib/libecpg.so
|
||||
%%PG_PREFIX%%lib/libecpg.a
|
||||
%%PG_PREFIX%%lib/libecpg.so.3
|
||||
%%PG_PREFIX%%lib/libpgeasy.so
|
||||
%%PG_PREFIX%%lib/libpgeasy.a
|
||||
%%PG_PREFIX%%lib/libpgeasy.so.2
|
||||
%%PG_PREFIX%%lib/libpq++.so
|
||||
%%PG_PREFIX%%lib/libpq++.a
|
||||
%%PG_PREFIX%%lib/libpq++.so.3
|
||||
%%PG_PREFIX%%lib/plpgsql.so
|
||||
share/postgresql/global.bki
|
||||
share/postgresql/global.description
|
||||
share/postgresql/post-install-notes
|
||||
share/postgresql/template1.bki
|
||||
share/postgresql/template1.description
|
||||
share/postgresql/pg_hba.conf.sample
|
||||
share/postgresql/pg_ident.conf.sample
|
||||
share/postgresql/postgresql.conf.sample
|
||||
@unexec if cmp -s ~pgsql/.profile %D/share/postgresql/dot.profile.dist; then rm -f ~pgsql/.profile; fi
|
||||
@unexec if cmp -s ~pgsql/.cshrc %D/share/postgresql/dot.cshrc.dist; then rm -f ~pgsql/.cshrc; fi
|
||||
@unexec [ -f ~pgsql/dot.profile.dist ] && rm ~pgsql/dot.profile.dist
|
||||
@unexec [ -f ~pgsql/dot.cshrc.dist ] && rm ~pgsql/dot.cshrc.dist
|
||||
@exec [ -f %D/share/postgresql/post-install-notes ] && cp %D/share/postgresql/post-install-notes ~pgsql && chown pgsql:pgsql ~pgsql/post-install-notes
|
||||
@unexec [ -f ~pgsql/post-install-notes ] && rm ~pgsql/post-install-notes
|
||||
share/postgresql/dot.profile.dist
|
||||
share/postgresql/dot.cshrc.dist
|
||||
@dirrm share/postgresql
|
||||
@exec [ -f %D/share/postgresql/dot.profile.dist ] && cp %D/share/postgresql/dot.profile.dist ~pgsql/.
|
||||
@exec [ -f %D/share/postgresql/dot.cshrc.dist ] && cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.
|
||||
@exec [ -f ~pgsql/.profile ] || (cp %D/share/postgresql/dot.profile.dist ~pgsql/.profile && chown pgsql:pgsql ~pgsql/.profile)
|
||||
@exec [ -f ~pgsql/.cshrc ] || (cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.cshrc && chown pgsql:pgsql ~pgsql/.cshrc)
|
||||
@unexec rmdir %D/%%PG_PREFIX%%bin 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%lib 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/man1 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/manl 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man 2> /dev/null || true
|
||||
@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %D/pgsql and the pgsql user manually."
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,14 +1,27 @@
|
|||
share/examples/pgsql/jdbc/ImageViewer.java
|
||||
share/examples/pgsql/jdbc/basic.java
|
||||
share/examples/pgsql/jdbc/blobtest.java
|
||||
share/examples/pgsql/jdbc/datestyle.java
|
||||
share/examples/pgsql/jdbc/metadata.java
|
||||
share/examples/pgsql/jdbc/psql.java
|
||||
share/examples/pgsql/jdbc/threadsafe.java
|
||||
share/examples/pgsql/jdbc/README
|
||||
share/examples/pgsql/jdbc/README_6.3
|
||||
@dirrm share/examples/pgsql/jdbc
|
||||
@dirrm share/examples/pgsql
|
||||
share/examples/postgresql/corba/StockClient.java
|
||||
share/examples/postgresql/corba/StockDB.java
|
||||
share/examples/postgresql/corba/StockDispenserImpl.java
|
||||
share/examples/postgresql/corba/StockItemImpl.java
|
||||
share/examples/postgresql/corba/StockServer.java
|
||||
share/examples/postgresql/corba/readme
|
||||
share/examples/postgresql/corba/stock.idl
|
||||
share/examples/postgresql/corba/stock.sql
|
||||
@dirrm share/examples/postgresql/corba
|
||||
share/examples/postgresql/ImageViewer.java
|
||||
share/examples/postgresql/Unicode.java
|
||||
share/examples/postgresql/basic.java
|
||||
share/examples/postgresql/blobtest.java
|
||||
share/examples/postgresql/datestyle.java
|
||||
share/examples/postgresql/metadata.java
|
||||
share/examples/postgresql/psql.java
|
||||
share/examples/postgresql/threadsafe.java
|
||||
share/examples/postgresql/README
|
||||
share/examples/postgresql/Implementation
|
||||
@dirrm share/examples/postgresql
|
||||
share/postgresql/java/postgresql-examples.jar
|
||||
share/postgresql/java/postgresql.jar
|
||||
share/postgresql/java/retepTools.jar
|
||||
@dirrm share/postgresql/java
|
||||
share/java/classes/postgresql.jar
|
||||
@unexec rmdir %D/share/java/classes 2>/dev/null || true
|
||||
@unexec rmdir %D/share/java 2>/dev/null || true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pgsql/bin/pgtclsh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
pgsql/include/iodbc/iodbc.h
|
||||
pgsql/include/iodbc/isql.h
|
||||
pgsql/include/iodbc/isqlext.h
|
||||
pgsql/lib/libpsqlodbc.a
|
||||
pgsql/lib/libpsqlodbc.so
|
||||
pgsql/lib/libpsqlodbc.so.0
|
||||
pgsql/odbcinst.ini
|
||||
@dirrm pgsql/include/iodbc
|
||||
%%PG_INCLUDE%%/iodbc/iodbc.h
|
||||
%%PG_INCLUDE%%/iodbc/isql.h
|
||||
%%PG_INCLUDE%%/iodbc/isqlext.h
|
||||
@dirrm %%PG_INCLUDE%%/iodbc
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.a
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so.0
|
||||
etc/postgresql/odbcinst.ini
|
||||
@dirrm etc/postgresql
|
||||
share/postgresql/odbc.sql
|
||||
|
|
|
@ -1,141 +1,146 @@
|
|||
pgsql/bin/pgaccess
|
||||
pgsql/bin/pgtclsh
|
||||
pgsql/bin/pgtksh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
pgsql/pgaccess/images/icon_button.gif
|
||||
pgsql/pgaccess/images/icon_checkbutton.gif
|
||||
pgsql/pgaccess/images/icon_entry.gif
|
||||
pgsql/pgaccess/images/icon_frame.gif
|
||||
pgsql/pgaccess/images/icon_label.gif
|
||||
pgsql/pgaccess/images/icon_listbox.gif
|
||||
pgsql/pgaccess/images/icon_query.gif
|
||||
pgsql/pgaccess/images/icon_radiobutton.gif
|
||||
pgsql/pgaccess/images/icon_text.gif
|
||||
pgsql/pgaccess/lib/database.tcl
|
||||
pgsql/pgaccess/lib/forms.tcl
|
||||
pgsql/pgaccess/lib/functions.tcl
|
||||
pgsql/pgaccess/lib/help/abort.hlp
|
||||
pgsql/pgaccess/lib/help/add_records.hlp
|
||||
pgsql/pgaccess/lib/help/alter_table.hlp
|
||||
pgsql/pgaccess/lib/help/alter_user.hlp
|
||||
pgsql/pgaccess/lib/help/author.hlp
|
||||
pgsql/pgaccess/lib/help/begin.hlp
|
||||
pgsql/pgaccess/lib/help/close.hlp
|
||||
pgsql/pgaccess/lib/help/cluster.hlp
|
||||
pgsql/pgaccess/lib/help/commit.hlp
|
||||
pgsql/pgaccess/lib/help/copy.hlp
|
||||
pgsql/pgaccess/lib/help/copyrights.hlp
|
||||
pgsql/pgaccess/lib/help/create_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/create_database.hlp
|
||||
pgsql/pgaccess/lib/help/create_function.hlp
|
||||
pgsql/pgaccess/lib/help/create_index.hlp
|
||||
pgsql/pgaccess/lib/help/create_language.hlp
|
||||
pgsql/pgaccess/lib/help/create_operator.hlp
|
||||
pgsql/pgaccess/lib/help/create_rule.hlp
|
||||
pgsql/pgaccess/lib/help/create_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/create_table.hlp
|
||||
pgsql/pgaccess/lib/help/create_table_as.hlp
|
||||
pgsql/pgaccess/lib/help/create_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/create_type.hlp
|
||||
pgsql/pgaccess/lib/help/create_user.hlp
|
||||
pgsql/pgaccess/lib/help/create_view.hlp
|
||||
pgsql/pgaccess/lib/help/data_types.hlp
|
||||
pgsql/pgaccess/lib/help/datefunc.hlp
|
||||
pgsql/pgaccess/lib/help/declare.hlp
|
||||
pgsql/pgaccess/lib/help/delete.hlp
|
||||
pgsql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/drop_database.hlp
|
||||
pgsql/pgaccess/lib/help/drop_function.hlp
|
||||
pgsql/pgaccess/lib/help/drop_index.hlp
|
||||
pgsql/pgaccess/lib/help/drop_language.hlp
|
||||
pgsql/pgaccess/lib/help/drop_operator.hlp
|
||||
pgsql/pgaccess/lib/help/drop_rule.hlp
|
||||
pgsql/pgaccess/lib/help/drop_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/drop_table.hlp
|
||||
pgsql/pgaccess/lib/help/drop_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/drop_type.hlp
|
||||
pgsql/pgaccess/lib/help/drop_user.hlp
|
||||
pgsql/pgaccess/lib/help/drop_view.hlp
|
||||
pgsql/pgaccess/lib/help/explain.hlp
|
||||
pgsql/pgaccess/lib/help/fetch.hlp
|
||||
pgsql/pgaccess/lib/help/form_design.hlp
|
||||
pgsql/pgaccess/lib/help/forms.hlp
|
||||
pgsql/pgaccess/lib/help/functions.hlp
|
||||
pgsql/pgaccess/lib/help/geomfunc.hlp
|
||||
pgsql/pgaccess/lib/help/grant.hlp
|
||||
pgsql/pgaccess/lib/help/history.hlp
|
||||
pgsql/pgaccess/lib/help/index.hlp
|
||||
pgsql/pgaccess/lib/help/inheritance.hlp
|
||||
pgsql/pgaccess/lib/help/insert.hlp
|
||||
pgsql/pgaccess/lib/help/ipv4func.hlp
|
||||
pgsql/pgaccess/lib/help/isolation.hlp
|
||||
pgsql/pgaccess/lib/help/keywords.hlp
|
||||
pgsql/pgaccess/lib/help/listen.hlp
|
||||
pgsql/pgaccess/lib/help/load.hlp
|
||||
pgsql/pgaccess/lib/help/lock.hlp
|
||||
pgsql/pgaccess/lib/help/mathfunc.hlp
|
||||
pgsql/pgaccess/lib/help/move.hlp
|
||||
pgsql/pgaccess/lib/help/mvcc.hlp
|
||||
pgsql/pgaccess/lib/help/new_query.hlp
|
||||
pgsql/pgaccess/lib/help/new_table.hlp
|
||||
pgsql/pgaccess/lib/help/notify.hlp
|
||||
pgsql/pgaccess/lib/help/open_query.hlp
|
||||
pgsql/pgaccess/lib/help/open_table.hlp
|
||||
pgsql/pgaccess/lib/help/pgfunctions.hlp
|
||||
pgsql/pgaccess/lib/help/postgresql.hlp
|
||||
pgsql/pgaccess/lib/help/queries.hlp
|
||||
pgsql/pgaccess/lib/help/reports.hlp
|
||||
pgsql/pgaccess/lib/help/reset.hlp
|
||||
pgsql/pgaccess/lib/help/revoke.hlp
|
||||
pgsql/pgaccess/lib/help/rollback.hlp
|
||||
pgsql/pgaccess/lib/help/schema.hlp
|
||||
pgsql/pgaccess/lib/help/scripts.hlp
|
||||
pgsql/pgaccess/lib/help/select.hlp
|
||||
pgsql/pgaccess/lib/help/select_into.hlp
|
||||
pgsql/pgaccess/lib/help/sequences.hlp
|
||||
pgsql/pgaccess/lib/help/set.hlp
|
||||
pgsql/pgaccess/lib/help/show.hlp
|
||||
pgsql/pgaccess/lib/help/sql_guide.hlp
|
||||
pgsql/pgaccess/lib/help/sqlfunc.hlp
|
||||
pgsql/pgaccess/lib/help/stringfunc.hlp
|
||||
pgsql/pgaccess/lib/help/tables.hlp
|
||||
pgsql/pgaccess/lib/help/unlisten.hlp
|
||||
pgsql/pgaccess/lib/help/update.hlp
|
||||
pgsql/pgaccess/lib/help/users.hlp
|
||||
pgsql/pgaccess/lib/help/vacuum.hlp
|
||||
pgsql/pgaccess/lib/help/view_table_structure.hlp
|
||||
pgsql/pgaccess/lib/help/views.hlp
|
||||
pgsql/pgaccess/lib/help/visual_designer.hlp
|
||||
pgsql/pgaccess/lib/help/y2k.hlp
|
||||
pgsql/pgaccess/lib/help.tcl
|
||||
pgsql/pgaccess/lib/languages/czech
|
||||
pgsql/pgaccess/lib/languages/deutsch
|
||||
pgsql/pgaccess/lib/languages/francais
|
||||
pgsql/pgaccess/lib/languages/italiano
|
||||
pgsql/pgaccess/lib/languages/magyar
|
||||
pgsql/pgaccess/lib/languages/portugues
|
||||
pgsql/pgaccess/lib/languages/romana
|
||||
pgsql/pgaccess/lib/languages/russian.koi8r
|
||||
pgsql/pgaccess/lib/languages/russian_win
|
||||
pgsql/pgaccess/lib/languages/spanish
|
||||
pgsql/pgaccess/lib/mainlib.tcl
|
||||
pgsql/pgaccess/lib/preferences.tcl
|
||||
pgsql/pgaccess/lib/queries.tcl
|
||||
pgsql/pgaccess/lib/reports.tcl
|
||||
pgsql/pgaccess/lib/schema.tcl
|
||||
pgsql/pgaccess/lib/scripts.tcl
|
||||
pgsql/pgaccess/lib/sequences.tcl
|
||||
pgsql/pgaccess/lib/tables.tcl
|
||||
pgsql/pgaccess/lib/users.tcl
|
||||
pgsql/pgaccess/lib/views.tcl
|
||||
pgsql/pgaccess/lib/visualqb.tcl
|
||||
pgsql/pgaccess/main.tcl
|
||||
@dirrm pgsql/pgaccess/images
|
||||
@dirrm pgsql/pgaccess/lib/help
|
||||
@dirrm pgsql/pgaccess/lib/languages
|
||||
@dirrm pgsql/pgaccess/lib
|
||||
@dirrm pgsql/pgaccess
|
||||
%%PG_PREFIX%%bin/pgaccess
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_PREFIX%%bin/pgtksh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
share/postgresql/pgaccess/images/icon_button.gif
|
||||
share/postgresql/pgaccess/images/icon_checkbutton.gif
|
||||
share/postgresql/pgaccess/images/icon_entry.gif
|
||||
share/postgresql/pgaccess/images/icon_frame.gif
|
||||
share/postgresql/pgaccess/images/icon_label.gif
|
||||
share/postgresql/pgaccess/images/icon_listbox.gif
|
||||
share/postgresql/pgaccess/images/icon_query.gif
|
||||
share/postgresql/pgaccess/images/icon_radiobutton.gif
|
||||
share/postgresql/pgaccess/images/icon_text.gif
|
||||
share/postgresql/pgaccess/lib/database.tcl
|
||||
share/postgresql/pgaccess/lib/forms.tcl
|
||||
share/postgresql/pgaccess/lib/functions.tcl
|
||||
share/postgresql/pgaccess/lib/help/abort.hlp
|
||||
share/postgresql/pgaccess/lib/help/add_records.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/author.hlp
|
||||
share/postgresql/pgaccess/lib/help/begin.hlp
|
||||
share/postgresql/pgaccess/lib/help/close.hlp
|
||||
share/postgresql/pgaccess/lib/help/cluster.hlp
|
||||
share/postgresql/pgaccess/lib/help/commit.hlp
|
||||
share/postgresql/pgaccess/lib/help/copy.hlp
|
||||
share/postgresql/pgaccess/lib/help/copyrights.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table_as.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/data_types.hlp
|
||||
share/postgresql/pgaccess/lib/help/datefunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/declare.hlp
|
||||
share/postgresql/pgaccess/lib/help/delete.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/explain.hlp
|
||||
share/postgresql/pgaccess/lib/help/fetch.hlp
|
||||
share/postgresql/pgaccess/lib/help/form_design.hlp
|
||||
share/postgresql/pgaccess/lib/help/forms.hlp
|
||||
share/postgresql/pgaccess/lib/help/functions.hlp
|
||||
share/postgresql/pgaccess/lib/help/geomfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/grant.hlp
|
||||
share/postgresql/pgaccess/lib/help/history.hlp
|
||||
share/postgresql/pgaccess/lib/help/index.hlp
|
||||
share/postgresql/pgaccess/lib/help/inheritance.hlp
|
||||
share/postgresql/pgaccess/lib/help/insert.hlp
|
||||
share/postgresql/pgaccess/lib/help/ipv4func.hlp
|
||||
share/postgresql/pgaccess/lib/help/isolation.hlp
|
||||
share/postgresql/pgaccess/lib/help/keywords.hlp
|
||||
share/postgresql/pgaccess/lib/help/listen.hlp
|
||||
share/postgresql/pgaccess/lib/help/load.hlp
|
||||
share/postgresql/pgaccess/lib/help/lock.hlp
|
||||
share/postgresql/pgaccess/lib/help/mathfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/move.hlp
|
||||
share/postgresql/pgaccess/lib/help/mvcc.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/notify.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/pgfunctions.hlp
|
||||
share/postgresql/pgaccess/lib/help/postgresql.hlp
|
||||
share/postgresql/pgaccess/lib/help/queries.hlp
|
||||
share/postgresql/pgaccess/lib/help/reports.hlp
|
||||
share/postgresql/pgaccess/lib/help/reset.hlp
|
||||
share/postgresql/pgaccess/lib/help/revoke.hlp
|
||||
share/postgresql/pgaccess/lib/help/rollback.hlp
|
||||
share/postgresql/pgaccess/lib/help/schema.hlp
|
||||
share/postgresql/pgaccess/lib/help/scripts.hlp
|
||||
share/postgresql/pgaccess/lib/help/select.hlp
|
||||
share/postgresql/pgaccess/lib/help/select_into.hlp
|
||||
share/postgresql/pgaccess/lib/help/sequences.hlp
|
||||
share/postgresql/pgaccess/lib/help/set.hlp
|
||||
share/postgresql/pgaccess/lib/help/show.hlp
|
||||
share/postgresql/pgaccess/lib/help/sql_guide.hlp
|
||||
share/postgresql/pgaccess/lib/help/sqlfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/stringfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/tables.hlp
|
||||
share/postgresql/pgaccess/lib/help/unlisten.hlp
|
||||
share/postgresql/pgaccess/lib/help/update.hlp
|
||||
share/postgresql/pgaccess/lib/help/users.hlp
|
||||
share/postgresql/pgaccess/lib/help/vacuum.hlp
|
||||
share/postgresql/pgaccess/lib/help/view_table_structure.hlp
|
||||
share/postgresql/pgaccess/lib/help/views.hlp
|
||||
share/postgresql/pgaccess/lib/help/visual_designer.hlp
|
||||
share/postgresql/pgaccess/lib/help/y2k.hlp
|
||||
share/postgresql/pgaccess/lib/help.tcl
|
||||
share/postgresql/pgaccess/lib/languages/czech
|
||||
share/postgresql/pgaccess/lib/languages/chinese_big5
|
||||
share/postgresql/pgaccess/lib/languages/chinese_gb
|
||||
share/postgresql/pgaccess/lib/languages/deutsch
|
||||
share/postgresql/pgaccess/lib/languages/euskara
|
||||
share/postgresql/pgaccess/lib/languages/francais
|
||||
share/postgresql/pgaccess/lib/languages/italiano
|
||||
share/postgresql/pgaccess/lib/languages/japanese
|
||||
share/postgresql/pgaccess/lib/languages/magyar
|
||||
share/postgresql/pgaccess/lib/languages/nederlands
|
||||
share/postgresql/pgaccess/lib/languages/portugues
|
||||
share/postgresql/pgaccess/lib/languages/romana
|
||||
share/postgresql/pgaccess/lib/languages/russian.koi8r
|
||||
share/postgresql/pgaccess/lib/languages/russian_win
|
||||
share/postgresql/pgaccess/lib/languages/spanish
|
||||
share/postgresql/pgaccess/lib/mainlib.tcl
|
||||
share/postgresql/pgaccess/lib/preferences.tcl
|
||||
share/postgresql/pgaccess/lib/queries.tcl
|
||||
share/postgresql/pgaccess/lib/reports.tcl
|
||||
share/postgresql/pgaccess/lib/schema.tcl
|
||||
share/postgresql/pgaccess/lib/scripts.tcl
|
||||
share/postgresql/pgaccess/lib/sequences.tcl
|
||||
share/postgresql/pgaccess/lib/tables.tcl
|
||||
share/postgresql/pgaccess/lib/users.tcl
|
||||
share/postgresql/pgaccess/lib/views.tcl
|
||||
share/postgresql/pgaccess/lib/visualqb.tcl
|
||||
share/postgresql/pgaccess/main.tcl
|
||||
@dirrm share/postgresql/pgaccess/images
|
||||
@dirrm share/postgresql/pgaccess/lib/help
|
||||
@dirrm share/postgresql/pgaccess/lib/languages
|
||||
@dirrm share/postgresql/pgaccess/lib
|
||||
@dirrm share/postgresql/pgaccess
|
||||
|
|
7
databases/postgresql-devel/scripts/configure
vendored
7
databases/postgresql-devel/scripts/configure
vendored
|
@ -1,7 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
|
||||
cd $WRKSRC || exit 1
|
||||
|
||||
perl -pi -e "s=!!JAVA_HOME!!=${JAVA_HOME}=; s=!!PREFIX!!=${PREFIX}=" ${WRKSRC}/interfaces/jdbc/Makefile
|
|
@ -10,26 +10,22 @@ fi
|
|||
|
||||
if [ ! "${BATCH}" ]; then
|
||||
dialog --title "Backup your data NOW" \
|
||||
--msgbox "`sed -e \"s#%%WRKDIR%%#${WRKDIR}#; s#%%DISTNAME%%#${DISTNAME}#\" < ${FILESDIR}/pre-install-notes`" \
|
||||
--msgbox "`sed -e \"s#%%PREFIX%%#${PREFIX}#\" < ${FILESDIR}/pre-install-notes`" \
|
||||
-1 -1
|
||||
fi
|
||||
|
||||
#SSL=${NO_OPENSSL:+OFF}
|
||||
#SSL=${NOSSL:-ON}
|
||||
|
||||
if [ "${BATCH}" ]; then
|
||||
set \"MultiByte\"
|
||||
set \"MultiByte\" \"ODBC\" \"SSL\"
|
||||
else
|
||||
/usr/bin/dialog --title "configuration options" --clear \
|
||||
--checklist "\n\
|
||||
Please select desired options:" -1 -1 8 \
|
||||
Please select desired options:" -1 -1 7 \
|
||||
JDBC "Java DataBase Connectivity" OFF \
|
||||
MultiByte "Multibyte for Multilingualism" ON \
|
||||
ODBC "Open Database Connectivity" OFF \
|
||||
Perl "Perl" OFF \
|
||||
TCL "Tcl" ON \
|
||||
TCLTK "Tcl/Tk" ON \
|
||||
SSL "Secure Socket Layer (requires certificate)" OFF \
|
||||
SSL "Secure Socket Layer" ON \
|
||||
KRB5 "Kerberos 5" OFF \
|
||||
2> /tmp/checklist.tmp.$$
|
||||
|
||||
|
@ -57,26 +53,46 @@ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
|||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
\"JDBC\")
|
||||
# use JAVA_HOME if set correctly
|
||||
# We use JAVA_HOME if set correctly. If the user has
|
||||
# specified a JVM with JAVA_HOME or via the javavmwrapper,
|
||||
# we validate that it really exists. It is unnecessarily
|
||||
# complicated and error prone to try to figure out the
|
||||
# correct java version just to be able to determine a
|
||||
# BUILD_DEPEND in this case. Instead, assume that a set
|
||||
# JAVA_HOME together with simple sanity check mean we have
|
||||
# an installed JVM, and we don't bother setting
|
||||
# BUILD_DEPENDS.
|
||||
|
||||
echo "# JDBC"
|
||||
if [ "${JAVA_HOME}" -a -x ${JAVA_HOME}/bin/javac ]; then
|
||||
# if JAVA_HOME is set and exists, use it
|
||||
if [ "${JAVA_HOME}" -a -x "${JAVA_HOME}/bin/javac" ]; then
|
||||
echo JAVA_HOME=${JAVA_HOME}
|
||||
if [ "$(${JAVA_HOME}/bin/java -version 2>&1 | egrep \"1.1)" ]; then
|
||||
JAVAVERSION=1
|
||||
echo BUILD_DEPENDS+= ${JAVA_HOME}/bin/javac:\${PORTSDIR}/java/jdk
|
||||
else
|
||||
JAVAVERSION=2
|
||||
echo BUILD_DEPENDS+= ${JAVA_HOME}/bin/javac:\${PORTSDIR}/java/jdk12-beta
|
||||
fi
|
||||
else
|
||||
JAVAVERSION=1
|
||||
echo BUILD_DEPENDS+= \${LOCALBASE}/jdk1.1.8/bin/javac:\${PORTSDIR}/java/jdk
|
||||
echo JAVA_HOME=\${LOCALBASE}/jdk1.1.8
|
||||
# No JAVA_HOME, check javavmwrapper's config file
|
||||
if [ -r "${LOCALBASE}/etc/javavms" ]; then
|
||||
VMS=`/usr/bin/sed 's|#.*||' < "${LOCALBASE}/etc/javavms" | uniq`
|
||||
for JAVAVM in ${VMS}; do
|
||||
if [ -x "${JAVAVM}" ]; then
|
||||
JAVA_HOME=`echo ${JAVAVM} | /usr/bin/sed 's|/bin/java$||`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
if [ "${JAVA_HOME}" -a -x "${JAVA_HOME}/bin/javac" ]; then
|
||||
# yep, wrapper was good
|
||||
echo JAVA_HOME=${JAVA_HOME}
|
||||
else
|
||||
# nothing, use our boring 1.1.8, the only native non-beta jdk :(
|
||||
echo BUILD_DEPENDS+= \${LOCALBASE}/jdk1.1.8/bin/javac:\${PORTSDIR}/java/jdk
|
||||
echo JAVA_HOME=\${LOCALBASE}/jdk1.1.8
|
||||
fi
|
||||
fi
|
||||
cat <<-EOF
|
||||
JAVAVERSION=${JAVAVERSION}
|
||||
BUILD_DEPENDS+= ant:\${PORTSDIR}/devel/jakarta-ant
|
||||
WITH_JDBC=YES
|
||||
SCRIPTS_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
MAKE_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
SCRIPTS_ENV+= JAVA_HOME=\${JAVA_HOME}
|
||||
CONFIGURE_ARGS+= --with-java
|
||||
|
||||
EOF
|
||||
;;
|
||||
|
@ -89,14 +105,6 @@ while [ "$1" ]; do
|
|||
WITH_ODBC=YES
|
||||
CONFIGURE_ARGS+= --with-odbc
|
||||
|
||||
EOF
|
||||
;;
|
||||
\"Perl\")
|
||||
cat <<-EOF
|
||||
# PERL
|
||||
WITH_PERL=YES
|
||||
CONFIGURE_ARGS+= --with-perl
|
||||
|
||||
EOF
|
||||
;;
|
||||
\"TCL\")
|
||||
|
@ -115,6 +123,7 @@ while [ "$1" ]; do
|
|||
CFLAGS+= -DUSE_SSL
|
||||
WITH_SSL= yes
|
||||
CONFIGURE_ENV+= LDFLAGS="-L\${OPENSSLLIB} -lssl -lcrypto"
|
||||
CONFIGURE_ARGS+= --with-openssl
|
||||
|
||||
EOF
|
||||
;;
|
||||
|
@ -215,15 +224,17 @@ if [ "${TCL}" ]; then
|
|||
cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
CONFIGURE_ARGS+= --with-tcl --with-tclconfig="\${TCLCONFIG}"
|
||||
TCLV=\${WITH_TCL:S/.//}
|
||||
TCL_INCDIR= \${LOCALBASE}/include/tcl\${WITH_TCL}
|
||||
MAKE_ENV= TCL_INCDIR=\${TCL_INCDIR}
|
||||
LIB_DEPENDS= tcl\${TCLV}.1:\${PORTSDIR}/lang/tcl\${TCLV}
|
||||
TCLCONFIG= '\${LOCALBASE}/lib/tcl\${WITH_TCL}'
|
||||
TCL_INCDIR= \${LOCALBASE}/include/tcl\${WITH_TCL}
|
||||
MAKE_ENV+= TCL_INCDIR=\${TCL_INCDIR}
|
||||
LIB_DEPENDS+= tcl\${TCLV}:\${PORTSDIR}/lang/tcl\${TCLV}
|
||||
TCLCONFIG= "\${LOCALBASE}/lib/tcl\${WITH_TCL}"
|
||||
.if defined(WITH_TK)
|
||||
TK_INCDIR= \${LOCALBASE}/include/tk\${WITH_TCL}
|
||||
CONFIGURE_ENV+= WISH=\${LOCALBASE}/bin/wish\${WITH_TCL}
|
||||
LIB_DEPENDS+= tk\${TCLV}.1:\${PORTSDIR}/x11-toolkits/tk\${TCLV}
|
||||
TCLCONFIG+= '\${LOCALBASE}/lib/tk\${WITH_TCL}'
|
||||
CONFIGURE_ARGS+= --with-tkconfig="\${TKCONFIG}"
|
||||
TK_INCDIR= \${LOCALBASE}/include/tk\${WITH_TCL}
|
||||
CONFIGURE_ENV+= WISH=\${LOCALBASE}/bin/wish\${WITH_TCL}
|
||||
LIB_DEPENDS+= tk\${TCLV}:\${PORTSDIR}/x11-toolkits/tk\${TCLV}
|
||||
TKCONFIG= "\${LOCALBASE}/lib/tk\${WITH_TCL}"
|
||||
TCLCONFIG+= \${TKCONFIG}
|
||||
TCL_PLIST= pkg-plist.tcl
|
||||
.else
|
||||
TCL_PLIST= pkg-plist.notk
|
||||
|
@ -259,8 +270,7 @@ if [ "${KRB5}" ]; then
|
|||
fi
|
||||
cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
|
||||
.if defined(KRB5_HOME) && exists(\${KRB5_HOME})
|
||||
CONFIGURE_KRB= --with-krb5=\${KRB5_HOME} \
|
||||
--with-krb-keytab=FILE:\${PREFIX}/pgsql/etc/keytab
|
||||
CONFIGURE_KRB= --with-krb5=\${KRB5_HOME}
|
||||
.endif
|
||||
|
||||
EOF
|
||||
|
|
|
@ -1,50 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
|
||||
eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
|
||||
& eval 'exec /usr/bin/perl -S $0 $argv:q'
|
||||
if 0;
|
||||
|
||||
if( $> ) {
|
||||
print "\nYou must be root to run this step!\n\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
if( getpwnam( "pgsql" ) ) {
|
||||
( $null, $null, $pgUID ) = getpwnam( "pgsql" );
|
||||
} else {
|
||||
$pgUID = 70;
|
||||
while( getpwuid( $pgUID ) ) {
|
||||
$pgUID++;
|
||||
}
|
||||
}
|
||||
|
||||
if( getgrnam( "pgsql" ) ) {
|
||||
( $null, $null, $pgGID ) = getgrnam( "pgsql" );
|
||||
} else {
|
||||
$pgGID = 70;
|
||||
while( getgrgid( $pgGID ) ) {
|
||||
$pgGID++;
|
||||
}
|
||||
&append_file( "/etc/group", "pgsql:*:$pgGID:" );
|
||||
}
|
||||
|
||||
print "pgsql user using uid $pgUID\n";
|
||||
print "pgsql user using gid $pgGID\n";
|
||||
|
||||
system( "/usr/bin/chpass -a \"pgsql:*:$pgUID:$pgGID\:\:0:0:PostgreSQL pseudo-user:$ENV{'PREFIX'}/pgsql:/bin/sh\"" );
|
||||
|
||||
sub append_file {
|
||||
local($file,@list) = @_;
|
||||
local($LOCK_EX) = 2;
|
||||
local($LOCK_NB) = 4;
|
||||
local($LOCK_UN) = 8;
|
||||
|
||||
open(F, ">> $file") || die "$file: $!\n";
|
||||
while( ! flock( F, $LOCK_EX | $LOCK_NB ) ) {
|
||||
exit 1;
|
||||
}
|
||||
print F join( "\n", @list) . "\n";
|
||||
close F;
|
||||
flock( F, $LOCK_UN );
|
||||
}
|
|
@ -6,47 +6,62 @@
|
|||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTVERSION= 7.0.3
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 7.1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
MASTER_SITES= ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.postgresql.org/pub/%SUBDIR%/ \
|
||||
ftp://ftp.de.postgresql.org/%SUBDIR%/ \
|
||||
ftp://ftp.iodynamics.com/pub/mirror/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.digex.net/pub/packages/database/postgresql/%SUBDIR%/ \
|
||||
ftp://ftp.sunet.se/pub/unix/databases/relational/postgresql/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= source/v${PORTVERSION}
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}.base${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.support${EXTRACT_SUFX} \
|
||||
${PORTNAME}-${PORTVERSION}.docs${EXTRACT_SUFX}
|
||||
# ${PORTNAME}-${PORTVERSION}.test${EXTRACT_SUFX}
|
||||
DIST_SUBDIR= postgresql
|
||||
DISTFILES= ${PORTNAME}-base-${PORTVERSION}${EXTRACT_SUFX} \
|
||||
${PORTNAME}-opt-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.if !defined(NOPORTDOCS)
|
||||
DISTFILES+= ${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.endif
|
||||
|
||||
MAINTAINER= girgen@partitur.se
|
||||
|
||||
BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
|
||||
DIST_SUBDIR= postgresql
|
||||
|
||||
INSTALLS_SHLIB= YES
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
LDCONFIG_DIRS= %%PREFIX%%/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
DOCDIR= ${WRKDIR}/${DISTNAME}/doc
|
||||
PLIST= ${WRKDIR}/.PLIST.generated
|
||||
|
||||
USE_GMAKE= YES
|
||||
MAKEFILE= GNUmakefile
|
||||
HAS_CONFIGURE= YES
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX}/pgsql \
|
||||
--enable-locale \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
CONFIGURE_ARGS= --enable-locale \
|
||||
--enable-syslog --with-CXX \
|
||||
--sysconfdir=${PREFIX}/etc/postgresql \
|
||||
--with-includes="${PREFIX}/include ${TCL_INCDIR} ${TK_INCDIR}" \
|
||||
--with-libraries=${PREFIX}/lib
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/pgsql/include \
|
||||
--datadir=${PREFIX}/share \
|
||||
--with-template=`uname -s | ${TR} '[A-Z]' '[a-z]'` \
|
||||
--prefix=${PREFIX}/pgsql
|
||||
PG_PREFIX= pgsql/
|
||||
PG_INCLUDE= pgsql/include
|
||||
LDCONFIG_DIRS= %%PREFIX%%/pgsql/lib
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
.else
|
||||
GNU_CONFIGURE= YES
|
||||
CONFIGURE_ARGS+=--docdir=${PREFIX}/share/doc --includedir=${PREFIX}/include/pgsql
|
||||
PG_PREFIX=""
|
||||
PG_INCLUDE= include/pgsql
|
||||
.endif
|
||||
|
||||
PLIST_SUB= PG_PREFIX="${PG_PREFIX}" PG_INCLUDE="${PG_INCLUDE}"
|
||||
|
||||
MAN1= createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_ctl.1 \
|
||||
pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_upgrade.1 pgaccess.1 \
|
||||
pgadmin.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 pg_config.1 \
|
||||
pg_ctl.1 pg_dump.1 pg_dumpall.1 pg_passwd.1 pg_restore.1 \
|
||||
pgaccess.1 pgtclsh.1 pgtksh.1 postgres.1 postmaster.1 psql.1 \
|
||||
vacuumdb.1
|
||||
MANL= abort.l alter_group.l alter_table.l alter_user.l \
|
||||
begin.l close.l cluster.l comment.l commit.l copy.l \
|
||||
begin.l checkpoint.l close.l cluster.l comment.l commit.l copy.l \
|
||||
create_aggregate.l create_constraint_trigger.l \
|
||||
create_database.l create_function.l create_group.l \
|
||||
create_index.l create_language.l create_operator.l \
|
||||
|
@ -60,9 +75,8 @@ MANL= abort.l alter_group.l alter_table.l alter_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 reindex.l \
|
||||
reset.l revoke.l rollback.l select.l select_into.l \
|
||||
set.l show.l truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
MANPREFIX= ${PREFIX}/pgsql
|
||||
set.l set_constraints.l set_transaction.l show.l \
|
||||
truncate.l unlisten.l update.l vacuum.l
|
||||
|
||||
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
||||
WRKDIR="${WRKDIR}" \
|
||||
|
@ -76,92 +90,66 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|||
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
||||
.endif
|
||||
|
||||
pre-extract:
|
||||
pre-fetch:
|
||||
@ ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postgresql
|
||||
|
||||
post-patch:
|
||||
@ ${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#' \
|
||||
${WRKSRC}/template/freebsd.orig >> ${WRKSRC}/template/freebsd
|
||||
@ ${MV} ${WRKSRC}/Makefile.global.in ${WRKSRC}/Makefile.global.in.old
|
||||
@ ${SED} -e 's=!!PREFIX!!=${PREFIX}=g' \
|
||||
${WRKSRC}/Makefile.global.in.old \
|
||||
>> ${WRKSRC}/Makefile.global.in
|
||||
|
||||
#
|
||||
# USE_AUTOCONF implies GNU_CONFIGURE, which we don't want, so we have
|
||||
# to do it by hand.
|
||||
#
|
||||
pre-configure:
|
||||
@(cd ${WRKSRC} && ${AUTOCONF})
|
||||
|
||||
post-build:
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${GMAKE} -C ${WRKSRC}/interfaces/jdbc jdbc${JAVAVERSION}
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
.if defined(PACKAGE_BUILDING)
|
||||
${RM} -rf ${PREFIX}/pgsql
|
||||
@ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/pkg-install ${PORTNAME} PRE-INSTALL
|
||||
.if !defined(BATCH)
|
||||
# remind folks twice for a while, so they really don't miss the layout shift
|
||||
@ ${SED} "s|/usr/local|${PREFIX}|g" < ${PKGMESSAGE} | head -n 25 | more -e
|
||||
.endif
|
||||
@ ${MKDIR} ${PREFIX}/pgsql
|
||||
@ ${SETENV} ${MAKE_ENV} perl ${SCRIPTDIR}/createuser
|
||||
.if !defined(BATCH)
|
||||
@ ${SED} -e "s#%%WRKDIR%%#${WRKDIR}#; s#%%DISTNAME%%#${DISTNAME}#" \
|
||||
< ${FILESDIR}/pre-install-notes | more -e
|
||||
@ ${CP} ${PKGDIR}/pkg-plist ${PLIST}
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${PLIST} ${PLIST}.nomulti ;\
|
||||
${GREP} -v bin/pg_encoding ${PLIST}.nomulti > ${PLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@ ${CP} ${PLIST} ${PLIST}.notcl ;\
|
||||
${CAT} ${PKGDIR}/${TCL_PLIST} ${PLIST}.notcl > ${PLIST} ;\
|
||||
${RM} ${PLIST}.notcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.noodbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.odbc ${PLIST}.noodbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${CP} ${PLIST} ${PLIST}.nojdbc ;\
|
||||
${CAT} ${PKGDIR}/pkg-plist.jdbc ${PLIST}.nojdbc > ${PLIST} ;\
|
||||
${RM} ${PLIST}.nojdbc
|
||||
.endif
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${PLIST}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if defined(NOPORTDOCS)
|
||||
@ ${GMAKE} -C ${DOCDIR} man
|
||||
.else
|
||||
@ ${GMAKE} -C ${DOCDIR} install
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/FAQ* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/README* ${PREFIX}/share/doc/pgsql
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/TODO ${PREFIX}/share/doc/pgsql
|
||||
# ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/doc/*ps.gz ${PREFIX}/share/doc/pgsql
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.doc >> ${TMPPLIST}
|
||||
.endif
|
||||
@ ${SED} 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
< ${FILESDIR}/dot.profile.in \
|
||||
> ${PREFIX}/pgsql/dot.profile.dist;
|
||||
@ if [ ! -f ${PREFIX}/pgsql/.profile ]; then \
|
||||
${CP} ${PREFIX}/pgsql/dot.profile.dist \
|
||||
${PREFIX}/pgsql/.profile; \
|
||||
# install shell defaults for pgsql user
|
||||
.for i in profile cshrc
|
||||
@ ${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/dot.$i.in \
|
||||
> ${PREFIX}/share/postgresql/dot.$i.dist; \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/; \
|
||||
if [ ! -f ~pgsql/.$i ]; then \
|
||||
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/.$i; \
|
||||
fi
|
||||
@ ${CHOWN} -R pgsql:pgsql ${PREFIX}/pgsql
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/pgsql/lib
|
||||
@ ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/pgsql/lib
|
||||
@ ${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
|
||||
.endfor
|
||||
@ ${SED} -e "s|%%PREFIX%%|${PREFIX}|g; s|%%PG_PREFIX%%|${PG_PREFIX}|g" \
|
||||
< ${FILESDIR}/pgsql.sh.tmpl \
|
||||
> ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHMOD} 554 ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${CHOWN} root.pgsql ${PREFIX}/etc/rc.d/010.pgsql.sh
|
||||
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#' < ${FILESDIR}/post-install-notes \
|
||||
> ${PREFIX}/pgsql/post-install-notes
|
||||
.if defined(WITHOUT_MULTIBYTE)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.nomulti
|
||||
@${GREP} -v pgsql/bin/pg_encoding ${TMPPLIST}.nomulti > ${TMPPLIST}
|
||||
.endif
|
||||
.if defined(WITH_TCL)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.notcl
|
||||
@${CAT} ${PKGDIR}/${TCL_PLIST} ${TMPPLIST}.notcl > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.notcl
|
||||
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
||||
# XXX This directory and the single file are not registered in
|
||||
# XXX the PLIST, because of different PREFIX.
|
||||
@${MKDIR} ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3
|
||||
@${SED} 's|%%PREFIX%%|${PREFIX}|' < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
> ${LOCALBASE}/lib/tcl${WITH_TCL}/Pgtcl1.3/pkgIndex.tcl
|
||||
.endif
|
||||
.if defined(WITH_ODBC)
|
||||
@${CP} ${TMPPLIST} ${TMPPLIST}.noodbc
|
||||
@${CAT} ${PKGDIR}/pkg-plist.odbc ${TMPPLIST}.noodbc > ${TMPPLIST}
|
||||
@${RM} ${TMPPLIST}.noodbc
|
||||
.endif
|
||||
.if defined(WITH_JDBC)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/java/classes
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/postgresql.jar \
|
||||
@ ${LN} -sf ${PREFIX}/share/postgresql/postgresql.jar \
|
||||
${PREFIX}/share/java/classes/postgresql.jar
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting postgresql.jar in"
|
||||
|
@ -169,33 +157,38 @@ post-install:
|
|||
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
|
||||
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
|
||||
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
|
||||
@ ${ECHO_MSG} "You will need to modify you applications' props files."
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${CAT} ${PKGDIR}/pkg-plist.jdbc >> ${TMPPLIST}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/example/*java \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/interfaces/jdbc/README* \
|
||||
${PREFIX}/share/examples/pgsql/jdbc
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting jdbc examples into ${PREFIX}/share/examples/pgsql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------"
|
||||
@ ${MKDIR} -m 0555 ${PREFIX}/share/examples/postgresql ;\
|
||||
cd ${WRKSRC}/src/interfaces/jdbc/example ;\
|
||||
pax -rw . ${PREFIX}/share/examples/postgresql
|
||||
.for i in README Implementation
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/src/interfaces/jdbc/$i \
|
||||
${PREFIX}/share/examples/postgresql
|
||||
.endfor
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
@ ${ECHO_MSG} "Putting java examples into ${PREFIX}/share/examples/postgresql"
|
||||
@ ${ECHO_MSG} "---------------------------------------------------------------"
|
||||
.endif
|
||||
.endif
|
||||
.if !defined(BATCH)
|
||||
@ more -e ${PREFIX}/pgsql/post-install-notes
|
||||
.endif
|
||||
.if !defined(DEBUG_FLAGS)
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_version postgres psql
|
||||
@ strip ${PREFIX}/pgsql/bin/${file}
|
||||
.for file in ecpg pg_dump pg_id pg_passwd pg_restore postgres psql
|
||||
@ strip ${PREFIX}/${PG_PREFIX}bin/${file}
|
||||
.endfor
|
||||
.endif
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port/freebsd
|
||||
@ ${RMDIR} ${PREFIX}/pgsql/include/port
|
||||
@ ${CAT} ${PKGMESSAGE}
|
||||
# information overload mode activated, sorry about this... ;-)
|
||||
@ ${CAT} ${FILESDIR}/post-install-notes ${PKGMESSAGE} |\
|
||||
${SED} "s|/usr/local|${PREFIX}|g" |\
|
||||
tee ${PREFIX}/share/postgresql/post-install-notes ;\
|
||||
${INSTALL_DATA} ${PREFIX}/share/postgresql/post-install-notes ~pgsql/. ;\
|
||||
${CHOWN} -R pgsql:pgsql ~pgsql/.
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
@ ${CHOWN} root:pgsql ${PREFIX}/${PG_PREFIX}lib
|
||||
.endif
|
||||
|
||||
post-clean:
|
||||
@ ${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
||||
|
||||
post-extract: ${POSTEXTRACT}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
MD5 (postgresql/postgresql-7.0.3.base.tar.gz) = 0eeda8217b5b11e5a9351fc424808426
|
||||
MD5 (postgresql/postgresql-7.0.3.support.tar.gz) = b930f71068d776ef45402fcbebfa58cf
|
||||
MD5 (postgresql/postgresql-7.0.3.docs.tar.gz) = 3d3fc76073f6d77febefc83f887fc87d
|
||||
MD5 (postgresql/postgresql-base-7.1.tar.gz) = fce51e036ea8aadafe42f35841e50cc6
|
||||
MD5 (postgresql/postgresql-opt-7.1.tar.gz) = dca8a70020caab1024afe4d0f203fef1
|
||||
MD5 (postgresql/postgresql-docs-7.1.tar.gz) = 8fd7a862909663a6034d4aeb70ea7b71
|
||||
|
|
13
databases/postgresql7/files/dot.cshrc.in
Normal file
13
databases/postgresql7/files/dot.cshrc.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
set path = ( %%PREFIX%%/%%PG_PREFIX%%bin $path )
|
||||
|
||||
setenv PGLIB %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
setenv PGDATA $HOME/data
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#setenv PGDATESTYLE ISO
|
||||
#setenv LC_ALL sv_SE.ISO_8859-1
|
||||
|
||||
# if you want to make regression tests use this TZ
|
||||
#setenv TZ PST8PDT
|
|
@ -1,10 +1,12 @@
|
|||
PATH=${PATH}:%%PREFIX%%/pgsql/bin
|
||||
PGLIB=%%PREFIX%%/pgsql/lib
|
||||
# both new and old layout's paths, but new path first...
|
||||
PATH=%%PREFIX%%/%%PG_PREFIX%%bin:${PATH}
|
||||
|
||||
PGLIB=%%PREFIX%%/%%PG_PREFIX%%lib
|
||||
|
||||
# note: PGDATA can be overridden by the -D startup option
|
||||
PGDATA=%%PREFIX%%/pgsql/data
|
||||
PGDATA=${HOME}/data
|
||||
|
||||
export PATH MANPATH PGLIB PGDATA
|
||||
export PATH PGLIB PGDATA
|
||||
|
||||
#You might want to set some locale stuff here
|
||||
#PGDATESTYLE=ISO
|
||||
|
|
|
@ -1,67 +1,118 @@
|
|||
--- bin/pg_passwd/pg_passwd.c.orig Mon Apr 17 05:45:18 2000
|
||||
+++ bin/pg_passwd/pg_passwd.c Sat May 20 17:54:59 2000
|
||||
@@ -18,11 +18,15 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#ifndef _POSIX_SOURCE
|
||||
+# define _PASSWORD_LEN 128 /* max length, not containing NULL */
|
||||
--- src/bin/pg_passwd/pg_passwd.c.orig Sat Mar 24 01:54:55 2001
|
||||
+++ src/bin/pg_passwd/pg_passwd.c Wed Apr 18 04:54:14 2001
|
||||
@@ -7,6 +7,12 @@
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
+
|
||||
+#if defined(__FreeBSD__)
|
||||
+#include <pwd.h> /* defines _PASSWORD_LEN, max # of characters in a password */
|
||||
+#include <sys/time.h> /* gettimeofday for password salt */
|
||||
+#endif
|
||||
+
|
||||
char *comname;
|
||||
static void usage(FILE *stream);
|
||||
#define issaltchar(c) (isalnum((unsigned char) (c)) || (c) == '.' || (c) == '/')
|
||||
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
@@ -23,18 +29,31 @@
|
||||
* We assume that the output of crypt(3) is always 13 characters,
|
||||
* and that at most 8 characters can usefully be sent to it.
|
||||
*
|
||||
+ * For FreeBSD, take these values from /usr/include/pwd.h
|
||||
* Postgres usernames are assumed to be less than NAMEDATALEN chars long.
|
||||
*/
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define CLEAR_PASSWD_LEN _PASSWORD_LEN
|
||||
+#define CRYPTED_PASSWD_LEN _PASSWORD_LEN /* max length, not containing NULL */
|
||||
+#define SALT_LEN 10
|
||||
+#else
|
||||
#define CLEAR_PASSWD_LEN 8 /* not including null */
|
||||
#define CRYPTED_PASSWD_LEN 13 /* not including null */
|
||||
+#define SALT_LEN 3
|
||||
+#endif
|
||||
+
|
||||
+static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
|
||||
+ "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
+
|
||||
|
||||
const char *progname;
|
||||
|
||||
static void usage(void);
|
||||
+static void to64(char *s, long v, int n);
|
||||
static void read_pwd_file(char *filename);
|
||||
static void write_pwd_file(char *filename, char *bkname);
|
||||
-static void encrypt_pwd(char key[9], char salt[3], char passwd[14]);
|
||||
+static void encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1]);
|
||||
static void encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1]);
|
||||
static void prompt_for_username(char *username);
|
||||
static void prompt_for_password(char *prompt, char *password);
|
||||
|
||||
@@ -150,7 +154,7 @@
|
||||
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
- if (strlen(p) != 13)
|
||||
+ if (strlen(p) > _PASSWORD_LEN)
|
||||
{
|
||||
fprintf(stderr, "WARNING: %s: line %d: illegal password length.\n",
|
||||
filename, npwds + 1);
|
||||
@@ -214,7 +218,7 @@
|
||||
@@ -47,6 +66,15 @@
|
||||
printf("Report bugs to <pgsql-bugs@postgresql.org>.\n");
|
||||
}
|
||||
|
||||
+static void
|
||||
+to64(char *s, long v, int n)
|
||||
+{
|
||||
+ while (--n >= 0) {
|
||||
+ *s++ = itoa64[v&0x3f];
|
||||
+ v >>= 6;
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
typedef struct
|
||||
{
|
||||
char *uname;
|
||||
@@ -154,7 +182,7 @@
|
||||
if (q != NULL)
|
||||
*(q++) = '\0';
|
||||
|
||||
- if (strlen(p) != CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
+ if (strlen(p) > CRYPTED_PASSWD_LEN && strcmp(p, "+") != 0)
|
||||
{
|
||||
fprintf(stderr, "%s:%d: warning: invalid password length\n",
|
||||
filename, npwds + 1);
|
||||
@@ -221,15 +249,25 @@
|
||||
|
||||
static void
|
||||
-encrypt_pwd(char key[9], char salt[3], char passwd[14])
|
||||
+encrypt_pwd(char key[9], char salt[3], char passwd[_PASSWORD_LEN+1])
|
||||
encrypt_pwd(char key[CLEAR_PASSWD_LEN + 1],
|
||||
- char salt[3],
|
||||
+ char salt[SALT_LEN],
|
||||
char passwd[CRYPTED_PASSWD_LEN + 1])
|
||||
{
|
||||
+#if !defined(__FreeBSD__)
|
||||
int n;
|
||||
-
|
||||
+#endif
|
||||
/* select a salt, if not already given */
|
||||
if (salt[0] == '\0')
|
||||
{
|
||||
+#if defined(__FreeBSD__)
|
||||
+ struct timeval tv;
|
||||
+ srandomdev();
|
||||
+ gettimeofday(&tv,0);
|
||||
+ to64(&salt[0], random(), 3);
|
||||
+ to64(&salt[3], tv.tv_usec, 3);
|
||||
+ to64(&salt[6], tv.tv_sec, 2);
|
||||
+ salt[8] = '\0';
|
||||
srand(time(NULL));
|
||||
+#else
|
||||
do
|
||||
{
|
||||
n = rand() % 256;
|
||||
@@ -241,6 +279,7 @@
|
||||
} while (!issaltchar(n));
|
||||
salt[1] = n;
|
||||
salt[2] = '\0';
|
||||
+#endif
|
||||
}
|
||||
|
||||
@@ -246,9 +250,9 @@
|
||||
|
||||
#ifdef NOT_USED
|
||||
static int
|
||||
-check_pwd(char key[9], char passwd[14])
|
||||
+check_pwd(char key[9], char passwd[_PASSWORD_LEN+1])
|
||||
{
|
||||
- char shouldbe[14];
|
||||
+ char shouldbe[_PASSWORD_LEN+1];
|
||||
char salt[3];
|
||||
|
||||
salt[0] = passwd[0];
|
||||
@@ -256,7 +260,7 @@
|
||||
salt[2] = '\0';
|
||||
encrypt_pwd(key, salt, shouldbe);
|
||||
|
||||
- return strncmp(shouldbe, passwd, 13) == 0 ? 1 : 0;
|
||||
+ return strncmp(shouldbe, passwd, _PASSWORD_LEN) == 0 ? 1 : 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -332,7 +336,7 @@
|
||||
char salt[3];
|
||||
char key[9],
|
||||
key2[9];
|
||||
- char e_passwd[14];
|
||||
+ char e_passwd[_PASSWORD_LEN+1];
|
||||
int i;
|
||||
|
||||
comname = argv[0];
|
||||
/* get encrypted password */
|
||||
@@ -335,7 +374,7 @@
|
||||
char *filename;
|
||||
char bkname[MAXPGPATH];
|
||||
char username[NAMEDATALEN];
|
||||
- char salt[3];
|
||||
+ char salt[SALT_LEN];
|
||||
char key[CLEAR_PASSWD_LEN + 1],
|
||||
key2[CLEAR_PASSWD_LEN + 1];
|
||||
char e_passwd[CRYPTED_PASSWD_LEN + 1];
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- configure.orig Sun Oct 10 14:37:07 1999
|
||||
+++ configure Sun Oct 10 14:37:29 1999
|
||||
@@ -1429,7 +1429,7 @@
|
||||
ELF_SYS=true
|
||||
else
|
||||
rm -rf conftest*
|
||||
- if test "X$elf" = "Xyes"
|
||||
+ if test "X$PORTOBJFORMAT" = "Xelf"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
|
@ -1,11 +0,0 @@
|
|||
--- Makefile.global.in.orig Sun Dec 6 00:08:56 1998
|
||||
+++ Makefile.global.in Sat Feb 27 04:23:12 1999
|
||||
@@ -79,7 +79,7 @@
|
||||
POSTMANDIR= $(POSTGRESDIR)/man
|
||||
|
||||
# Where the formatted documents (e.g., the reference manual) get installed.
|
||||
-POSTDOCDIR= $(POSTGRESDIR)/doc
|
||||
+POSTDOCDIR= !!PREFIX!!/share/doc/pgsql
|
||||
|
||||
# Where the header files necessary to build frontend programs get installed.
|
||||
HEADERDIR= $(POSTGRESDIR)/include
|
|
@ -1,11 +0,0 @@
|
|||
--- ../doc/Makefile.orig Sun Nov 29 06:30:13 1998
|
||||
+++ ../doc/Makefile Mon Jun 21 17:00:13 1999
|
||||
@@ -12,7 +12,7 @@
|
||||
#
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
-PGDOCS= $(POSTGRESDIR)/doc
|
||||
+PGDOCS= $(POSTDOCDIR)
|
||||
SRCDIR= ../src
|
||||
|
||||
TAR= tar
|
|
@ -1,58 +0,0 @@
|
|||
--- configure.in.orig Sun Nov 5 05:03:47 2000
|
||||
+++ configure.in Mon Dec 4 02:36:15 2000
|
||||
@@ -299,13 +299,28 @@
|
||||
[ --with-tcl build Tcl interfaces and pgtclsh ],
|
||||
[
|
||||
case "$withval" in
|
||||
- y | ye | yes) USE_TCL=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ y | ye | yes) USE_TCL=true; AC_MSG_RESULT(enabled) ;;
|
||||
*) USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ;;
|
||||
esac
|
||||
],
|
||||
[ USE_TCL=; USE_TK=; AC_MSG_RESULT(disabled) ]
|
||||
)
|
||||
|
||||
+dnl We include tk support with tcl unless user says --without-tk
|
||||
+if test USE_TCL = true
|
||||
+then
|
||||
+AC_MSG_CHECKING(setting USE_TK)
|
||||
+AC_ARG_WITH(
|
||||
+ tk,
|
||||
+ [ --without-tk build Tcl *without* Tk ],
|
||||
+ [
|
||||
+ case "$withval" in
|
||||
+ y | ye | yes) USE_TK=true; USE_TK=true; AC_MSG_RESULT(enabled) ;;
|
||||
+ *) USE_TK=n; AC_MSG_RESULT(disabled) ;;
|
||||
+ esac
|
||||
+ ]
|
||||
+)
|
||||
+fi
|
||||
export USE_TCL
|
||||
export USE_TK
|
||||
|
||||
@@ -482,7 +497,7 @@
|
||||
#endif
|
||||
],
|
||||
ELF_SYS=true,
|
||||
-[if test "X$elf" = "Xyes"
|
||||
+[if test "X$PORTOBJFORMAT" = "Xyes"
|
||||
then
|
||||
ELF_SYS=true
|
||||
else
|
||||
@@ -1248,10 +1263,15 @@
|
||||
else
|
||||
AC_MSG_RESULT($TCL_CONFIG_SH)
|
||||
AC_SUBST(TCL_CONFIG_SH)
|
||||
+ . ${TCL_CONFIG_SH}
|
||||
+ AC_SUBST(TCL_LIB_SPEC)
|
||||
fi
|
||||
fi
|
||||
|
||||
-USE_TK=$USE_TCL # If TCL is disabled, disable TK
|
||||
+USE_TK=${USE_TK:=$USE_TCL} # If TCL is disabled, disable TK
|
||||
+ # otherwise -- enable unless explicitly
|
||||
+ # disabled
|
||||
+
|
||||
|
||||
dnl Check for Tk configuration script tkConfig.sh
|
||||
if test "$USE_TK" = true
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000
|
||||
+++ interfaces/libpq/fe-connect.c Fri Sep 15 13:53:52 2000
|
||||
@@ -801 +801 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -809 +809 @@
|
||||
- sprintf(conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
+ printfPQExpBuffer(&conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
|
||||
@@ -822 +822 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -832 +832 @@
|
||||
- sprintf(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
||||
@@ -850 +850 @@
|
||||
- strcpy(conn->errorMessage,
|
||||
+ printfPQExpBuffer(&conn->errorMessage,
|
|
@ -1,17 +0,0 @@
|
|||
--- interfaces/jdbc/Makefile.orig Sun Nov 5 05:03:53 2000
|
||||
+++ interfaces/jdbc/Makefile Fri Dec 8 03:16:17 2000
|
||||
@@ -10,10 +10,10 @@
|
||||
|
||||
FIND = find
|
||||
IDL2JAVA = idltojava -fno-cpp -fno-tie
|
||||
-JAR = jar
|
||||
-JAVA = java
|
||||
-JAVAC = javac -g
|
||||
-JAVADOC = javadoc
|
||||
+JAR = !!JAVA_HOME!!/bin/jar
|
||||
+JAVA = !!JAVA_HOME!!/bin/java
|
||||
+JAVAC = !!JAVA_HOME!!/bin/javac
|
||||
+JAVADOC = !!JAVA_HOME!!/bin/javadoc
|
||||
RM = rm -f
|
||||
TOUCH = touch
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
--- pl/tcl/Makefile~ Sat Apr 29 19:45:42 2000
|
||||
+++ pl/tcl/Makefile Sat May 20 22:42:22 2000
|
||||
@@ -71,7 +71,9 @@
|
||||
CFLAGS+= $(TCL_SHLIB_CFLAGS) $(TCL_DEFS)
|
||||
|
||||
CFLAGS+= -I$(SRCDIR)/include -I$(SRCDIR)/backend $(PGSQL_INCLUDES)
|
||||
-
|
||||
+
|
||||
+CFLAGS+= -I$(TCL_INCDIR)
|
||||
+
|
||||
#
|
||||
# Uncomment the following to enable the unknown command lookup
|
||||
# on the first of all calls to the call handler. See the doc
|
|
@ -1,5 +0,0 @@
|
|||
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
|
||||
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
|
||||
@@ -1 +1 @@
|
||||
-
|
||||
+-i -o "-F"
|
|
@ -1,42 +0,0 @@
|
|||
Here are the two extra patch files that will allow PostgreSQL to
|
||||
compile and run on Alpha. The DB is 64-bit capable so really only a few
|
||||
bits of configuration for FreeBSD were needed.
|
||||
|
||||
--- backend/main/main.c.orig Wed Aug 30 16:05:39 2000
|
||||
+++ backend/main/main.c Wed Aug 30 16:06:10 2000
|
||||
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
-#if defined(__alpha__) && !defined(linux)
|
||||
+#if defined(__alpha__) && !defined(linux) && !defined(__FreeBSD__)
|
||||
#include <sys/sysinfo.h>
|
||||
#include "machine/hal_sysinfo.h"
|
||||
#define ASSEMBLER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
--- include/port/freebsd.h.orig Tue Jul 13 16:12:49 1999
|
||||
+++ include/port/freebsd.h Wed Aug 30 21:12:51 2000
|
||||
@@ -3,6 +3,12 @@
|
||||
#if defined(__i386__)
|
||||
#define NEED_I386_TAS_ASM
|
||||
#define HAS_TEST_AND_SET
|
||||
+typedef unsigned char slock_t;
|
||||
+#endif
|
||||
+
|
||||
+#if defined (__alpha__)
|
||||
+#define HAS_TEST_AND_SET
|
||||
+typedef long int slock_t;
|
||||
#endif
|
||||
|
||||
#if defined(__sparc__)
|
||||
@@ -28,4 +34,3 @@
|
||||
/* # undef HAS_TEST_AND_SET */
|
||||
#endif
|
||||
|
||||
-typedef unsigned char slock_t;
|
|
@ -1,9 +0,0 @@
|
|||
This patches let you disable Tk even if you have it installed and
|
||||
makes sure the TCL-library is added as a dependency for libpgtcl.
|
||||
--- interfaces/libpgtcl/Makefile.in Tue Mar 7 20:58:36 2000
|
||||
+++ interfaces/libpgtcl/Makefile.in Wed Sep 20 08:57:28 2000
|
||||
@@ -29,3 +29,3 @@
|
||||
|
||||
-SHLIB_LINK+= $(LIBPQ)
|
||||
+SHLIB_LINK+= $(LIBPQ) @TCL_LIB_SPEC@
|
||||
|
10
databases/postgresql7/files/patch-contrib-retep-build
Normal file
10
databases/postgresql7/files/patch-contrib-retep-build
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- contrib/retep/build.xml~ Fri Mar 16 22:50:36 2001
|
||||
+++ contrib/retep/build.xml Wed Apr 18 09:24:20 2001
|
||||
@@ -38,6 +38,7 @@
|
||||
<target name="compile" depends="checks,prepare">
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="${package}/**" />
|
||||
+ <exclude name="${package}/**" unless="jdk1.2+" />
|
||||
</javac>
|
||||
</target>
|
||||
|
19
databases/postgresql7/files/patch-doc-makefile
Normal file
19
databases/postgresql7/files/patch-doc-makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- doc/Makefile~ Sun Jan 7 03:03:22 2001
|
||||
+++ doc/Makefile Wed Apr 18 08:12:30 2001
|
||||
@@ -43,10 +43,13 @@
|
||||
gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
|
||||
endif
|
||||
|
||||
-
|
||||
installdirs:
|
||||
- $(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
|
||||
-
|
||||
+ifdef found_html
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(docdir)/html
|
||||
+endif
|
||||
+ifdef found_man
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(mandir)
|
||||
+endif
|
||||
|
||||
uninstall:
|
||||
ifdef found_html
|
10
databases/postgresql7/files/patch-jdbc-build-xml
Normal file
10
databases/postgresql7/files/patch-jdbc-build-xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- src/interfaces/jdbc/build.xml~ Fri Mar 16 22:50:43 2001
|
||||
+++ src/interfaces/jdbc/build.xml Wed Apr 18 08:57:57 2001
|
||||
@@ -120,6 +120,7 @@
|
||||
<javac srcdir="${src}" destdir="${dest}">
|
||||
<include name="example/**" />
|
||||
<exclude name="example/corba/**"/>
|
||||
+ <exclude name="example/blobtest.java" unless="jdk1.2+"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
13
databases/postgresql7/files/patch-jdbc1-statement
Normal file
13
databases/postgresql7/files/patch-jdbc1-statement
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java~ Fri Feb 23 19:12:23 2001
|
||||
+++ src/interfaces/jdbc/org/postgresql/jdbc1/Statement.java Wed Apr 18 08:51:03 2001
|
||||
@@ -288,8 +288,8 @@
|
||||
*/
|
||||
public java.sql.ResultSet getResultSet() throws SQLException
|
||||
{
|
||||
- if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
|
||||
- return result;
|
||||
+ if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
|
||||
+ return result;
|
||||
return null;
|
||||
}
|
||||
|
|
@ -2,28 +2,29 @@
|
|||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
|
||||
# Preinstalled options are -i -o "-F"
|
||||
# For postmaster startup options, edit $PGDATA/postgresql.conf
|
||||
|
||||
PGBIN=%%PREFIX%%/%%PG_PREFIX%%bin
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
[ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
su -l pgsql -c \
|
||||
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
|
||||
'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -w -l ~pgsql/errlog'
|
||||
echo -n ' pgsql'
|
||||
}
|
||||
;;
|
||||
|
||||
stop)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl stop -m fast'
|
||||
}
|
||||
;;
|
||||
|
||||
status)
|
||||
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
|
||||
[ -x ${PGBIN}/pg_ctl ] && {
|
||||
exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl status'
|
||||
}
|
||||
;;
|
||||
|
||||
|
|
|
@ -15,5 +15,8 @@ operations. You do NOT need to install the pgaccess port separately.
|
|||
If you built in the TCL support, you can load the Pg package into your
|
||||
TCL scripts as easily as ``package require Pgtcl''.
|
||||
|
||||
To start PostgreSQL, run the startup script:
|
||||
%%PREFIX%%/etc/rc.d/010.pgsql.sh start
|
||||
If you built with Java support, add
|
||||
/usr/local/share/java/classes/postgresql.jar to your classpath.
|
||||
|
||||
If you have many tables and many clients running, consider raising
|
||||
kern.maxfiles using sysctl(8).
|
||||
|
|
|
@ -1,9 +1,21 @@
|
|||
# ----------------------------------------------------------------
|
||||
# UPGRADE NOTE! Depending on which version you are upgrading from,
|
||||
# you may have to dump/restore existing databases
|
||||
# as part of the update.
|
||||
# This is *NOT* done by this port!
|
||||
# For detailed instructions, see
|
||||
# %%WRKDIR%%/%%DISTNAME%%/INSTALL
|
||||
# after extraction.
|
||||
# --------------------------------------------------------------
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
%%PREFIX%%/bin
|
||||
%%PREFIX%%/lib
|
||||
%%PREFIX%%/include/pgsql
|
||||
|
||||
You *must* move away your old installation to avoid problems with
|
||||
ldconfig(8) and user's PATH:s. If you rather install using the
|
||||
old-fashion layout, cancel at next screen and run make as:
|
||||
|
||||
$ make -DWITH_OLD_LAYOUT
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
If you want JAVA support, I will try to determine your JAVA_HOME using
|
||||
javavmwrapper. If you want a different JVM, please set JAVA_HOME.
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# remove postgresql users
|
||||
|
||||
case $2 in
|
||||
|
||||
POST-DEINSTALL)
|
||||
pw groupdel pgsql
|
||||
pw userdel pgsql
|
||||
;;
|
||||
|
||||
esac
|
|
@ -37,6 +37,10 @@ PRE-INSTALL)
|
|||
fi
|
||||
fi
|
||||
|
||||
if ! [ -x ~pgsql ] ; then
|
||||
mkdir -p ${DB_DIR}
|
||||
chown pgsql:pgsql ${DB_DIR}
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
|
|
@ -1,6 +1,30 @@
|
|||
==========================================
|
||||
To initialize the database, you should run
|
||||
initdb as the "pgsql" user.
|
||||
|
||||
======================================================================
|
||||
|
||||
* IMPORTANT UPGRADE NOTICE * IMPORTANT UPGRADE NOTICE *
|
||||
|
||||
The PostgreSQL port now obeys hier(7) by default, which means that it
|
||||
installs into:
|
||||
|
||||
/usr/local/bin
|
||||
/usr/local/lib
|
||||
/usr/local/include/pgsql
|
||||
|
||||
You *must* move away your old installation from users' and
|
||||
ldconfig(8)'s PATHs. If you rather install using the old-fashion
|
||||
layout, cancel now and build the port with "make -DWITH_OLD_LAYOUT".
|
||||
|
||||
The pgsql user's home dir is /usr/local/pgsql by default, but can be
|
||||
changed with for example chpass(1). Datadir defaults to ~pgsql/data,
|
||||
but can be changed by modifying the ~pgsql/.profile script.
|
||||
|
||||
As always, you *must* dump existing databases before stopping and
|
||||
removing your old postgresql, as part of the update. This is *NOT*
|
||||
done by this port!
|
||||
|
||||
======================================================================
|
||||
|
||||
To initialize the database, you should run initdb as the "pgsql" user.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -9,4 +33,6 @@ Example:
|
|||
You can then start PostgreSQL by running:
|
||||
|
||||
/usr/local/etc/rc.d/010.pgsql.sh start
|
||||
==========================================
|
||||
|
||||
For postmaster settings, see ~pgsql/data/postmaster.conf
|
||||
======================================================================
|
||||
|
|
|
@ -1,95 +1,90 @@
|
|||
@unexec if cmp -s %D/pgsql/.profile %D/pgsql/dot.profile.dist; then rm -f %D/pgsql/.profile; fi
|
||||
%%PG_PREFIX%%bin/postmaster
|
||||
%%PG_PREFIX%%bin/postgres
|
||||
%%PG_PREFIX%%bin/ecpg
|
||||
%%PG_PREFIX%%bin/initdb
|
||||
%%PG_PREFIX%%bin/initlocation
|
||||
%%PG_PREFIX%%bin/ipcclean
|
||||
%%PG_PREFIX%%bin/pg_ctl
|
||||
%%PG_PREFIX%%bin/pg_dump
|
||||
%%PG_PREFIX%%bin/pg_restore
|
||||
%%PG_PREFIX%%bin/pg_encoding
|
||||
%%PG_PREFIX%%bin/pg_dumpall
|
||||
%%PG_PREFIX%%bin/pg_id
|
||||
%%PG_PREFIX%%bin/pg_passwd
|
||||
%%PG_PREFIX%%bin/psql
|
||||
%%PG_PREFIX%%bin/createdb
|
||||
%%PG_PREFIX%%bin/dropdb
|
||||
%%PG_PREFIX%%bin/createuser
|
||||
%%PG_PREFIX%%bin/dropuser
|
||||
%%PG_PREFIX%%bin/droplang
|
||||
%%PG_PREFIX%%bin/vacuumdb
|
||||
%%PG_PREFIX%%bin/createlang
|
||||
%%PG_PREFIX%%bin/pg_config
|
||||
etc/rc.d/010.pgsql.sh
|
||||
pgsql/dot.profile.dist
|
||||
@exec [ -f %D/pgsql/.profile ] || (cp %D/pgsql/dot.profile.dist %D/pgsql/.profile && chown pgsql:pgsql %D/pgsql/.profile)
|
||||
pgsql/bin/createdb
|
||||
pgsql/bin/createlang
|
||||
pgsql/bin/createuser
|
||||
pgsql/bin/dropdb
|
||||
pgsql/bin/droplang
|
||||
pgsql/bin/dropuser
|
||||
pgsql/bin/ecpg
|
||||
pgsql/bin/initdb
|
||||
pgsql/bin/initlocation
|
||||
pgsql/bin/ipcclean
|
||||
pgsql/bin/pg_ctl
|
||||
pgsql/bin/pg_dump
|
||||
pgsql/bin/pg_dumpall
|
||||
pgsql/bin/pg_encoding
|
||||
pgsql/bin/pg_id
|
||||
pgsql/bin/pg_passwd
|
||||
pgsql/bin/pg_upgrade
|
||||
pgsql/bin/pg_version
|
||||
pgsql/bin/postgres
|
||||
pgsql/bin/postmaster
|
||||
pgsql/bin/psql
|
||||
pgsql/bin/vacuumdb
|
||||
pgsql/include/access/attnum.h
|
||||
pgsql/include/c.h
|
||||
pgsql/include/commands/trigger.h
|
||||
pgsql/include/config.h
|
||||
pgsql/include/ecpgerrno.h
|
||||
pgsql/include/ecpglib.h
|
||||
pgsql/include/ecpgtype.h
|
||||
pgsql/include/executor/spi.h
|
||||
pgsql/include/fmgr.h
|
||||
pgsql/include/lib/dllist.h
|
||||
pgsql/include/libpgeasy.h
|
||||
pgsql/include/libpq/libpq-fs.h
|
||||
pgsql/include/libpq/pqcomm.h
|
||||
pgsql/include/libpq++/pgconnection.h
|
||||
pgsql/include/libpq++/pgcursordb.h
|
||||
pgsql/include/libpq++/pgdatabase.h
|
||||
pgsql/include/libpq++/pglobject.h
|
||||
pgsql/include/libpq++/pgtransdb.h
|
||||
pgsql/include/libpq++.h
|
||||
pgsql/include/libpq-fe.h
|
||||
pgsql/include/libpq-int.h
|
||||
pgsql/include/os.h
|
||||
pgsql/include/postgres.h
|
||||
pgsql/include/postgres_ext.h
|
||||
pgsql/include/pqexpbuffer.h
|
||||
pgsql/include/sql3types.h
|
||||
pgsql/include/sqlca.h
|
||||
pgsql/include/utils/elog.h
|
||||
pgsql/include/utils/geo_decls.h
|
||||
pgsql/include/utils/mcxt.h
|
||||
pgsql/include/utils/palloc.h
|
||||
pgsql/lib/global1.bki.source
|
||||
pgsql/lib/global1.description
|
||||
pgsql/lib/libecpg.a
|
||||
pgsql/lib/libecpg.so
|
||||
pgsql/lib/libecpg.so.3
|
||||
pgsql/lib/libpgeasy.a
|
||||
pgsql/lib/libpgeasy.so
|
||||
pgsql/lib/libpgeasy.so.2
|
||||
pgsql/lib/libpq++.a
|
||||
pgsql/lib/libpq++.so
|
||||
pgsql/lib/libpq++.so.3
|
||||
pgsql/lib/libpq.a
|
||||
pgsql/lib/libpq.so
|
||||
pgsql/lib/libpq.so.2
|
||||
pgsql/lib/local1_template1.bki.source
|
||||
pgsql/lib/local1_template1.description
|
||||
pgsql/lib/pg_geqo.sample
|
||||
pgsql/lib/pg_hba.conf.sample
|
||||
pgsql/lib/pg_ident.conf.sample
|
||||
pgsql/lib/pg_options.sample
|
||||
pgsql/lib/plpgsql.so
|
||||
pgsql/lib/postmaster.opts.default.sample
|
||||
@exec chown -R root:wheel %D/pgsql/lib
|
||||
pgsql/post-install-notes
|
||||
@dirrm pgsql/bin
|
||||
@dirrm pgsql/include/access
|
||||
@dirrm pgsql/include/commands
|
||||
@dirrm pgsql/include/executor
|
||||
@dirrm pgsql/include/lib
|
||||
@dirrm pgsql/include/libpq
|
||||
@dirrm pgsql/include/libpq++
|
||||
@dirrm pgsql/include/utils
|
||||
@dirrm pgsql/include
|
||||
@dirrm pgsql/lib
|
||||
@dirrm pgsql/man/man1
|
||||
@dirrm pgsql/man/manl
|
||||
@dirrm pgsql/man
|
||||
@dirrm pgsql
|
||||
%%PG_INCLUDE%%/lib/dllist.h
|
||||
@dirrm %%PG_INCLUDE%%/lib
|
||||
%%PG_INCLUDE%%/libpq/pqcomm.h
|
||||
%%PG_INCLUDE%%/libpq/libpq-fs.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq
|
||||
%%PG_INCLUDE%%/libpq++/pgconnection.h
|
||||
%%PG_INCLUDE%%/libpq++/pgdatabase.h
|
||||
%%PG_INCLUDE%%/libpq++/pgtransdb.h
|
||||
%%PG_INCLUDE%%/libpq++/pgcursordb.h
|
||||
%%PG_INCLUDE%%/libpq++/pglobject.h
|
||||
@dirrm %%PG_INCLUDE%%/libpq++
|
||||
%%PG_INCLUDE%%/c.h
|
||||
%%PG_INCLUDE%%/postgres_ext.h
|
||||
%%PG_INCLUDE%%/postgres_fe.h
|
||||
%%PG_INCLUDE%%/os.h
|
||||
%%PG_INCLUDE%%/config.h
|
||||
%%PG_INCLUDE%%/libpq-fe.h
|
||||
%%PG_INCLUDE%%/libpq-int.h
|
||||
%%PG_INCLUDE%%/pqexpbuffer.h
|
||||
%%PG_INCLUDE%%/ecpgerrno.h
|
||||
%%PG_INCLUDE%%/ecpglib.h
|
||||
%%PG_INCLUDE%%/ecpgtype.h
|
||||
%%PG_INCLUDE%%/sqlca.h
|
||||
%%PG_INCLUDE%%/sql3types.h
|
||||
%%PG_INCLUDE%%/libpgeasy.h
|
||||
%%PG_INCLUDE%%/libpq++.h
|
||||
@dirrm %%PG_INCLUDE%%
|
||||
%%PG_PREFIX%%lib/libpq.so
|
||||
%%PG_PREFIX%%lib/libpq.a
|
||||
%%PG_PREFIX%%lib/libpq.so.2
|
||||
%%PG_PREFIX%%lib/libecpg.so
|
||||
%%PG_PREFIX%%lib/libecpg.a
|
||||
%%PG_PREFIX%%lib/libecpg.so.3
|
||||
%%PG_PREFIX%%lib/libpgeasy.so
|
||||
%%PG_PREFIX%%lib/libpgeasy.a
|
||||
%%PG_PREFIX%%lib/libpgeasy.so.2
|
||||
%%PG_PREFIX%%lib/libpq++.so
|
||||
%%PG_PREFIX%%lib/libpq++.a
|
||||
%%PG_PREFIX%%lib/libpq++.so.3
|
||||
%%PG_PREFIX%%lib/plpgsql.so
|
||||
share/postgresql/global.bki
|
||||
share/postgresql/global.description
|
||||
share/postgresql/post-install-notes
|
||||
share/postgresql/template1.bki
|
||||
share/postgresql/template1.description
|
||||
share/postgresql/pg_hba.conf.sample
|
||||
share/postgresql/pg_ident.conf.sample
|
||||
share/postgresql/postgresql.conf.sample
|
||||
@unexec if cmp -s ~pgsql/.profile %D/share/postgresql/dot.profile.dist; then rm -f ~pgsql/.profile; fi
|
||||
@unexec if cmp -s ~pgsql/.cshrc %D/share/postgresql/dot.cshrc.dist; then rm -f ~pgsql/.cshrc; fi
|
||||
@unexec [ -f ~pgsql/dot.profile.dist ] && rm ~pgsql/dot.profile.dist
|
||||
@unexec [ -f ~pgsql/dot.cshrc.dist ] && rm ~pgsql/dot.cshrc.dist
|
||||
@exec [ -f %D/share/postgresql/post-install-notes ] && cp %D/share/postgresql/post-install-notes ~pgsql && chown pgsql:pgsql ~pgsql/post-install-notes
|
||||
@unexec [ -f ~pgsql/post-install-notes ] && rm ~pgsql/post-install-notes
|
||||
share/postgresql/dot.profile.dist
|
||||
share/postgresql/dot.cshrc.dist
|
||||
@dirrm share/postgresql
|
||||
@exec [ -f %D/share/postgresql/dot.profile.dist ] && cp %D/share/postgresql/dot.profile.dist ~pgsql/.
|
||||
@exec [ -f %D/share/postgresql/dot.cshrc.dist ] && cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.
|
||||
@exec [ -f ~pgsql/.profile ] || (cp %D/share/postgresql/dot.profile.dist ~pgsql/.profile && chown pgsql:pgsql ~pgsql/.profile)
|
||||
@exec [ -f ~pgsql/.cshrc ] || (cp %D/share/postgresql/dot.cshrc.dist ~pgsql/.cshrc && chown pgsql:pgsql ~pgsql/.cshrc)
|
||||
@unexec rmdir %D/%%PG_PREFIX%%bin 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%lib 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/man1 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man/manl 2> /dev/null || true
|
||||
@unexec rmdir %D/%%PG_PREFIX%%man 2> /dev/null || true
|
||||
@unexec echo "Warning: If you will *NOT* use this package anymore, please remove %D/pgsql and the pgsql user manually."
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,14 +1,27 @@
|
|||
share/examples/pgsql/jdbc/ImageViewer.java
|
||||
share/examples/pgsql/jdbc/basic.java
|
||||
share/examples/pgsql/jdbc/blobtest.java
|
||||
share/examples/pgsql/jdbc/datestyle.java
|
||||
share/examples/pgsql/jdbc/metadata.java
|
||||
share/examples/pgsql/jdbc/psql.java
|
||||
share/examples/pgsql/jdbc/threadsafe.java
|
||||
share/examples/pgsql/jdbc/README
|
||||
share/examples/pgsql/jdbc/README_6.3
|
||||
@dirrm share/examples/pgsql/jdbc
|
||||
@dirrm share/examples/pgsql
|
||||
share/examples/postgresql/corba/StockClient.java
|
||||
share/examples/postgresql/corba/StockDB.java
|
||||
share/examples/postgresql/corba/StockDispenserImpl.java
|
||||
share/examples/postgresql/corba/StockItemImpl.java
|
||||
share/examples/postgresql/corba/StockServer.java
|
||||
share/examples/postgresql/corba/readme
|
||||
share/examples/postgresql/corba/stock.idl
|
||||
share/examples/postgresql/corba/stock.sql
|
||||
@dirrm share/examples/postgresql/corba
|
||||
share/examples/postgresql/ImageViewer.java
|
||||
share/examples/postgresql/Unicode.java
|
||||
share/examples/postgresql/basic.java
|
||||
share/examples/postgresql/blobtest.java
|
||||
share/examples/postgresql/datestyle.java
|
||||
share/examples/postgresql/metadata.java
|
||||
share/examples/postgresql/psql.java
|
||||
share/examples/postgresql/threadsafe.java
|
||||
share/examples/postgresql/README
|
||||
share/examples/postgresql/Implementation
|
||||
@dirrm share/examples/postgresql
|
||||
share/postgresql/java/postgresql-examples.jar
|
||||
share/postgresql/java/postgresql.jar
|
||||
share/postgresql/java/retepTools.jar
|
||||
@dirrm share/postgresql/java
|
||||
share/java/classes/postgresql.jar
|
||||
@unexec rmdir %D/share/java/classes 2>/dev/null || true
|
||||
@unexec rmdir %D/share/java 2>/dev/null || true
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
pgsql/bin/pgtclsh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
pgsql/include/iodbc/iodbc.h
|
||||
pgsql/include/iodbc/isql.h
|
||||
pgsql/include/iodbc/isqlext.h
|
||||
pgsql/lib/libpsqlodbc.a
|
||||
pgsql/lib/libpsqlodbc.so
|
||||
pgsql/lib/libpsqlodbc.so.0
|
||||
pgsql/odbcinst.ini
|
||||
@dirrm pgsql/include/iodbc
|
||||
%%PG_INCLUDE%%/iodbc/iodbc.h
|
||||
%%PG_INCLUDE%%/iodbc/isql.h
|
||||
%%PG_INCLUDE%%/iodbc/isqlext.h
|
||||
@dirrm %%PG_INCLUDE%%/iodbc
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.a
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so
|
||||
%%PG_PREFIX%%lib/libpsqlodbc.so.0
|
||||
etc/postgresql/odbcinst.ini
|
||||
@dirrm etc/postgresql
|
||||
share/postgresql/odbc.sql
|
||||
|
|
|
@ -1,141 +1,146 @@
|
|||
pgsql/bin/pgaccess
|
||||
pgsql/bin/pgtclsh
|
||||
pgsql/bin/pgtksh
|
||||
pgsql/include/libpgtcl.h
|
||||
pgsql/lib/libpgtcl.a
|
||||
pgsql/lib/libpgtcl.so
|
||||
pgsql/lib/libpgtcl.so.2
|
||||
pgsql/lib/pltcl.so
|
||||
pgsql/pgaccess/images/icon_button.gif
|
||||
pgsql/pgaccess/images/icon_checkbutton.gif
|
||||
pgsql/pgaccess/images/icon_entry.gif
|
||||
pgsql/pgaccess/images/icon_frame.gif
|
||||
pgsql/pgaccess/images/icon_label.gif
|
||||
pgsql/pgaccess/images/icon_listbox.gif
|
||||
pgsql/pgaccess/images/icon_query.gif
|
||||
pgsql/pgaccess/images/icon_radiobutton.gif
|
||||
pgsql/pgaccess/images/icon_text.gif
|
||||
pgsql/pgaccess/lib/database.tcl
|
||||
pgsql/pgaccess/lib/forms.tcl
|
||||
pgsql/pgaccess/lib/functions.tcl
|
||||
pgsql/pgaccess/lib/help/abort.hlp
|
||||
pgsql/pgaccess/lib/help/add_records.hlp
|
||||
pgsql/pgaccess/lib/help/alter_table.hlp
|
||||
pgsql/pgaccess/lib/help/alter_user.hlp
|
||||
pgsql/pgaccess/lib/help/author.hlp
|
||||
pgsql/pgaccess/lib/help/begin.hlp
|
||||
pgsql/pgaccess/lib/help/close.hlp
|
||||
pgsql/pgaccess/lib/help/cluster.hlp
|
||||
pgsql/pgaccess/lib/help/commit.hlp
|
||||
pgsql/pgaccess/lib/help/copy.hlp
|
||||
pgsql/pgaccess/lib/help/copyrights.hlp
|
||||
pgsql/pgaccess/lib/help/create_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/create_database.hlp
|
||||
pgsql/pgaccess/lib/help/create_function.hlp
|
||||
pgsql/pgaccess/lib/help/create_index.hlp
|
||||
pgsql/pgaccess/lib/help/create_language.hlp
|
||||
pgsql/pgaccess/lib/help/create_operator.hlp
|
||||
pgsql/pgaccess/lib/help/create_rule.hlp
|
||||
pgsql/pgaccess/lib/help/create_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/create_table.hlp
|
||||
pgsql/pgaccess/lib/help/create_table_as.hlp
|
||||
pgsql/pgaccess/lib/help/create_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/create_type.hlp
|
||||
pgsql/pgaccess/lib/help/create_user.hlp
|
||||
pgsql/pgaccess/lib/help/create_view.hlp
|
||||
pgsql/pgaccess/lib/help/data_types.hlp
|
||||
pgsql/pgaccess/lib/help/datefunc.hlp
|
||||
pgsql/pgaccess/lib/help/declare.hlp
|
||||
pgsql/pgaccess/lib/help/delete.hlp
|
||||
pgsql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
pgsql/pgaccess/lib/help/drop_database.hlp
|
||||
pgsql/pgaccess/lib/help/drop_function.hlp
|
||||
pgsql/pgaccess/lib/help/drop_index.hlp
|
||||
pgsql/pgaccess/lib/help/drop_language.hlp
|
||||
pgsql/pgaccess/lib/help/drop_operator.hlp
|
||||
pgsql/pgaccess/lib/help/drop_rule.hlp
|
||||
pgsql/pgaccess/lib/help/drop_sequence.hlp
|
||||
pgsql/pgaccess/lib/help/drop_table.hlp
|
||||
pgsql/pgaccess/lib/help/drop_trigger.hlp
|
||||
pgsql/pgaccess/lib/help/drop_type.hlp
|
||||
pgsql/pgaccess/lib/help/drop_user.hlp
|
||||
pgsql/pgaccess/lib/help/drop_view.hlp
|
||||
pgsql/pgaccess/lib/help/explain.hlp
|
||||
pgsql/pgaccess/lib/help/fetch.hlp
|
||||
pgsql/pgaccess/lib/help/form_design.hlp
|
||||
pgsql/pgaccess/lib/help/forms.hlp
|
||||
pgsql/pgaccess/lib/help/functions.hlp
|
||||
pgsql/pgaccess/lib/help/geomfunc.hlp
|
||||
pgsql/pgaccess/lib/help/grant.hlp
|
||||
pgsql/pgaccess/lib/help/history.hlp
|
||||
pgsql/pgaccess/lib/help/index.hlp
|
||||
pgsql/pgaccess/lib/help/inheritance.hlp
|
||||
pgsql/pgaccess/lib/help/insert.hlp
|
||||
pgsql/pgaccess/lib/help/ipv4func.hlp
|
||||
pgsql/pgaccess/lib/help/isolation.hlp
|
||||
pgsql/pgaccess/lib/help/keywords.hlp
|
||||
pgsql/pgaccess/lib/help/listen.hlp
|
||||
pgsql/pgaccess/lib/help/load.hlp
|
||||
pgsql/pgaccess/lib/help/lock.hlp
|
||||
pgsql/pgaccess/lib/help/mathfunc.hlp
|
||||
pgsql/pgaccess/lib/help/move.hlp
|
||||
pgsql/pgaccess/lib/help/mvcc.hlp
|
||||
pgsql/pgaccess/lib/help/new_query.hlp
|
||||
pgsql/pgaccess/lib/help/new_table.hlp
|
||||
pgsql/pgaccess/lib/help/notify.hlp
|
||||
pgsql/pgaccess/lib/help/open_query.hlp
|
||||
pgsql/pgaccess/lib/help/open_table.hlp
|
||||
pgsql/pgaccess/lib/help/pgfunctions.hlp
|
||||
pgsql/pgaccess/lib/help/postgresql.hlp
|
||||
pgsql/pgaccess/lib/help/queries.hlp
|
||||
pgsql/pgaccess/lib/help/reports.hlp
|
||||
pgsql/pgaccess/lib/help/reset.hlp
|
||||
pgsql/pgaccess/lib/help/revoke.hlp
|
||||
pgsql/pgaccess/lib/help/rollback.hlp
|
||||
pgsql/pgaccess/lib/help/schema.hlp
|
||||
pgsql/pgaccess/lib/help/scripts.hlp
|
||||
pgsql/pgaccess/lib/help/select.hlp
|
||||
pgsql/pgaccess/lib/help/select_into.hlp
|
||||
pgsql/pgaccess/lib/help/sequences.hlp
|
||||
pgsql/pgaccess/lib/help/set.hlp
|
||||
pgsql/pgaccess/lib/help/show.hlp
|
||||
pgsql/pgaccess/lib/help/sql_guide.hlp
|
||||
pgsql/pgaccess/lib/help/sqlfunc.hlp
|
||||
pgsql/pgaccess/lib/help/stringfunc.hlp
|
||||
pgsql/pgaccess/lib/help/tables.hlp
|
||||
pgsql/pgaccess/lib/help/unlisten.hlp
|
||||
pgsql/pgaccess/lib/help/update.hlp
|
||||
pgsql/pgaccess/lib/help/users.hlp
|
||||
pgsql/pgaccess/lib/help/vacuum.hlp
|
||||
pgsql/pgaccess/lib/help/view_table_structure.hlp
|
||||
pgsql/pgaccess/lib/help/views.hlp
|
||||
pgsql/pgaccess/lib/help/visual_designer.hlp
|
||||
pgsql/pgaccess/lib/help/y2k.hlp
|
||||
pgsql/pgaccess/lib/help.tcl
|
||||
pgsql/pgaccess/lib/languages/czech
|
||||
pgsql/pgaccess/lib/languages/deutsch
|
||||
pgsql/pgaccess/lib/languages/francais
|
||||
pgsql/pgaccess/lib/languages/italiano
|
||||
pgsql/pgaccess/lib/languages/magyar
|
||||
pgsql/pgaccess/lib/languages/portugues
|
||||
pgsql/pgaccess/lib/languages/romana
|
||||
pgsql/pgaccess/lib/languages/russian.koi8r
|
||||
pgsql/pgaccess/lib/languages/russian_win
|
||||
pgsql/pgaccess/lib/languages/spanish
|
||||
pgsql/pgaccess/lib/mainlib.tcl
|
||||
pgsql/pgaccess/lib/preferences.tcl
|
||||
pgsql/pgaccess/lib/queries.tcl
|
||||
pgsql/pgaccess/lib/reports.tcl
|
||||
pgsql/pgaccess/lib/schema.tcl
|
||||
pgsql/pgaccess/lib/scripts.tcl
|
||||
pgsql/pgaccess/lib/sequences.tcl
|
||||
pgsql/pgaccess/lib/tables.tcl
|
||||
pgsql/pgaccess/lib/users.tcl
|
||||
pgsql/pgaccess/lib/views.tcl
|
||||
pgsql/pgaccess/lib/visualqb.tcl
|
||||
pgsql/pgaccess/main.tcl
|
||||
@dirrm pgsql/pgaccess/images
|
||||
@dirrm pgsql/pgaccess/lib/help
|
||||
@dirrm pgsql/pgaccess/lib/languages
|
||||
@dirrm pgsql/pgaccess/lib
|
||||
@dirrm pgsql/pgaccess
|
||||
%%PG_PREFIX%%bin/pgaccess
|
||||
%%PG_PREFIX%%bin/pgtclsh
|
||||
%%PG_PREFIX%%bin/pgtksh
|
||||
%%PG_INCLUDE%%/libpgtcl.h
|
||||
%%PG_PREFIX%%lib/libpgtcl.a
|
||||
%%PG_PREFIX%%lib/libpgtcl.so
|
||||
%%PG_PREFIX%%lib/libpgtcl.so.2
|
||||
%%PG_PREFIX%%lib/pltcl.so
|
||||
share/postgresql/pgaccess/images/icon_button.gif
|
||||
share/postgresql/pgaccess/images/icon_checkbutton.gif
|
||||
share/postgresql/pgaccess/images/icon_entry.gif
|
||||
share/postgresql/pgaccess/images/icon_frame.gif
|
||||
share/postgresql/pgaccess/images/icon_label.gif
|
||||
share/postgresql/pgaccess/images/icon_listbox.gif
|
||||
share/postgresql/pgaccess/images/icon_query.gif
|
||||
share/postgresql/pgaccess/images/icon_radiobutton.gif
|
||||
share/postgresql/pgaccess/images/icon_text.gif
|
||||
share/postgresql/pgaccess/lib/database.tcl
|
||||
share/postgresql/pgaccess/lib/forms.tcl
|
||||
share/postgresql/pgaccess/lib/functions.tcl
|
||||
share/postgresql/pgaccess/lib/help/abort.hlp
|
||||
share/postgresql/pgaccess/lib/help/add_records.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/alter_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/author.hlp
|
||||
share/postgresql/pgaccess/lib/help/begin.hlp
|
||||
share/postgresql/pgaccess/lib/help/close.hlp
|
||||
share/postgresql/pgaccess/lib/help/cluster.hlp
|
||||
share/postgresql/pgaccess/lib/help/commit.hlp
|
||||
share/postgresql/pgaccess/lib/help/copy.hlp
|
||||
share/postgresql/pgaccess/lib/help/copyrights.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_table_as.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/create_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/data_types.hlp
|
||||
share/postgresql/pgaccess/lib/help/datefunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/declare.hlp
|
||||
share/postgresql/pgaccess/lib/help/delete.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_aggregate.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_database.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_function.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_index.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_language.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_operator.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_rule.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_sequence.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_trigger.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_type.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_user.hlp
|
||||
share/postgresql/pgaccess/lib/help/drop_view.hlp
|
||||
share/postgresql/pgaccess/lib/help/explain.hlp
|
||||
share/postgresql/pgaccess/lib/help/fetch.hlp
|
||||
share/postgresql/pgaccess/lib/help/form_design.hlp
|
||||
share/postgresql/pgaccess/lib/help/forms.hlp
|
||||
share/postgresql/pgaccess/lib/help/functions.hlp
|
||||
share/postgresql/pgaccess/lib/help/geomfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/grant.hlp
|
||||
share/postgresql/pgaccess/lib/help/history.hlp
|
||||
share/postgresql/pgaccess/lib/help/index.hlp
|
||||
share/postgresql/pgaccess/lib/help/inheritance.hlp
|
||||
share/postgresql/pgaccess/lib/help/insert.hlp
|
||||
share/postgresql/pgaccess/lib/help/ipv4func.hlp
|
||||
share/postgresql/pgaccess/lib/help/isolation.hlp
|
||||
share/postgresql/pgaccess/lib/help/keywords.hlp
|
||||
share/postgresql/pgaccess/lib/help/listen.hlp
|
||||
share/postgresql/pgaccess/lib/help/load.hlp
|
||||
share/postgresql/pgaccess/lib/help/lock.hlp
|
||||
share/postgresql/pgaccess/lib/help/mathfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/move.hlp
|
||||
share/postgresql/pgaccess/lib/help/mvcc.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/new_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/notify.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_query.hlp
|
||||
share/postgresql/pgaccess/lib/help/open_table.hlp
|
||||
share/postgresql/pgaccess/lib/help/pgfunctions.hlp
|
||||
share/postgresql/pgaccess/lib/help/postgresql.hlp
|
||||
share/postgresql/pgaccess/lib/help/queries.hlp
|
||||
share/postgresql/pgaccess/lib/help/reports.hlp
|
||||
share/postgresql/pgaccess/lib/help/reset.hlp
|
||||
share/postgresql/pgaccess/lib/help/revoke.hlp
|
||||
share/postgresql/pgaccess/lib/help/rollback.hlp
|
||||
share/postgresql/pgaccess/lib/help/schema.hlp
|
||||
share/postgresql/pgaccess/lib/help/scripts.hlp
|
||||
share/postgresql/pgaccess/lib/help/select.hlp
|
||||
share/postgresql/pgaccess/lib/help/select_into.hlp
|
||||
share/postgresql/pgaccess/lib/help/sequences.hlp
|
||||
share/postgresql/pgaccess/lib/help/set.hlp
|
||||
share/postgresql/pgaccess/lib/help/show.hlp
|
||||
share/postgresql/pgaccess/lib/help/sql_guide.hlp
|
||||
share/postgresql/pgaccess/lib/help/sqlfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/stringfunc.hlp
|
||||
share/postgresql/pgaccess/lib/help/tables.hlp
|
||||
share/postgresql/pgaccess/lib/help/unlisten.hlp
|
||||
share/postgresql/pgaccess/lib/help/update.hlp
|
||||
share/postgresql/pgaccess/lib/help/users.hlp
|
||||
share/postgresql/pgaccess/lib/help/vacuum.hlp
|
||||
share/postgresql/pgaccess/lib/help/view_table_structure.hlp
|
||||
share/postgresql/pgaccess/lib/help/views.hlp
|
||||
share/postgresql/pgaccess/lib/help/visual_designer.hlp
|
||||
share/postgresql/pgaccess/lib/help/y2k.hlp
|
||||
share/postgresql/pgaccess/lib/help.tcl
|
||||
share/postgresql/pgaccess/lib/languages/czech
|
||||
share/postgresql/pgaccess/lib/languages/chinese_big5
|
||||
share/postgresql/pgaccess/lib/languages/chinese_gb
|
||||
share/postgresql/pgaccess/lib/languages/deutsch
|
||||
share/postgresql/pgaccess/lib/languages/euskara
|
||||
share/postgresql/pgaccess/lib/languages/francais
|
||||
share/postgresql/pgaccess/lib/languages/italiano
|
||||
share/postgresql/pgaccess/lib/languages/japanese
|
||||
share/postgresql/pgaccess/lib/languages/magyar
|
||||
share/postgresql/pgaccess/lib/languages/nederlands
|
||||
share/postgresql/pgaccess/lib/languages/portugues
|
||||
share/postgresql/pgaccess/lib/languages/romana
|
||||
share/postgresql/pgaccess/lib/languages/russian.koi8r
|
||||
share/postgresql/pgaccess/lib/languages/russian_win
|
||||
share/postgresql/pgaccess/lib/languages/spanish
|
||||
share/postgresql/pgaccess/lib/mainlib.tcl
|
||||
share/postgresql/pgaccess/lib/preferences.tcl
|
||||
share/postgresql/pgaccess/lib/queries.tcl
|
||||
share/postgresql/pgaccess/lib/reports.tcl
|
||||
share/postgresql/pgaccess/lib/schema.tcl
|
||||
share/postgresql/pgaccess/lib/scripts.tcl
|
||||
share/postgresql/pgaccess/lib/sequences.tcl
|
||||
share/postgresql/pgaccess/lib/tables.tcl
|
||||
share/postgresql/pgaccess/lib/users.tcl
|
||||
share/postgresql/pgaccess/lib/views.tcl
|
||||
share/postgresql/pgaccess/lib/visualqb.tcl
|
||||
share/postgresql/pgaccess/main.tcl
|
||||
@dirrm share/postgresql/pgaccess/images
|
||||
@dirrm share/postgresql/pgaccess/lib/help
|
||||
@dirrm share/postgresql/pgaccess/lib/languages
|
||||
@dirrm share/postgresql/pgaccess/lib
|
||||
@dirrm share/postgresql/pgaccess
|
||||
|
|
7
databases/postgresql7/scripts/configure
vendored
7
databases/postgresql7/scripts/configure
vendored
|
@ -1,7 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
|
||||
cd $WRKSRC || exit 1
|
||||
|
||||
perl -pi -e "s=!!JAVA_HOME!!=${JAVA_HOME}=; s=!!PREFIX!!=${PREFIX}=" ${WRKSRC}/interfaces/jdbc/Makefile
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue