summaryrefslogtreecommitdiff
path: root/databases/postgresql/Makefile
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1999-01-04 13:05:01 +0000
committerfrueauf <frueauf@pkgsrc.org>1999-01-04 13:05:01 +0000
commit1f4b04d4d9219a74205748ff133458b315d1ae16 (patch)
tree2d43518003f63458b5ff29e4d8197da18e5f7734 /databases/postgresql/Makefile
parent9497115c5a892fef27c9a02ccc2300bd3f087a75 (diff)
downloadpkgsrc-1f4b04d4d9219a74205748ff133458b315d1ae16.tar.gz
Update postgresql to 6.4.2. Among bugfixes and new features, this also
adds patches for m68k support, provided in pr 6664 by MOCHIDA Shuji.
Diffstat (limited to 'databases/postgresql/Makefile')
-rw-r--r--databases/postgresql/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/databases/postgresql/Makefile b/databases/postgresql/Makefile
index 2cb08bcf262..d6c4be84013 100644
--- a/databases/postgresql/Makefile
+++ b/databases/postgresql/Makefile
@@ -1,9 +1,11 @@
-# $NetBSD: Makefile,v 1.21 1999/01/03 13:13:12 frueauf Exp $
+# $NetBSD: Makefile,v 1.22 1999/01/04 13:05:01 frueauf Exp $
# FreeBSD Id: Makefile,v 1.22 1997/12/24 01:21:37 alex Exp
-DISTNAME= postgresql-6.3.2
+DISTNAME= postgresql-6.4.2
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
CATEGORIES= databases
MASTER_SITES= ftp://ftp.PostgreSQL.org/pub/ \
+ ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/pub/ \
ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/
MAINTAINER= packages@netbsd.org
@@ -14,12 +16,12 @@ DEPENDS+= tcl-8.0p2:../../lang/tcl80
DEPENDS+= addnerd-1.6:../../sysutils/addnerd
DEPENDS+= bison-1.25:../../devel/bison
+CONFLICTS= postgresql-6.3.2
+
NOT_FOR_ARCHS= alpha # Needs ELF clue
-NOT_FOR_ARCHS+= m68k
NO_PACKAGE= "Requires pgsql uid"
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
PLIST_SRC= ${WRKDIR}/PLIST.tmp
PGUSER?= pgsql
@@ -31,9 +33,11 @@ HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}/${PGUSER} \
--enable-locale \
--with-tcl \
+ --with-tclconfig=${PREFIX}/lib/tcl8.0 \
--with-includes=${PREFIX}/include \
--with-libs=${PREFIX}/lib \
--with-template=`${ECHO} ${OPSYS} | ${TR} '[A-Z]' '[a-z]'`
+CONFIGURE_ENV+= CPPFLAGS="-I${PREFIX}/include/tcl8.0 -I${PREFIX}/include/tk8.0"
.include "../../mk/bsd.prefs.mk"
@@ -103,15 +107,22 @@ post-install:
${ECHO} "************** WARNING ********************"; \
;; \
esac
+ ${LDCONFIG} ${PREFIX}/${PGUSER}/lib || ${TRUE}
@${ECHO} '${SETENV} PATH=${PREFIX}/${PGUSER}/bin:$$PATH ${PREFIX}/${PGUSER}/bin/initdb --pglib=${PREFIX}/${PGUSER}/lib --pgdata=${PREFIX}/${PGUSER}/data' | su -l ${PGUSER}
- @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" < ${FILESDIR}/pgsql.sh.tmpl \
- > ${PREFIX}/etc/rc.d/pgsql.sh
+ @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" -e "s=!!PGUSER!!=${PGUSER}=g" \
+ < ${FILESDIR}/pgsql.sh.tmpl > ${PREFIX}/etc/rc.d/pgsql.sh
@/bin/chmod 554 ${PREFIX}/etc/rc.d/pgsql.sh
@/usr/sbin/chown root.${PGGROUP} ${PREFIX}/etc/rc.d/pgsql.sh
- @${INSTALL_DATA} ${FILESDIR}/post-install-notes ${PREFIX}/${PGUSER}
+ @${INSTALL} -c -o ${PGUSER} -g ${PGGROUP} -m 444 \
+ ${FILESDIR}/post-install-notes ${PREFIX}/${PGUSER}
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/pgsql
${CP} -R ${WRKDIR}/${DISTNAME}/doc/* ${PREFIX}/share/doc/pgsql
+ ${RM} -rf ${PREFIX}/share/doc/pgsql/src/CVS \
+ ${PREFIX}/share/doc/pgsql/src/graphics/CVS \
+ ${PREFIX}/share/doc/pgsql/src/sgml/ref/CVS \
+ ${PREFIX}/share/doc/pgsql/src/sgml/CVS \
+ ${PREFIX}/share/doc/pgsql/CVS
.endif
.if !defined(BATCH)
@${CAT} ${FILESDIR}/post-install-notes