diff options
author | Sean Chittenden <seanc@FreeBSD.org> | 2003-02-06 20:46:51 +0000 |
---|---|---|
committer | Sean Chittenden <seanc@FreeBSD.org> | 2003-02-06 20:46:51 +0000 |
commit | 4153e1deae59cdc476ffbe100f17363188aa150d (patch) | |
tree | 534be66b32fe7d2efac808cd1e7721d0257c4ce8 /databases/postgresql7/Makefile | |
parent | The last commit should have also read: (diff) |
Update PostgreSQL to the maintenance release 7.3.2.
Fixes numerous bugs especially with various interface libraries and
pg_dump. All users are advised to upgrade. This update fixes all known
problems with the postgresql7 port. See release notes for details:
http://developer.postgresql.org/docs/postgres/release-7-3-2.html
A dump/restore is *not* required when upgrading to this version.
PR: ports/47983 [1], ports/47284 [2], ports/47808 [3]
Submitted by: maintainer [1]
Jason C. Wells [2]
Michel Oosterhof <m.oosterhof@xs4all.nl> [3]
Notes
Notes:
svn path=/head/; revision=74993
Diffstat (limited to 'databases/postgresql7/Makefile')
-rw-r--r-- | databases/postgresql7/Makefile | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/databases/postgresql7/Makefile b/databases/postgresql7/Makefile index 1cd367508fbf..7e10dd3472d1 100644 --- a/databases/postgresql7/Makefile +++ b/databases/postgresql7/Makefile @@ -6,7 +6,7 @@ # PORTNAME?= postgresql -PORTVERSION?= 7.3.1 +PORTVERSION?= 7.3.2 CATEGORIES?= databases MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp5.us.postgresql.org/pub/PostgreSQL/%SUBDIR%/ \ @@ -24,9 +24,7 @@ MASTER_SITES= ftp://ftp3.us.postgresql.org/pub/postgresql/%SUBDIR%/ \ ftp://ftp.postgresql.org/pub/%SUBDIR%/ MASTER_SITE_SUBDIR= source/v${PORTVERSION} DISTFILES= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \ - postgresql-opt-${PORTVERSION}${EXTRACT_SUFX} \ - postgresql-test-${PORTVERSION}${EXTRACT_SUFX} \ - postgresql-docs-${PORTVERSION}${EXTRACT_SUFX} + postgresql-opt-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER?= girgen@pingpong.net @@ -65,17 +63,10 @@ PLIST_SUB+= GETTEXT="@comment " CFLAGS+= -O3 -funroll-loops .endif -.if defined(WITH_DEBUG) && defined(WITH_STRIPBIN) - @${ECHO} "WITH_DEBUG and WITH_STRIPBIN are mutually exclusive tunables." - @${ECHO} "Please choose one or the other." - @exit ${FALSE} -.endif - .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug -.endif - -.if defined(WITH_STRIPBIN) +INSTALL_TARGET= install +.else INSTALL_TARGET= install-strip .endif @@ -89,35 +80,18 @@ PKGMESSAGE= ${PKGDIR}/pkg-message.client PLIST_SUB+= SERVER="@comment " PKGNAMESUFFIX= -client .else -SERVERBINARIES+= postgres PLIST_SUB+= SERVER="" -INSTALL_TARGET= install install-all-headers -.endif - -.if defined(WITH_MIT_KRB5) && defined(WITH_HEIMDAL_KRB5) - @${ECHO} "WITH_MIT_KRB5 and WITH_HEIMDAL_KRB5 are mutually exclusive." - @${ECHO} "Please choose one or the other." - @exit 1 +INSTALL_TARGET+= install-all-headers +MAKEFILE= GNUmakefile .endif .if defined(WITH_MIT_KRB5) KRB5CONF= ${LOCALBASE}/bin/krb5-config -.if !exists(${KRB5CONFIG}) - @${ECHO} "Unable to find krb5-config in your local base, please verify that" - @${ECHO} "security/krb5 is installed or undefine the WITH_MIT_KRB5 tunable." - @exit 1 -.endif WITH_KRB5= yes .endif .if defined(WITH_HEIMDAL_KRB5) KRB5CONF= /usr/bin/krb5-config -.if !exists(${KRB5CONFIG}) - @${ECHO} "Unable to find krb5-config in the base system. Undefine" - @${ECHO} "WITH_HEIMDAL_KRB5 or add MAKE_KERBEROS5=yes to /etc/make.conf" - @${ECHO} "and remake world (or undefine the WITH_HEIMDAL_KRB5 tunable)." - @exit 1 -.endif LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5 WITH_KRB5= yes .endif @@ -131,6 +105,10 @@ LDFLAGS+= `${KRB5CONF} --libs krb5` CFLAGS+= -O3 -funroll-loops .endif +.if defined(WITH_TESTS) +DISTFILES+= postgresql-test-${PORTVERSION}${EXTRACT_SUFX} +.endif + MAN1= clusterdb.1 createdb.1 createlang.1 createuser.1 dropdb.1 \ droplang.1 dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 \ pg_config.1 pg_controldata.1 pg_ctl.1 pg_dump.1 pg_dumpall.1 \ @@ -175,8 +153,25 @@ pre-everything:: @${ECHO} " WITH_HEIMDAL_KRB5 Builds with Heimdal's kerberos support" @${ECHO} " WITH_OPTIMIZED_CFLAGS Builds with compiler optimizations (-O3)" @${ECHO} " WITH_DEBUG Builds with debugging symbols" - @${ECHO} " WITH_STRIPBIN Installs stripped binaries" + @${ECHO} " WITH_TESTS Allows the use of a \"check\" target" + @${ECHO} " building the module" @${ECHO} "" +.if defined(WITH_MIT_KRB5) && defined(WITH_HEIMDAL_KRB5) + @${ECHO} "WITH_MIT_KRB5 and WITH_HEIMDAL_KRB5 are mutually exclusive." + @${ECHO} "Please choose one or the other." + @exit 1 +.endif +.if defined(WITH_MIT_KRB5) && !exists(${KRB5CONF}) + @${ECHO} "Unable to find krb5-config in your local base, please verify that" + @${ECHO} "security/krb5 is installed or undefine the WITH_MIT_KRB5 tunable." + @exit 1 +.endif +.if defined(WITH_HEIMDAL_KRB5) && !exists(${KRB5CONF}) + @${ECHO} "Unable to find krb5-config in the base system. Undefine" + @${ECHO} "WITH_HEIMDAL_KRB5 or add MAKE_KERBEROS5=yes to /etc/make.conf" + @${ECHO} "and remake world (or undefine the WITH_HEIMDAL_KRB5 tunable)." + @exit 1 +.endif .if defined(WITHOUT_SERVER) do-install: @@ -196,14 +191,7 @@ post-install: ${CAT} ${FILESDIR}/post-install-notes ${PKGMESSAGE} |\ ${SED} "s|/usr/local|${PREFIX}|g" |\ tee ${PREFIX}/share/postgresql/post-install-notes -.if !defined(DEBUG_FLAGS) -.for file in ecpg pg_dump pg_id pg_restore psql ${SERVERBINARIES} - @ strip ${PREFIX}/bin/${file} -.endfor -.endif .if !defined(WITHOUT_SERVER) -# install shell defaults for pgsql user - @ strip ${PREFIX}/bin/postgres .for i in profile cshrc @ ${SED} "s|%%PREFIX%%|${PREFIX}|g" \ < ${FILESDIR}/dot.$i.in \ @@ -224,5 +212,16 @@ post-install: ${PREFIX}/share/postgresql .endif +.if defined(WITH_TESTS) +check: + @if [ `id -u` != 0 ] ; then \ + ${ECHO} "Running postgresql regressions tests" ;\ + cd ${WRKSRC}; ${GMAKE} check ;\ + else \ + ${ECHO} "You cannot run regression tests when postgresql is built as user root." ; \ + ${ECHO} "Clean and rebuild the port as a regular user to run the tests." ;\ + fi +.endif + .include <bsd.port.mk> .endif |