summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2008-01-20 00:17:22 +0000
committerMartin Jackson <mjolnir@gentoo.org>2008-01-20 00:17:22 +0000
commit322797401f837d1d295fed88d717db612891d194 (patch)
tree6fd2d9c054e7fa1a7f2e26da22ae938163c6becf /dev-db/libpq
parentCheck for texmf-update before trying to execute it, otherwise display a warni... (diff)
downloadgentoo-2-322797401f837d1d295fed88d717db612891d194.tar.gz
gentoo-2-322797401f837d1d295fed88d717db612891d194.tar.bz2
gentoo-2-322797401f837d1d295fed88d717db612891d194.zip
Remove vulnerable versions for #204760
(Portage version: 2.1.4)
Diffstat (limited to 'dev-db/libpq')
-rw-r--r--dev-db/libpq/ChangeLog8
-rw-r--r--dev-db/libpq/files/digest-libpq-7.3.196
-rw-r--r--dev-db/libpq/files/digest-libpq-7.4.173
-rw-r--r--dev-db/libpq/files/digest-libpq-8.0.136
-rw-r--r--dev-db/libpq/files/libpq-7.3.19-gentoo.patch54
-rw-r--r--dev-db/libpq/files/libpq-7.4.17-gentoo.patch67
-rw-r--r--dev-db/libpq/files/libpq-8.0.13-gentoo.patch47
-rw-r--r--dev-db/libpq/libpq-7.3.19.ebuild116
-rw-r--r--dev-db/libpq/libpq-7.4.17.ebuild110
-rw-r--r--dev-db/libpq/libpq-8.0.13.ebuild116
10 files changed, 7 insertions, 526 deletions
diff --git a/dev-db/libpq/ChangeLog b/dev-db/libpq/ChangeLog
index 441a82230f22..2b59879d1c35 100644
--- a/dev-db/libpq/ChangeLog
+++ b/dev-db/libpq/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-db/libpq
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.143 2008/01/16 15:56:21 welp Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.144 2008/01/20 00:17:21 mjolnir Exp $
+
+ 20 Jan 2008; Martin Jackson <mjolnir@gentoo.org>
+ -files/libpq-7.3.19-gentoo.patch, -files/libpq-7.4.17-gentoo.patch,
+ -files/libpq-8.0.13-gentoo.patch, -libpq-7.3.19.ebuild,
+ -libpq-7.4.17.ebuild, -libpq-8.0.13.ebuild:
+ Remove vulnerable versions for #204760
16 Jan 2008; Peter Weller <welp@gentoo.org> libpq-7.4.19.ebuild:
Stable on amd64; bug 204760
diff --git a/dev-db/libpq/files/digest-libpq-7.3.19 b/dev-db/libpq/files/digest-libpq-7.3.19
deleted file mode 100644
index 332998d3c37b..000000000000
--- a/dev-db/libpq/files/digest-libpq-7.3.19
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 b9b2dca0468bafff72486bd54812c317 postgresql-base-7.3.19.tar.bz2 5691127
-RMD160 802bbba70d1368097a74de6b67589ab9645597cc postgresql-base-7.3.19.tar.bz2 5691127
-SHA256 1804e0424e4444f67acfb98b4e4ad2ede26748d1ddb4a9201cbff7627e394e6a postgresql-base-7.3.19.tar.bz2 5691127
-MD5 1fe88fa959492155518787c0eb197b14 postgresql-opt-7.3.19.tar.bz2 342076
-RMD160 7ee1dea5c906d88ba3384ea805368a9dcb8af47d postgresql-opt-7.3.19.tar.bz2 342076
-SHA256 2735bceed9f0d27befb3ec26b5d76f9272da1cdf2434ceb9d68327494912017f postgresql-opt-7.3.19.tar.bz2 342076
diff --git a/dev-db/libpq/files/digest-libpq-7.4.17 b/dev-db/libpq/files/digest-libpq-7.4.17
deleted file mode 100644
index 1ee7a5e58c6d..000000000000
--- a/dev-db/libpq/files/digest-libpq-7.4.17
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 c513ae755abd4fb011378351be9e1ba0 postgresql-base-7.4.17.tar.bz2 6609512
-RMD160 cd5aed1fb45cc42e12cca0cd31174b6726dae97b postgresql-base-7.4.17.tar.bz2 6609512
-SHA256 f1b7ff754ccb43d4a3a62a9124b1c8ac215e48e5549e620bfcde59124c6f1bc5 postgresql-base-7.4.17.tar.bz2 6609512
diff --git a/dev-db/libpq/files/digest-libpq-8.0.13 b/dev-db/libpq/files/digest-libpq-8.0.13
deleted file mode 100644
index 95e9f1794635..000000000000
--- a/dev-db/libpq/files/digest-libpq-8.0.13
+++ /dev/null
@@ -1,6 +0,0 @@
-MD5 d3b5185dc6a12f2443f06f83cdee03d0 postgresql-base-8.0.13.tar.bz2 7848290
-RMD160 de34ef01b76d777e9b22bcd16dd29328a11d35cf postgresql-base-8.0.13.tar.bz2 7848290
-SHA256 5627ad76e6a6c8eb85c1debe5fce2c12b42611434dabe0fd5763b8a72c7ac49d postgresql-base-8.0.13.tar.bz2 7848290
-MD5 824caf8451dec685a0d5886eb4892807 postgresql-opt-8.0.13.tar.bz2 134769
-RMD160 f3fb741c5dcff23045a58baf57f4386099e3c563 postgresql-opt-8.0.13.tar.bz2 134769
-SHA256 9f63fc12ede1a605934cdc462ff45c0e924288284f411ae38dec1c5b6e87ce25 postgresql-opt-8.0.13.tar.bz2 134769
diff --git a/dev-db/libpq/files/libpq-7.3.19-gentoo.patch b/dev-db/libpq/files/libpq-7.3.19-gentoo.patch
deleted file mode 100644
index 254dafd6a7ee..000000000000
--- a/dev-db/libpq/files/libpq-7.3.19-gentoo.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-diff -Nru postgresql-7.3.16.orig/src/interfaces/libpq/Makefile postgresql-7.3.16/src/interfaces/libpq/Makefile
---- postgresql-7.3.16.orig/src/interfaces/libpq/Makefile 2006-11-05 13:20:09.000000000 +0100
-+++ postgresql-7.3.16/src/interfaces/libpq/Makefile 2006-11-05 13:21:19.000000000 +0100
-@@ -18,6 +18,8 @@
- SO_MAJOR_VERSION= 3
- SO_MINOR_VERSION= 0
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION)
-+
- override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
-
- OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
-diff -Nru postgresql-7.3.16.orig/src/interfaces/libpq/nls.mk postgresql-7.3.16/src/interfaces/libpq/nls.mk
---- postgresql-7.3.16.orig/src/interfaces/libpq/nls.mk 2006-11-05 13:20:09.000000000 +0100
-+++ postgresql-7.3.16/src/interfaces/libpq/nls.mk 2006-11-05 13:21:19.000000000 +0100
-@@ -1,5 +1,5 @@
- # $Header: /cvsroot/pgsql/src/interfaces/libpq/nls.mk,v 1.8 2002/09/22 20:57:21 petere Exp $
--CATALOG_NAME := libpq
-+CATALOG_NAME := libpq-3
- AVAIL_LANGUAGES := cs de es fr pt_BR ru sv zh_CN zh_TW
- GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-secure.c
- GETTEXT_TRIGGERS:= libpq_gettext
-diff -Nru postgresql-7.3.16.orig/src/Makefile.shlib postgresql-7.3.16/src/Makefile.shlib
---- postgresql-7.3.16.orig/src/Makefile.shlib 2006-11-05 13:20:09.000000000 +0100
-+++ postgresql-7.3.16/src/Makefile.shlib 2006-11-05 13:23:20.000000000 +0100
-@@ -221,7 +221,7 @@
-
- all-lib: all-static-lib all-shared-lib
-
--all-static-lib: lib$(NAME).a
-+all-static-lib: lib$(NAME_STATIC_LIB).a
-
- all-shared-lib: $(shlib)
-
-@@ -231,7 +231,7 @@
- MK_NO_LORDER := true
- endif
-
--lib$(NAME).a: $(OBJS)
-+lib$(NAME_STATIC_LIB).a: $(OBJS)
- ifdef MK_NO_LORDER
- $(LINK.static) $@ $^
- else
-@@ -302,8 +302,8 @@
- .PHONY: install-lib install-lib-static install-lib-shared
- install-lib: install-lib-static install-lib-shared
-
--install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+install-lib-static: lib$(NAME_STATIC_LIB).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
-
- ifeq ($(enable_shared), yes)
- install-lib-shared: $(shlib)
diff --git a/dev-db/libpq/files/libpq-7.4.17-gentoo.patch b/dev-db/libpq/files/libpq-7.4.17-gentoo.patch
deleted file mode 100644
index b2a9730021a0..000000000000
--- a/dev-db/libpq/files/libpq-7.4.17-gentoo.patch
+++ /dev/null
@@ -1,67 +0,0 @@
-diff -Nru postgresql-7.4.14.orig/src/interfaces/libpq/Makefile postgresql-7.4.14/src/interfaces/libpq/Makefile
---- postgresql-7.4.14.orig/src/interfaces/libpq/Makefile 2006-11-05 13:20:18.000000000 +0100
-+++ postgresql-7.4.14/src/interfaces/libpq/Makefile 2006-11-05 13:23:46.000000000 +0100
-@@ -18,6 +18,8 @@
- SO_MAJOR_VERSION= 3
- SO_MINOR_VERSION= 1
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION)
-+
- override CPPFLAGS := -I$(srcdir) $(CPPFLAGS) $(THREAD_CPPFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"'
-
- OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
-@@ -66,7 +68,7 @@
- $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
- $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
-- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
-+ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).conf.sample
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
-diff -Nru postgresql-7.4.14.orig/src/interfaces/libpq/nls.mk postgresql-7.4.14/src/interfaces/libpq/nls.mk
---- postgresql-7.4.14.orig/src/interfaces/libpq/nls.mk 2006-11-05 13:20:18.000000000 +0100
-+++ postgresql-7.4.14/src/interfaces/libpq/nls.mk 2006-11-05 13:23:46.000000000 +0100
-@@ -1,5 +1,5 @@
- # $Header: /cvsroot/pgsql/src/interfaces/libpq/nls.mk,v 1.13.2.1 2004/10/30 08:22:16 petere Exp $
--CATALOG_NAME := libpq
-+CATALOG_NAME := libpq-3
- AVAIL_LANGUAGES := cs de es fr hr it nb pt_BR ru sl sv tr zh_CN zh_TW
- GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-secure.c
- GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
-diff -Nru postgresql-7.4.14.orig/src/Makefile.shlib postgresql-7.4.14/src/Makefile.shlib
---- postgresql-7.4.14.orig/src/Makefile.shlib 2006-11-05 13:20:18.000000000 +0100
-+++ postgresql-7.4.14/src/Makefile.shlib 2006-11-05 13:23:46.000000000 +0100
-@@ -229,7 +229,7 @@
-
- all-lib: all-static-lib all-shared-lib
-
--all-static-lib: lib$(NAME).a
-+all-static-lib: lib$(NAME_STATIC_LIB).a
-
- all-shared-lib: $(shlib)
-
-@@ -239,7 +239,7 @@
- MK_NO_LORDER := true
- endif
-
--lib$(NAME).a: $(OBJS)
-+lib$(NAME_STATIC_LIB).a: $(OBJS)
- ifdef MK_NO_LORDER
- $(LINK.static) $@ $^
- else
-@@ -310,11 +310,11 @@
- .PHONY: install-lib install-lib-static install-lib-shared
- install-lib: install-lib-static install-lib-shared
-
--install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+install-lib-static: lib$(NAME_STATIC_LIB).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
diff --git a/dev-db/libpq/files/libpq-8.0.13-gentoo.patch b/dev-db/libpq/files/libpq-8.0.13-gentoo.patch
deleted file mode 100644
index e6a37001ef99..000000000000
--- a/dev-db/libpq/files/libpq-8.0.13-gentoo.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-diff -Nru postgresql-8.0.9.orig/src/interfaces/libpq/Makefile postgresql-8.0.9/src/interfaces/libpq/Makefile
---- postgresql-8.0.9.orig/src/interfaces/libpq/Makefile 2006-11-05 13:20:26.000000000 +0100
-+++ postgresql-8.0.9/src/interfaces/libpq/Makefile 2006-11-05 13:24:34.000000000 +0100
-@@ -20,6 +20,8 @@
- SO_MINOR_VERSION= 0
- DLTYPE= library
-
-+NAME_STATIC_LIB= $(NAME)-$(SO_MAJOR_VERSION)
-+
- override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
- override CFLAGS += $(PTHREAD_CFLAGS)
-
-@@ -136,7 +138,7 @@
- $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
- $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
- $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
-- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
-+ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-$(SO_MAJOR_VERSION).conf.sample
-
- installdirs:
- $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
-diff -Nru postgresql-8.0.9.orig/src/interfaces/libpq/nls.mk postgresql-8.0.9/src/interfaces/libpq/nls.mk
---- postgresql-8.0.9.orig/src/interfaces/libpq/nls.mk 2006-11-05 13:20:26.000000000 +0100
-+++ postgresql-8.0.9/src/interfaces/libpq/nls.mk 2006-11-05 13:24:34.000000000 +0100
-@@ -1,5 +1,5 @@
- # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.20 2005/01/14 08:57:06 petere Exp $
--CATALOG_NAME := libpq
-+CATALOG_NAME := libpq-4
- AVAIL_LANGUAGES := af cs de es fr hr it ko nb pl pt_BR ru sk sl sv tr zh_CN zh_TW
- GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
- GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
-diff -Nru postgresql-8.0.9.orig/src/Makefile.shlib postgresql-8.0.9/src/Makefile.shlib
---- postgresql-8.0.9.orig/src/Makefile.shlib 2006-11-05 13:20:26.000000000 +0100
-+++ postgresql-8.0.9/src/Makefile.shlib 2006-11-05 13:24:34.000000000 +0100
-@@ -360,10 +360,10 @@
- install-lib: install-lib-static install-lib-shared
-
- install-lib-static: lib$(NAME).a
-- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
-+ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
- ifeq ($(PORTNAME), darwin)
- cd $(DESTDIR)$(libdir) && \
-- ranlib lib$(NAME).a
-+ ranlib lib$(NAME_STATIC_LIB).a
- endif
-
- ifeq ($(enable_shared), yes)
diff --git a/dev-db/libpq/libpq-7.3.19.ebuild b/dev-db/libpq/libpq-7.3.19.ebuild
deleted file mode 100644
index 0346a2f95be0..000000000000
--- a/dev-db/libpq/libpq-7.3.19.ebuild
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-7.3.19.ebuild,v 1.8 2007/06/24 21:20:43 vapier Exp $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 s390 sh sparc x86"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
- mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="3"
-IUSE="kerberos nls pam pg-intdatetime readline ssl zlib"
-
-RDEPEND="!<=dev-db/postgresql-7.3.15-r1
- kerberos? ( virtual/krb5 )
- pam? ( virtual/pam )
- readline? ( >=sys-libs/readline-4.1 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- zlib? ( >=sys-libs/zlib-1.1.3 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${P}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # Detect mips systems properly
- gnuconfig_update
-
- cd "${S}"
-
- ./configure --prefix=/usr \
- --includedir=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- --without-tk \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install-all-headers || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
-
- for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/*.h) ; do
- dosym postgresql/libpq-${SLOT}/$(basename ${f}) /usr/include/
- done
-
- dodir /usr/include/libpq
- for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/libpq/*.h) ; do
- dosym ../postgresql/libpq-${SLOT}/libpq/$(basename ${f}) /usr/include/libpq/
- done
-
- cd "${D}/usr/include/postgresql/libpq-${SLOT}"
- for f in $(find * -name '*.h' -print) ; do
- destdir=$(dirname ${f})
- if [[ ! -d "${D}/usr/include/postgresql/${destdir}" ]] ; then
- dodir "/usr/include/postgresql/${destdir}"
- fi
- dosym /usr/include/postgresql/libpq-${SLOT}/${f} "/usr/include/postgresql/${destdir}/"
- done
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}
diff --git a/dev-db/libpq/libpq-7.4.17.ebuild b/dev-db/libpq/libpq-7.4.17.ebuild
deleted file mode 100644
index 937d36b1e14d..000000000000
--- a/dev-db/libpq/libpq-7.4.17.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-7.4.17.ebuild,v 1.10 2008/01/14 02:10:47 mjolnir Exp $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-DESCRIPTION="Libraries of postgresql"
-HOMEPAGE="http://www.postgresql.org/"
-MY_P="postgresql-${PV}"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2"
-
-LICENSE="POSTGRESQL"
-SLOT="3"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE="ssl nls pam readline zlib kerberos"
-
-S=${WORKDIR}/${MY_P}
-DEPEND="virtual/libc
- sys-devel/autoconf
- >=sys-libs/ncurses-5.2
- >=sys-devel/bison-1.875
- zlib? ( >=sys-libs/zlib-1.1.3 )
- readline? ( >=sys-libs/readline-4.1 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- nls? ( sys-devel/gettext )
- kerberos? ( virtual/krb5 )"
-RDEPEND="virtual/libc
- zlib? ( >=sys-libs/zlib-1.1.3 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- kerberos? ( virtual/krb5 )"
-
-MAKEOPTS="${MAKEOPTS} -j1"
-
-pkg_preinst() {
- # removing wrong symlink which is created by previous ebuild.
- if [ -L "${ROOT}/usr/include/libpq" ]; then
- rm "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${P}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- local myconf
- use ssl && myconf="$myconf --with-openssl"
- use nls && myconf="$myconf --enable-nls"
- use pam && myconf="$myconf --with-pam"
- use readline || myconf="$myconf --without-readline"
- use zlib || myconf="$myconf --without-zlib"
- use kerberos && myconf="$myconf --with-krb5"
-
- # these are the only working CFLAGS I could get on ppc, so locking them
- # down, anything more aggressive fails (i.e. -mcpu or -Ox)
- # Gerk - Nov 26, 2002
- use ppc && CFLAGS="-pipe -fsigned-char"
-
- # Detect mips systems properly
- gnuconfig_update
-
- ./configure --prefix=/usr \
- --include=/usr/include/postgresql/libpq-${SLOT} \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $myconf || die
-
- cd "${S}/src/interfaces/libpq"
- emake LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- make DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die
-
- cd "${S}/src/include"
- make DESTDIR="${D}" install || die
-
- cd "${S}"
- dodoc README HISTORY COPYRIGHT INSTALL
-
- dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
-
- for f in "${D}/usr/include/postgresql/libpq-${SLOT}/*.h"
- do
- dosym postgresql/libpq-${SLOT}/$(basename $f) /usr/include/
- done
-
- dodir /usr/include/libpq
- for f in "${D}/usr/include/postgresql/libpq-${SLOT}/libpq/*.h"
- do
- dosym ../postgresql/libpq-${SLOT}/libpq/$(basename $f) /usr/include/libpq/
- done
-
- cd "${D}/usr/include/postgresql/libpq-${SLOT}"
- for f in $(find * -name '*.h' -print) ; do
- destdir=$(dirname $f)
- if [ ! -d "${D}/usr/include/postgresql/${destdir}" ]; then
- dodir /usr/include/postgresql/${destdir}
- fi
- dosym /usr/include/postgresql/libpq-${SLOT}/${f} /usr/include/postgresql/${destdir}/
- done
-}
diff --git a/dev-db/libpq/libpq-8.0.13.ebuild b/dev-db/libpq/libpq-8.0.13.ebuild
deleted file mode 100644
index c520406aa12c..000000000000
--- a/dev-db/libpq/libpq-8.0.13.ebuild
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-8.0.13.ebuild,v 1.10 2007/06/24 21:20:43 vapier Exp $
-
-inherit eutils gnuconfig flag-o-matic toolchain-funcs
-
-KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
-
-DESCRIPTION="PostgreSQL libraries."
-HOMEPAGE="http://www.postgresql.org/"
-SRC_URI="mirror://postgresql/source/v${PV}/postgresql-base-${PV}.tar.bz2
- mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
-LICENSE="POSTGRESQL"
-SLOT="4"
-IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
-
-RDEPEND="!<=dev-db/postgresql-8.0.8
- kerberos? ( virtual/krb5 )
- pam? ( virtual/pam )
- readline? ( >=sys-libs/readline-4.1 )
- ssl? ( >=dev-libs/openssl-0.9.6-r1 )
- zlib? ( >=sys-libs/zlib-1.1.3 )"
-DEPEND="${RDEPEND}
- sys-devel/autoconf
- >=sys-devel/bison-1.875
- nls? ( sys-devel/gettext )"
-
-S="${WORKDIR}/postgresql-${PV}"
-
-pkg_preinst() {
- # Removing wrong symlink created by previous ebuild
- if [[ -L "${ROOT}/usr/include/libpq" ]] ; then
- rm -f "${ROOT}/usr/include/libpq"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- epatch "${FILESDIR}/${P}-gentoo.patch"
-}
-
-src_compile() {
- filter-flags -ffast-math -feliminate-dwarf2-dups
-
- # Detect mips systems properly
- gnuconfig_update
-
- cd "${S}"
-
- ./configure --prefix=/usr \
- --includedir=/usr/include/postgresql/libpq-${SLOT} \
- --sysconfdir=/etc/postgresql \
- --mandir=/usr/share/man \
- --host=${CHOST} \
- --with-docdir=/usr/share/doc/${PF} \
- --libdir=/usr/$(get_libdir) \
- --enable-depend \
- $(use_with kerberos krb5) \
- $(use_enable nls ) \
- $(use_with pam) \
- --without-perl \
- $(use_enable pg-intdatetime integer-datetimes ) \
- --without-python \
- $(use_with readline) \
- $(use_with ssl openssl) \
- --without-tcl \
- $(use_enable threads thread-safety ) \
- $(use_with zlib) \
- || die "configure failed"
-
- cd "${S}/src/interfaces/libpq"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed"
-
- cd "${S}/src/bin/pg_config"
- emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed"
-}
-
-src_install() {
- cd "${S}/src/interfaces/libpq"
- emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed"
-
- cd "${S}/src/include"
- emake DESTDIR="${D}" install || die "emake install headers failed"
-
- cd "${S}/src/bin/pg_config"
- emake DESTDIR="${D}" install || die "emake install pg_config failed"
-
- cd "${S}"
- dodoc README HISTORY
-
- dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a
-
- for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/*.h) ; do
- dosym postgresql/libpq-${SLOT}/$(basename ${f}) /usr/include/
- done
-
- dodir /usr/include/libpq
- for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/libpq/*.h) ; do
- dosym ../postgresql/libpq-${SLOT}/libpq/$(basename ${f}) /usr/include/libpq/
- done
-
- cd "${D}/usr/include/postgresql/libpq-${SLOT}"
- for f in $(find * -name '*.h' -print) ; do
- destdir=$(dirname ${f})
- if [[ ! -d "${D}/usr/include/postgresql/${destdir}" ]] ; then
- dodir "/usr/include/postgresql/${destdir}"
- fi
- dosym /usr/include/postgresql/libpq-${SLOT}/${f} "/usr/include/postgresql/${destdir}/"
- done
-}
-
-src_test() {
- einfo "No tests available for libpq."
-}