changeset 0:7985ba427c7d

initial import from svn
author holger@wizards.de
date Sat, 22 Mar 2008 03:58:33 +0100
parents
children dab1199d9829
files dev-db/libpq/Manifest dev-db/libpq/files/libpq-8.3.1-gentoo.patch dev-db/libpq/libpq-8.3.1.ebuild dev-db/postgresql/Manifest dev-db/postgresql/files/postgresql-8.3.1-gentoo.patch dev-db/postgresql/files/postgresql-8.3.1-regress_su.patch dev-db/postgresql/files/postgresql-8.3.1-sh.patch dev-db/postgresql/files/postgresql.conf-8.3 dev-db/postgresql/files/postgresql.init-8.3 dev-db/postgresql/postgresql-8.3.1.ebuild dev-libs/vstr/Manifest dev-libs/vstr/files/vstr-1.0.14-Makefile.in.patch dev-libs/vstr/vstr-1.0.14.ebuild dev-util/hgsvn/Manifest dev-util/hgsvn/hgsvn-0.1.5.ebuild dev-util/svk/Manifest dev-util/svk/svk-2.0.2.ebuild mail-client/alpine/Manifest mail-client/alpine/alpine-1.10.ebuild mail-filter/imapfilter/Manifest mail-filter/imapfilter/files/imapfilter-2.0.10-deprecated.patch mail-filter/imapfilter/imapfilter-2.0.10.ebuild net-mail/up-imapproxy/Manifest net-mail/up-imapproxy/files/imapproxy.rc6 net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild net-misc/e1000/Manifest net-misc/e1000/e1000-7.6.15.5.ebuild sys-block/noflushd/Manifest sys-block/noflushd/files/noflushd-2.7.4-SCSI.patch sys-block/noflushd/files/noflushd.confd sys-block/noflushd/files/noflushd.rc6 sys-block/noflushd/noflushd-2.7.4.ebuild sys-libs/libstatgrab/Manifest sys-libs/libstatgrab/libstatgrab-0.16.ebuild www-apache/mod_wsgi/Manifest www-apache/mod_wsgi/files/70_mod_wsgi.conf www-apache/mod_wsgi/mod_wsgi-2.0.ebuild
diffstat 37 files changed, 1306 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/libpq/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,3 @@
+AUX libpq-8.3.1-gentoo.patch 2138 RMD160 f932113fe89d0ced34bc988d87beaf0dbf2010d8 SHA1 1e77403c2a57231b8625826093aa6f8f3dbb2396 SHA256 f49402d88f63e096d7bf4a934f676fcfa9bfbfa3b3c45d37b6ac966b856dd37a
+DIST postgresql-8.3.1.tar.bz2 13995572 RMD160 075efb67126f2b308d2a5fe4f9097fdbfbe94c89 SHA1 7397e0d8fd3c420ee845d9ae4995ae347bfaea1d SHA256 7ccf1e5c987920e4d6eb98b8589939e29d3a361d285055d5af35ddd8e1a2d992
+EBUILD libpq-8.3.1.ebuild 3241 RMD160 1cef3e2875a3745d68df1c91843779a8dde979bc SHA1 6f84942df9e0b18d295ec28035cf362f7956f647 SHA256 32bc2adbc8b233e85a2761597d021a947fe35c19b892f7ad4f9b8932c3a5122c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/libpq/files/libpq-8.3.1-gentoo.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,44 @@
+--- postgresql-8.3RC1.orig/src/interfaces/libpq/Makefile	2006-12-28 01:01:12.000000000 +0100
++++ postgresql-8.3RC1/src/interfaces/libpq/Makefile	2007-03-29 10:24:27.000000000 +0200
+@@ -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
+ ifneq ($(PORTNAME), win32)
+ override CFLAGS += $(PTHREAD_CFLAGS)
+@@ -160,7 +162,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)'
+--- postgresql-8.3RC1.orig/src/interfaces/libpq/nls.mk	2005-01-14 09:57:06.000000000 +0100
++++ postgresql-8.3RC1/src/interfaces/libpq/nls.mk	2007-03-29 10:24:55.000000000 +0200
+@@ -1,5 +1,5 @@
+ # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.21 2007/10/27 00:13:43 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 ta 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
+--- postgresql-8.3RC1.orig/src/Makefile.shlib	2006-09-19 17:36:07.000000000 +0200
++++ postgresql-8.3RC1/src/Makefile.shlib	2007-03-29 10:28:42.000000000 +0200
+@@ -346,10 +346,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)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/libpq/libpq-8.3.1.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,112 @@
+# 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-8.2.6.ebuild,v 1.1 2008/01/13 01:38:02 mjolnir Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+MY_PV="${PV/_rc/RC}"
+DESCRIPTION="PostgreSQL libraries."
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="4"
+IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib"
+RESTRICT="nomirror"
+
+RDEPEND="!<=dev-db/postgresql-8.1.4
+		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-${MY_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}/${PN}-${PV}-gentoo.patch"
+}
+
+src_compile() {
+	filter-flags -ffast-math -feliminate-dwarf2-dups
+
+	econf --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."
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,7 @@
+AUX postgresql-8.3.1-gentoo.patch 1708 RMD160 0ff283a2fe51d4053224dcb0e58d3d7c588905a8 SHA1 31443d3f0b0b60be72dd4ddecf1dbfb67533cc8e SHA256 5dde62b634169d608104eb0aa892ddfa84723670041db1abdbb614726df6cec9
+AUX postgresql-8.3.1-regress_su.patch 982 RMD160 e604fa527d8eca4f3ad79b480963060d6ab51ee6 SHA1 a2469d5034441fd11e5421fea3032ad0e15568da SHA256 55f624219e265146b9392454f3e6977e6924459c152409be50c86a0730d47bbb
+AUX postgresql-8.3.1-sh.patch 773 RMD160 c4b0588b04fe34330caede894b330e88c903d9a0 SHA1 79def1f5c1921d0d5bd7033e61416976ec11ab50 SHA256 a58eec9eb94a68e500b60220c12dfdc116dffa32af2983048bfdfb1bea109a54
+AUX postgresql.conf-8.3 1228 RMD160 b3a582a3158115c375e9e586c70107c9e4cc51f0 SHA1 7c92bc7160064ad0ec60b6b1d41f5d76c3be2b68 SHA256 7244d3de82836e94b663d6eb3ff9d7744fc3591bd9ad12303ae26bcac306227c
+AUX postgresql.init-8.3 1427 RMD160 74393b4eb2b851c01deaa3dea10757c9bb74bd73 SHA1 2b0365f9c8d1121f948a7e6c83d3f10dfa568a87 SHA256 c42e7ba85638a31826b4ed7a92a9f95cd242bbe7c846e52a8b87e0db28c17da5
+DIST postgresql-8.3.1.tar.bz2 13995572 RMD160 075efb67126f2b308d2a5fe4f9097fdbfbe94c89 SHA1 7397e0d8fd3c420ee845d9ae4995ae347bfaea1d SHA256 7ccf1e5c987920e4d6eb98b8589939e29d3a361d285055d5af35ddd8e1a2d992
+EBUILD postgresql-8.3.1.ebuild 8220 RMD160 4ed636ca787419954889390ada3b9d0b1fd41b06 SHA1 175222b863e8d6a1d70c1762e8d2f262ed2883b4 SHA256 0a8da6dc4df5f5f387b19a277c716a5fac42683e2a57702b2e786c9dda41164e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/files/postgresql-8.3.1-gentoo.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,58 @@
+--- postgresql-8.3RC1.orig/src/bin/Makefile	2006-03-05 16:58:50.000000000 +0100
++++ postgresql-8.3RC1/src/bin/Makefile	2007-03-29 12:12:26.000000000 +0200
+@@ -14,7 +14,7 @@
+ include $(top_builddir)/src/Makefile.global
+ 
+ DIRS = initdb ipcclean pg_ctl pg_dump \
+-	psql scripts pg_config pg_controldata pg_resetxlog
++	psql scripts pg_controldata pg_resetxlog
+ ifeq ($(PORTNAME), win32)
+ DIRS+=pgevent
+ endif
+--- postgresql-8.3RC1.orig/src/interfaces/Makefile	2004-04-20 02:33:51.000000000 +0200
++++ postgresql-8.3RC1/src/interfaces/Makefile	2007-03-29 12:14:01.000000000 +0200
+@@ -12,7 +12,7 @@
+ top_builddir = ../..
+ include $(top_builddir)/src/Makefile.global
+ 
+-DIRS = libpq ecpg 
++DIRS = ecpg 
+ 
+ ALLDIRS = $(DIRS) 
+ 
+--- postgresql-8.3RC1.orig/src/Makefile	2006-06-23 01:50:35.000000000 +0200
++++ postgresql-8.3RC1/src/Makefile	2007-03-29 12:54:59.000000000 +0200
+@@ -19,12 +19,10 @@
+ 	$(MAKE) -C backend $@
+ 	$(MAKE) -C backend/utils/mb/conversion_procs $@
+ 	$(MAKE) -C backend/snowball $@
+-	$(MAKE) -C include $@
+ 	$(MAKE) -C interfaces $@
+ 	$(MAKE) -C bin $@
+ 	$(MAKE) -C pl $@
+ 	$(MAKE) -C makefiles $@
+-	$(MAKE) -C test/regress $@
+ 
+ install: install-local
+ 
+@@ -49,7 +47,6 @@
+ 	$(MAKE) -C timezone $@
+ 	$(MAKE) -C backend $@
+ 	$(MAKE) -C backend/snowball $@
+-	$(MAKE) -C include $@
+ 	$(MAKE) -C interfaces $@
+ 	$(MAKE) -C bin $@
+ 	$(MAKE) -C pl $@
+@@ -63,12 +60,10 @@
+ 	-$(MAKE) -C timezone $@
+ 	-$(MAKE) -C backend $@
+ 	-$(MAKE) -C backend/snowball $@
+-	-$(MAKE) -C include $@
+ 	-$(MAKE) -C interfaces $@
+ 	-$(MAKE) -C bin $@
+ 	-$(MAKE) -C pl $@
+ 	-$(MAKE) -C makefiles $@
+-	-$(MAKE) -C test $@
+ 	-$(MAKE) -C tutorial NO_PGXS=1 $@
+ 	-$(MAKE) -C test/thread $@
+ 	rm -f Makefile.port Makefile.global
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/files/postgresql-8.3.1-regress_su.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,12 @@
+--- postgresql-8.3RC1.orig/src/test/regress/GNUmakefile	2008-01-20 00:22:49.000000000 +0200
++++ postgresql-8.3RC1/src/test/regress/GNUmakefile	2008-01-20 00:26:27.000000000 +0200
+@@ -141,7 +141,8 @@
+ ##
+ 
+ check: all
+-	./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --srcdir=$(abs_srcdir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) $(TEMP_CONF)
++	chown portage testtablespace .
++	su -s /bin/sh portage -c "./pg_regress --psqldir=`pwd`/../../bin/psql --temp-install=./tmp_check --top-builddir=$(top_builddir) --srcdir=$(abs_srcdir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) $(TEMP_CONF)"
+ 
+ installcheck: all
+ 	./pg_regress --psqldir=$(PSQLDIR) --schedule=$(srcdir)/serial_schedule --srcdir=$(abs_srcdir) --multibyte=$(MULTIBYTE) --load-language=plpgsql $(NOLOCALE)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/files/postgresql-8.3.1-sh.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,34 @@
+--- postgresql-8.3RC1.orig/src/include/storage/s_lock.h	2006-06-08 00:24:45.000000000 +0200
++++ postgresql-8.3RC1/src/include/storage/s_lock.h	2007-03-29 12:25:56.000000000 +0200
+@@ -299,6 +299,31 @@
+ #endif	 /* __s390__ || __s390x__ */
+ 
+ 
++#if defined(__sh__)
++#define HAS_TEST_AND_SET
++
++typedef unsigned char slock_t;
++
++#define TAS(lock) tas(lock)
++
++static __inline__ int
++tas(volatile slock_t *lock)
++{
++       register int _res = 1;
++
++       __asm__ __volatile__(
++               "tas.b  @%1\n\t"
++               "movt   %0\n\t"
++               "xor    #1,%0"
++:               "=z"(_res)
++:               "r"(lock)
++:               "t","memory");
++       return _res;
++}
++
++#endif  /* __sh__ */
++
++
+ #if defined(__sparc__)		/* Sparc */
+ #define HAS_TEST_AND_SET
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/files/postgresql.conf-8.3	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,38 @@
+# PostgreSQL's Database Directory
+PGDATA="/var/lib/postgresql/data"
+
+# PostgreSQL User
+PGUSER="postgres"
+
+# PostgreSQL Group
+PGGROUP="postgres"
+
+# Extra options to run postmaster with
+PGOPTS=""
+
+
+# SERVER SHUTDOWN:
+# The server will receive 3 signals in the worst case:
+# 1. SIGTERM
+#  This signals the server to ignore new connections and to
+#  wait for all clients to end their transactions before shutting down.
+#  Use WAIT_FOR_DISCONNECT to control how much time the clients
+#  should have until the next signal is being sent.
+# 2. SIGINT
+#  Tell the server to forcefully disconnect all clients.
+#  Terminating a client results in a rollback of the open transactions for this client.
+#  Use WAIT_FOR_CLEANUP to determine how much time the server has
+#  for cleanup. (Set it to "forever" if you want to wait forever.)
+# 3. SIGQUIT
+#  This will terminate the server immediately and results in a recovery run for the next start.
+
+# Wait for clients to disconnect (seconds or "forever")
+WAIT_FOR_DISCONNECT=10
+
+# Time the server has to clean up (seconds or "forever")
+WAIT_FOR_CLEANUP=10
+
+# If you have to export environment variables for the database process,
+# this can be done here.
+# Example:
+#   export R_HOME="/usr/lib/R"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/files/postgresql.init-8.3	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,56 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/files/postgresql.init-8.2,v 1.2 2007/07/11 08:46:51 dev-zero Exp $
+
+opts="${opts} reload"
+
+depend() {
+	use net
+}
+
+checkconfig() {
+	if [ ! -d "$PGDATA" ] ; then
+		eerror "Directory not found: $PGDATA"
+		eerror "Please make sure that PGDATA points to the right path."
+		eerror "You can run 'emerge postgresql --config' to setup a new database cluster."
+		return 1
+	fi
+}
+
+start() {
+	checkconfig || return 1
+
+	ebegin "Starting PostgreSQL"
+
+	if [ -f "$PGDATA/postmaster.pid" ] ; then
+		rm -f "$PGDATA/postmaster.pid"
+	fi
+
+	start-stop-daemon --start \
+		--pidfile "${PGDATA}/postmaster.pid" \
+		--chuid ${PGUSER}:${PGGROUP} \
+		--exec /usr/bin/postmaster \
+		-- \
+		-D "${PGDATA}" \
+		--silent-mode=true \
+		${PGOPTS}
+
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping PostgreSQL"
+	# Note: we have to do --oknodo here, otherwise it will always fail
+	#       when there are open transactions. This bug has been corrected
+	#       in baselayout-1.13.0_alpha8.
+	start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" \
+		--retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT --oknodo
+	eend $?
+}
+
+reload() {
+	ebegin "Reloading PostgreSQL configuration"
+	start-stop-daemon --stop --pidfile "${PGDATA}/postmaster.pid" --signal HUP --oknodo
+	eend $?
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-db/postgresql/postgresql-8.3.1.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,238 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-8.2.6.ebuild,v 1.1 2008/01/13 01:44:21 mjolnir Exp $
+
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+
+MY_PV="${PV/_rc/RC}"
+DESCRIPTION="Sophisticated and powerful Object-Relational DBMS."
+HOMEPAGE="http://www.postgresql.org/"
+SRC_URI="mirror://postgresql/source/v${MY_PV}/${PN}-${MY_PV}.tar.bz2"
+LICENSE="POSTGRESQL"
+SLOT="0"
+IUSE="doc kerberos kernel_linux nls pam perl pg-intdatetime python readline selinux ssl tcl test xml zlib"
+RESTRICT="nomirror"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+RDEPEND="~dev-db/libpq-${PV}
+		>=sys-libs/ncurses-5.2
+		kerberos? ( virtual/krb5 )
+		pam? ( virtual/pam )
+		perl? ( >=dev-lang/perl-5.6.1-r2 )
+		python? ( >=dev-lang/python-2.2 dev-python/egenix-mx-base )
+		readline? ( >=sys-libs/readline-4.1 )
+		selinux? ( sec-policy/selinux-postgresql )
+		ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+		tcl? ( >=dev-lang/tcl-8 )
+		xml? ( dev-libs/libxml2 dev-libs/libxslt )
+		zlib? ( >=sys-libs/zlib-1.1.3 )"
+DEPEND="${RDEPEND}
+		sys-devel/autoconf
+		>=sys-devel/bison-1.875
+		nls? ( sys-devel/gettext )
+		xml? ( dev-util/pkgconfig )"
+
+PG_DIR="/var/lib/postgresql"
+[[ -z "${PG_MAX_CONNECTIONS}" ]] && PG_MAX_CONNECTIONS="512"
+
+pkg_setup() {
+	if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
+		if [[ $(cat "${PG_DIR}/data/PG_VERSION") != $(get_version_component_range 1-2) ]] ; then
+			eerror "PostgreSQL ${PV} cannot upgrade your existing databases, you must"
+			eerror "use pg_dump to export your existing databases to a file, and then"
+			eerror "pg_restore to import them when you have upgraded completely."
+			eerror "You must remove your entire database directory to continue."
+			eerror "(database directory = ${PG_DIR})."
+			die "Remove your database directory to continue"
+		fi
+	fi
+	enewgroup postgres 70
+	enewuser postgres 70 /bin/bash /var/lib postgres
+}
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+
+	epatch "${FILESDIR}/${PN}-${PV}-gentoo.patch"
+	epatch "${FILESDIR}/${PN}-${PV}-sh.patch"
+
+	# Prepare package for future tests
+	if use test ; then
+		# Fix sandbox violation; note that we're stripping redundant slashes
+		# from ${S}, because otherwise the test would fail.
+		sed -e "s|/no/such/location|${S/\/\//\/}/src/test/regress/tmp_check/no/such/location|g" -i src/test/regress/{input,output}/tablespace.source
+
+		# We need to run the tests as a non-root user, portage seems the most fitting here,
+		# so if userpriv is enabled, we use it directly. If userpriv is disabled, we need to
+		# su - to a valid user, portage again, so we patch the test-scripts to do that.
+		mkdir -p "${S}/src/test/regress/tmp_check"
+		chown portage "${S}/src/test/regress/tmp_check"
+		einfo "Tests will be run as user portage."
+		if ! hasq userpriv ${FEATURES} ; then
+			mkdir -p "${S}/src/test/regress/results"
+			chown portage "${S}/src/test/regress/results"
+			epatch "${FILESDIR}/${PN}-${PV}-regress_su.patch"
+		fi
+	fi
+}
+
+src_compile() {
+	filter-flags -ffast-math -feliminate-dwarf2-dups
+
+	econf --prefix=/usr \
+		--includedir=/usr/include/postgresql/pgsql \
+		--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) \
+		$(use_with perl) \
+		$(use_enable pg-intdatetime integer-datetimes ) \
+		$(use_with python) \
+		$(use_with readline) \
+		$(use_with ssl openssl) \
+		$(use_with tcl) \
+		$(use_with zlib) \
+		|| die "configure failed"
+
+	emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "main emake failed"
+
+	cd "${S}/contrib"
+	emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib emake failed"
+
+	if use xml ; then
+		cd "${S}/contrib/xml2"
+		emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "contrib/xml2 emake failed"
+	fi
+}
+
+src_install() {
+	if use perl ; then
+		mv -f "${S}/src/pl/plperl/GNUmakefile" "${S}/src/pl/plperl/GNUmakefile_orig"
+		sed -e "s:\$(DESTDIR)\$(plperl_installdir):\$(plperl_installdir):" \
+			"${S}/src/pl/plperl/GNUmakefile_orig" > "${S}/src/pl/plperl/GNUmakefile"
+	fi
+
+	cd "${S}"
+	emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "main emake install failed"
+
+	cd "${S}/contrib"
+	emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib emake install failed"
+
+	if use xml ; then
+		cd "${S}/contrib/xml2"
+		emake -j1 DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "contrib/xml2 emake install failed"
+	fi
+
+	cd "${S}"
+	dodoc README HISTORY
+
+	cd "${S}/doc"
+	dodoc FAQ* README.* TODO bug.template
+
+	if use doc ; then
+		cd "${S}/doc"
+		docinto FAQ_html
+		dodoc src/FAQ/*
+		docinto sgml
+		dodoc src/sgml/*.{sgml,dsl}
+		docinto sgml/ref
+		dodoc src/sgml/ref/*.sgml
+		docinto TODO.detail
+		dodoc TODO.detail/*
+	fi
+
+	newinitd "${FILESDIR}/postgresql.init-${PV%[._]*}" postgresql || die "Inserting init.d-file failed"
+	newconfd "${FILESDIR}/postgresql.conf-${PV%[._]*}" postgresql || die "Inserting conf.d-file failed"
+}
+
+pkg_postinst() {
+	elog "Execute the following command to setup the initial database environment:"
+	elog
+	elog "emerge --config =${PF}"
+	elog
+	elog "The autovacuum function, which was in contrib, has been moved to the main"
+	elog "PostgreSQL functions starting with 8.1."
+	elog "You can enable it in ${ROOT}/etc/postgresql/postgresql.conf."
+	elog
+	elog "If you need a global psqlrc-file, you can place it in '${ROOT}/etc/postgresql/'."
+}
+
+pkg_config() {
+	einfo "Creating the data directory ..."
+	mkdir -p "${PG_DIR}/data"
+	chown -Rf postgres:postgres "${PG_DIR}"
+	chmod 0700 "${PG_DIR}/data"
+
+	einfo "Initializing the database ..."
+	if [[ -f "${PG_DIR}/data/PG_VERSION" ]] ; then
+		eerror "PostgreSQL ${PV} cannot upgrade your existing databases."
+		eerror "You must remove your entire database directory to continue."
+		eerror "(database directory = ${PG_DIR})."
+		die "Remove your database directory to continue"
+	else
+		if use kernel_linux ; then
+			local SEM=`sysctl -n kernel.sem | cut -f-3`
+			local SEMMNI=`sysctl -n kernel.sem | cut -f4`
+			local SEMMNI_MIN=`expr \( ${PG_MAX_CONNECTIONS} + 15 \) / 16`
+			local SHMMAX=`sysctl -n kernel.shmmax`
+			local SHMMAX_MIN=`expr 500000 + 30600 \* ${PG_MAX_CONNECTIONS}`
+
+			if [ ${SEMMNI} -lt ${SEMMNI_MIN} ] ; then
+				eerror "The current value of SEMMNI is too low"
+				eerror "for PostgreSQL to run ${PG_MAX_CONNECTIONS} connections!"
+				eerror "Temporary setting this value to ${SEMMNI_MIN} while creating the initial database."
+				echo ${SEM} ${SEMMNI_MIN} > /proc/sys/kernel/sem
+			fi
+
+			su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data"
+
+			if [ ! `sysctl -n kernel.sem | cut -f4` -eq ${SEMMNI} ] ; then
+				echo ${SEM} ${SEMMNI} > /proc/sys/kernel/sem
+				ewarn "Restoring the SEMMNI value to the previous value."
+				ewarn "Please edit the last value of kernel.sem in /etc/sysctl.conf"
+				ewarn "and set it to at least ${SEMMNI_MIN}:"
+				ewarn
+				ewarn "  kernel.sem = ${SEM} ${SEMMNI_MIN}"
+				ewarn
+			fi
+
+			if [ ${SHMMAX} -lt ${SHMMAX_MIN} ] ; then
+				eerror "The current value of SHMMAX is too low for postgresql to run."
+				eerror "Please edit /etc/sysctl.conf and set this value to at least ${SHMMAX_MIN}:"
+				eerror
+				eerror "  kernel.shmmax = ${SHMMAX_MIN}"
+				eerror
+			fi
+		else
+			su postgres -c "/usr/bin/initdb --pgdata ${PG_DIR}/data"
+		fi
+
+		einfo
+		einfo "You can use the '${ROOT}/etc/init.d/postgresql' script to run PostgreSQL instead of 'pg_ctl'."
+		einfo
+	fi
+}
+
+src_test() {
+	cd "${S}"
+
+	einfo ">>> Test phase [check]: ${CATEGORY}/${PF}"
+	if ! emake -j1 check ; then
+		hasq test ${FEATURES} && die "Make check failed. See above for details."
+		hasq test ${FEATURES} || eerror "Make check failed. See above for details."
+	fi
+
+	einfo "Yes, there are other tests which could be run."
+	einfo "... and no, we don't plan to add/support them."
+	einfo "For now, the main regressions tests will suffice."
+	einfo "If you think other tests are necessary, please submit a"
+	einfo "bug including a patch for this ebuild to enable them."
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-libs/vstr/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,3 @@
+AUX vstr-1.0.14-Makefile.in.patch 1565 RMD160 ff31d6d4f95403acaf5ae7eac7080d5b64699c4c SHA1 34fa15d636a277eaf8133540f9af427e7ade2445 SHA256 cfaf245a89a8c0137eadd6353ad4a50d4389910d2c6ccbbf0b6f5ef8c7c027ab
+DIST vstr-1.0.14.tar.gz 1368039 RMD160 17e2673b2487960a23ad791b4e7b0db737311f28 SHA1 053b33a025c9d13afaaa9d3a530ff78bc2d5a9cf SHA256 97a5612ccdc9c722430a0551503db7c9ba2a75f0cc012ef95e751f216e28c0fe
+EBUILD vstr-1.0.14.ebuild 516 RMD160 2e8b9f0728862405030577d86737940742f9a51a SHA1 3f1db488585b0420eda8699abab6753b30029cae SHA256 b4d9bab8f1ad1748089951367ca9c1e67f1688753af158055fe3919c84dc95b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-libs/vstr/files/vstr-1.0.14-Makefile.in.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,42 @@
+diff -r -u vstr-1.0.14/Documentation/Makefile.in vstr-1.0.14.fixed/Documentation/Makefile.in
+--- vstr-1.0.14/Documentation/Makefile.in	2005-01-10 17:06:29.000000000 +0100
++++ vstr-1.0.14.fixed/Documentation/Makefile.in	2005-01-13 23:51:45.623974736 +0100
+@@ -211,7 +211,7 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-docmaindir = $(datadir)/doc/vstr-devel-$(VERSION)
++docmaindir = $(datadir)/doc/vstr-$(VERSION)
+ docmain_DATA = \
+                 basic_cat.c.html \
+                 comparison.html \
+@@ -236,7 +236,7 @@
+                 tutorial.html
+ 
+ 
+-doclicdir := $(datadir)/doc/vstr-devel-$(VERSION)/compare_licenses/
++doclicdir := $(datadir)/doc/vstr-$(VERSION)/compare_licenses/
+ doclic_DATA = \
+                 compare_licenses/SafeStr.txt \
+                 compare_licenses/bstring.txt \
+diff -r -u vstr-1.0.14/examples/Makefile.in vstr-1.0.14.fixed/examples/Makefile.in
+--- vstr-1.0.14/examples/Makefile.in	2005-01-10 17:06:40.000000000 +0100
++++ vstr-1.0.14.fixed/examples/Makefile.in	2005-01-13 23:51:56.774279632 +0100
+@@ -236,7 +236,7 @@
+ AUTOMAKE_OPTIONS = no-dependencies 1.4
+ 
+ EX_B_DIR = $(top_builddir)/examples
+-EX_INST_DIR = $(libdir)/vstr-$(VERSION)/examples
++EX_INST_DIR = $(datadir)/doc/vstr-$(VERSION)/examples
+ 
+ GEN_CFLAGS = -I- -I../include -I../../include
+ GEN_LDLIBS = @LOCAL_EX_PROG_LIBS@
+@@ -538,7 +538,7 @@
+   zcat_data_2.gz
+ 
+ 
+-initddir = $(sysconfdir)/init.d
++initddir = $(datadir)/doc/vstr-$(VERSION)/examples/init.d
+ initd_SCRIPTS = \
+   init.d/jechod \
+   init.d/jhttpd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-libs/vstr/vstr-1.0.14.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,28 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Fast, secure and complete C string library"
+HOMEPAGE="http://www.and.org/vstr/"
+SRC_URI="ftp://ftp.and.org/pub/james/vstr/${PV}/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+src_unpack() {
+	unpack ${A}
+	epatch ${FILESDIR}/${P}-Makefile.in.patch
+}
+
+src_compile() {
+	econf || die
+	emake || die "emake failed"
+}
+
+src_install() {
+	einstall || die
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/hgsvn/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,2 @@
+DIST hgsvn-0.1.5.tar.gz 38621 RMD160 bcb6e40522e2e1cf5dd18b416b45d1f4f1fefb77 SHA1 7a4bb4651875025082633e7b39a707ed2c938ac5 SHA256 a56f5cce308e455fc6ec913355c3d5dd82c1f87b68b62828962b371469db9376
+EBUILD hgsvn-0.1.5.ebuild 639 RMD160 a2e08eb61b3bdf6a324dd6768ca10fec3eada7fd SHA1 fa94c0ed00f0ef353d1d8fd45061ab7c346d7054 SHA256 247e420151129379cd09a832be3f4206c0d63e2e34a57f123a3c56e2bbf493bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/hgsvn/hgsvn-0.1.5.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,21 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/hgsvn/hgsvn-0.1.4.ebuild,v 1.1 2008/01/19 18:21:08 cedk Exp $
+
+NEED_PYTHON=2.4
+
+inherit distutils
+
+DESCRIPTION="A set of scripts to work locally on Subversion checkouts using Mercurial"
+HOMEPAGE="http://cheeseshop.python.org/pypi/hgsvn"
+SRC_URI="http://cheeseshop.python.org/packages/source/h/hgsvn/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND="${DEPEND}
+	dev-util/subversion
+	|| ( >=dev-lang/python-2.5 dev-python/elementtree )"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/svk/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,2 @@
+DIST SVK-v2.0.2.tar.gz 445041 RMD160 5eeaa465355cd3026f7230b120d83051705fc86d SHA1 8d691c6e6b914e5b8e71ba75dee60b61fe90e54f SHA256 405b59c6398c50356f036292668bd653f43e296a3b301be64c90ffcd0e169530
+EBUILD svk-2.0.2.ebuild 2198 RMD160 de6b1c40f9f44020df10527f7be04b5ef82bd472 SHA1 65be4722f252a2046c38c09ad908da57953210ff SHA256 b22a6c83a9ae43c3b020bf185c1ead0606bf924cddf9bf6c219562ee98a67689
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-util/svk/svk-2.0.2.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,79 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit eutils perl-module bash-completion
+
+MY_PV="v${PV}"
+MY_P="${PN/svk/SVK}-${MY_PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="A decentralized version control system"
+SRC_URI="mirror://cpan/authors/id/C/CL/CLKAO/${MY_P}.tar.gz"
+HOMEPAGE="http://svk.elixus.org/"
+
+SLOT="0"
+LICENSE="|| ( Artistic GPL-2 )"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="crypt nls pager patch log4p bash-completion"
+
+DEPEND="
+	>=dev-lang/perl-5.8.7
+	>=dev-util/subversion-1.3.0
+        >=dev-perl/version-0.68
+        dev-perl/Algorithm-Annotate
+        >=dev-perl/Algorithm-Diff-1.1901
+        >=dev-perl/YAML-Syck-0.60
+        >=dev-perl/Data-Hierarchy-0.30
+        >=dev-perl/PerlIO-via-dynamic-0.11
+        >=dev-perl/PerlIO-via-symlink-0.02
+        dev-perl/IO-Digest
+        >=dev-perl/SVN-Simple-0.27
+        dev-perl/URI
+        >=dev-perl/PerlIO-eol-0.13
+        >=dev-perl/Class-Autouse-1.15
+        dev-perl/App-CLI
+        dev-perl/List-MoreUtils
+        dev-perl/Class-Accessor
+        dev-perl/Class-Data-Inheritable
+        >=dev-perl/Path-Class-0.16
+        dev-perl/UNIVERSAL-require
+        dev-perl/TermReadKey
+        >=virtual/perl-File-Temp-0.17
+        >=virtual/perl-Getopt-Long-2.35
+        dev-perl/Pod-Escapes
+        dev-perl/Pod-Simple
+        >=virtual/perl-File-Spec-3.19
+	nls? (
+		>=dev-perl/locale-maketext-lexicon-0.62
+		>=dev-perl/Locale-Maketext-Simple-0.16
+	)
+	pager? ( dev-perl/IO-Pager )
+        log4p? ( dev-perl/Log-Log4perl )
+	>=dev-perl/SVN-Mirror-0.71
+	patch? (
+		dev-perl/Compress-Zlib
+		dev-perl/FreezeThaw
+	)
+	crypt? ( app-crypt/gnupg )
+        dev-perl/TimeDate"
+RDEPEND="${DEPEND}"
+
+
+pkg_setup() {
+	if ! perl -MSVN::Core < /dev/null 2> /dev/null; then
+		eerror "SVN::Core missing or outdated. Please emerge \
+		dev-util/subversion ith the perl USE flag."
+		die "Need Subversion compiled with Perl bindings"
+	fi
+}
+
+src_install() {
+	perl-module_src_install
+	if use bash-completion; then
+		dobin contrib/svk-completion.pl
+		echo "complete -C ${DESTTREE}/bin/svk-completion.pl -o default svk" \
+			> svk-completion
+		dobashcompletion svk-completion
+	fi
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail-client/alpine/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,3 @@
+DIST all.patch.gz 170342 RMD160 81647cc792f26da49ef6c5263ff0a5bc55e89d07 SHA1 c8a0daa6b98020f8fc21a68f99e87cc90711aee6 SHA256 d6908fcb25f18f42906c1793b741390f88b48adf5764ba33848f9b4a5018ead0
+DIST alpine-1.10.tar.bz2 4861929 RMD160 03f216b57517f377b7995d913f7d333242f70ab3 SHA1 fe8f83ad9f5b8e528ee61960877443d518af9eed SHA256 8c642829d19b776c153cc8e1d93992dc7986d44f687100823dbb51fe78116765
+EBUILD alpine-1.10.ebuild 3322 RMD160 04b6a9ac17309984df37944c3f61a7134c886891 SHA1 82f5ff5964b6f56083ceb0998365a04ed3caafe9 SHA256 b81e68f03562d44f5de0391fa0a2695be0bb9b7b5b835e69119a3137f6b8cdbd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail-client/alpine/alpine-1.10.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,142 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils 
+
+DESCRIPTION="alternativly licensed pine with full UTF-8 support"
+HOMEPAGE="http://www.washington.edu/alpine/
+	  http://staff.washington.edu/chappa/alpine/"
+SRC_URI="ftp://ftp.cac.washington.edu/alpine/${P}.tar.bz2
+	 chappa? ( http://staff.washington.edu/chappa/alpine/patches/${P}/all.patch.gz )"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~x86-fbsd"
+IUSE="chappa doc kerberos ldap nls spell ssl threads userland_BSD onlyalpine passfile"
+
+DEPEND="virtual/pam
+	>=sys-libs/ncurses-5.1
+	ssl? ( dev-libs/openssl )
+	ldap? ( net-nds/openldap )
+	kerberos? ( app-crypt/mit-krb5 )
+	spell? ( app-text/aspell )"
+RDEPEND="${DEPEND}
+	app-misc/mime-types
+	!onlyalpine? ( !app-editors/pico )
+	!onlyalpine? ( !mail-client/pine )
+	!<=net-mail/uw-imap-2004g"
+
+maildir_warn() {
+		einfo
+		einfo "This build of alpine has Maildir support built in as"
+		einfo "part of the chappa-all patch."
+		einfo
+		einfo "If you have a maildir at ~/Maildir it will be your"
+		einfo "default INBOX. The path may be changed with the"
+		einfo "\"maildir-location\" setting in alpine."
+		einfo
+		einfo "To use /var/spool/mail INBOX again, set"
+		einfo "\"disable-these-drivers=md\" in your .pinerc file."
+		einfo
+		einfo "Alternately, you might want to read following webpage, which explains how to"
+		einfo "use multiple mailboxes simultaneously:"
+		einfo
+		einfo "http://www.math.washington.edu/~chappa/pine/pine-info/collections/incoming-folders/"
+		einfo
+}
+
+pkg_setup() {
+	if use chappa; then
+		maildir_warn
+	fi
+}
+
+src_unpack() {
+	unpack ${A}
+	if use chappa; then
+		epatch ${WORKDIR}/all.patch
+	fi
+}
+
+src_compile() {
+	local myconf="--without-tcl --with-system-pinerc=/etc/pine.conf --with-system-fixed-pinerc=/etc/pine.conf.fixed"
+	if use ssl; then
+		myconf="${myconf} --with-ssl-certs-dir=/etc/ssl/certs"
+	else
+		myconf="${myconf} --without-ssl"
+	fi
+	if use ldap; then
+		myconf="${myconf}"
+	else
+		myconf="${myconf} --without-ldap"
+	fi
+	if user passfile; then
+		myconf="${myconf} --with-passfile=.pinepwd"
+	fi
+	if use kerberos; then
+		myconf="${myconf}"
+	else
+		myconf="${myconf} --without-krb5"
+	fi
+	if use threads; then
+		myconf="${myconf}"
+	else
+		myconf="${myconf} --without-pthread"
+	fi
+	if use spell; then
+		myconf="${myconf} --with-interactive-spellcheck=/usr/bin/aspell"
+	fi
+	if ! use nls; then
+		myconf="${myconf} --disable-nls"
+	fi
+	econf ${myconf} || die "configure problem"
+	if use userland_BSD; then
+		make
+	else
+		emake
+	fi
+}
+
+src_install() {
+	if use onlyalpine; then
+		dobin alpine/alpine
+		doman doc/alpine.1
+	else
+		if use userland_BSD; then
+			make DESTDIR=${D} install
+		else	
+			emake DESTDIR=${D} install
+		fi
+
+		doman doc/rpdump.1 doc/rpload.1 
+	fi
+
+	dodoc NOTICE
+	if use chappa; then
+		dodoc README.maildir
+	fi
+	
+	if use doc; then
+		dodoc README doc/brochure.txt doc/tech-notes.txt
+		docinto imap
+		dodoc imap/docs/*.txt imap/docs/CONFIG imap/docs/RELNOTES
+
+		docinto imap/rfc
+		dodoc imap/docs/rfc/*.txt
+
+		docinto html/tech-notes
+		dohtml -r doc/tech-notes/
+	fi
+}
+
+pkg_postinst() {
+	elog
+	if use spell; then
+		elog "In order to use spell checking"
+		elog "  emerge app-dicts/aspell-\<your_langs\>"
+		elog "and setup alpine with:"
+		elog "  Speller = /usr/bin/aspell -c"
+		elog
+	fi
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail-filter/imapfilter/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,4 @@
+AUX imapfilter-2.0.10-deprecated.patch 1075 RMD160 778993216a50ec50bf10efda5d7454d79461241f SHA1 91f0b80bb4bb060b3b5c0cc802c328c944ea7841 SHA256 c3b13a47c1e1a8e0e158605ac4251321a573d24ce9c72a6e5d429244788efbb2
+DIST imapfilter-2.0.10.tar.bz2 41900 RMD160 cb518f7da27aa1eef9935ee73ccedf9a1f778ebc SHA1 337a495471455e0b51bc82e591096db781e1eda3 SHA256 10c89feb890003c3092477a962dfd342b899691f6583f6e966c4e8a65f2d5f5e
+EBUILD imapfilter-2.0.10.ebuild 927 RMD160 aa5e2dacf27a4fd9c2d298652b6d861b57b91842 SHA1 fad4713a11ee4360563a37f434fe90f575ceb9b2 SHA256 ea951796bf3058658c56e6ed892ba2fa90a17d11c08c07015c7001dd11e69d54
+MISC imapfilter-2.0.10.ebuild~ 929 RMD160 ee8672f5fec27b003e6cbe835aaeb66b95d47dca SHA1 dc11c504b04b0f5921406198bb82e62b41dc9aea SHA256 53758f29e68edaf7280234e68ee3b7f1703008c3ab96642273c9d9b2e901689e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail-filter/imapfilter/files/imapfilter-2.0.10-deprecated.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,36 @@
+diff -u imapfilter-2.0.10.orig/core.c imapfilter-2.0.10/core.c
+--- imapfilter-2.0.10.orig/core.c	2008-02-16 23:00:03.000000000 +0100
++++ imapfilter-2.0.10/core.c	2008-03-03 14:20:16.000000000 +0100
+@@ -1037,7 +1037,7 @@
+ luaopen_ifcore(lua_State *lua)
+ {
+ 
+-	luaL_openlib(lua, "ifcore", ifcorelib, 0);
++	luaL_register(lua, "ifcore", ifcorelib);
+ 
+ 	return 1;
+ }
+diff -u imapfilter-2.0.10.orig/pcre.c imapfilter-2.0.10/pcre.c
+--- imapfilter-2.0.10.orig/pcre.c	2008-02-16 23:00:03.000000000 +0100
++++ imapfilter-2.0.10/pcre.c	2008-03-03 14:21:16.000000000 +0100
+@@ -238,7 +238,7 @@
+ luaopen_ifre(lua_State *lua)
+ {
+ 
+-	luaL_openlib(lua, "ifre", ifrelib, 0);
++	luaL_register(lua, "ifre", ifrelib);
+ 
+ 	return 1;
+ }
+diff -u imapfilter-2.0.10.orig/system.c imapfilter-2.0.10/system.c
+--- imapfilter-2.0.10.orig/system.c	2008-02-16 23:00:03.000000000 +0100
++++ imapfilter-2.0.10/system.c	2008-03-03 14:20:37.000000000 +0100
+@@ -298,7 +298,7 @@
+ luaopen_ifsys(lua_State *lua)
+ {
+ 
+-	luaL_openlib(lua, "ifsys", ifsyslib, 0);
++	luaL_register(lua, "ifsys", ifsyslib);
+ 
+ 	return 1;
+ }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mail-filter/imapfilter/imapfilter-2.0.10.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,36 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/imapfilter/imapfilter-2.0.9.ebuild,v 1.1 2008/02/13 07:08:50 opfer Exp $
+
+inherit eutils
+
+DESCRIPTION="An IMAP mail filtering utility"
+HOMEPAGE="http://imapfilter.hellug.gr"
+SRC_URI="http://imapfilter.hellug.gr/source/${P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="virtual/libc
+	dev-libs/openssl
+	dev-libs/libpcre
+	>=dev-lang/lua-5.1"
+
+src_unpack() {
+	unpack ${A}
+	cd "${WORKDIR}"/${P}
+    epatch ${FILESDIR}/${P}-deprecated.patch || die "epatch failed"
+	# econf not possible
+	./configure -p /usr -b /usr/bin -s /usr/share/imapfilter -m /usr/share/man
+}
+
+src_compile() {
+	emake MYCFLAGS="${CFLAGS}" || die "parallel make failed"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	dodoc NEWS README sample.config.lua sample.extend.lua
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-mail/up-imapproxy/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,3 @@
+AUX imapproxy.rc6 505 RMD160 f217612eb25c3dab81ce6d206f2a0681169db18d SHA1 deaa2f55e90fe57a97ac1032eba542ec72e5840d SHA256 b0d2369d4f311d37834145887e358c98e65451505985e2457dae9609f72579dd
+DIST up-imapproxy-1.2.6.tar.gz 134745 RMD160 4613acd3fcacdc40905ec8692afd3a4e9563258c SHA1 75f497e3fda44ff1526c46ac93e5c863bf6e0963 SHA256 2f5e841bc6c84799f890d24b984726efb7cce26c2ad95923864ddf0353fa3b01
+EBUILD up-imapproxy-1.2.6.ebuild 1254 RMD160 7c2265c6088dd188b2c1a445597e87a2d7291166 SHA1 2a355c6750b6f9fc21c8bfbb970d44e34151bda2 SHA256 8524ff07543195adb9f2dbb00227975f646ef209259db2e5a8ddeacae05a018b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-mail/up-imapproxy/files/imapproxy.rc6	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/up-imapproxy/files/imapproxy.rc6,v 1.2 2004/07/14 23:52:37 agriffis Exp $
+
+depend() {
+	use logger
+	need net
+}
+
+start() {
+	ebegin "Starting imapproxy"
+	start-stop-daemon --start --quiet --exec /usr/sbin/imapproxyd
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping imapproxy"
+	start-stop-daemon --stop --quiet --exec /usr/sbin/imapproxyd
+	eend $?
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-mail/up-imapproxy/up-imapproxy-1.2.6.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/up-imapproxy/up-imapproxy-1.2.5_rc2.ebuild,v 1.3 2007/02/06 13:08:54 blubb Exp $
+
+inherit eutils
+
+DESCRIPTION="Proxy IMAP transactions between an IMAP client and an IMAP server."
+HOMEPAGE="http://www.imapproxy.org/"
+SRC_URI="http://www.imapproxy.org/downloads/${P/_/}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="kerberos ssl tcpd"
+
+DEPEND=">=sys-libs/ncurses-5.1
+	kerberos? ( virtual/krb5 )
+	ssl? ( >=dev-libs/openssl-0.9.6 )
+	tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
+
+S="${WORKDIR}/${P/_/}"
+src_unpack() {
+	unpack ${A} && cd "${S}"
+	sed -i -e 's:in\.imapproxyd:imapproxyd:g'  \
+		README Makefile.in include/imapproxy.h || die "sed failed"
+}
+
+src_compile() {
+	econf \
+		$(use_with kerberos krb5) \
+		$(use_with ssl openssl) \
+		$(use_with tcpd libwrap) \
+		|| die "econf failed"
+
+	emake || die "emake failed"
+}
+
+src_install() {
+	dosbin bin/imapproxyd bin/pimpstat || die "dosbin failed"
+
+	insinto /etc
+	doins scripts/imapproxy.conf || die "doins failed"
+
+	newinitd "${FILESDIR}"/imapproxy.rc6 imapproxy || die "initd failed"
+
+	dodoc ChangeLog README README.known_issues README.ssl
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-misc/e1000/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,2 @@
+DIST e1000-7.6.15.5.tar.gz 244702 RMD160 fa409bd3d9f3815290deb7bc2495a3f41916fbf6 SHA1 9bf986a1ed9b3e665cbdcdf662bfa9d59f090736 SHA256 9a62889988e0973fdb8013db00205e9ea24f4e4d68b5fc5d6d2a23a7b0b9b7b6
+EBUILD e1000-7.6.15.5.ebuild 1378 RMD160 d36ce4380b793c12c5e15b1b994e53c3aca38fb4 SHA1 0a1df1551fca9cccff44672524b012dfa472cce6 SHA256 9c8e7d27e571b2ef41b840803c46a2e3f9068874054809fee2ff3795032c1ecd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/net-misc/e1000/e1000-7.6.15.5.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,49 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Kernel driver for Intel Pro/1000 ethernet adapters."
+HOMEPAGE="http://support.intel.com/support/network/adapter/1000/index.htm"
+LICENSE="GPL-2"
+DEPEND="virtual/linux-sources"
+
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+
+src_unpack() {
+    unpack ${A}
+    cd ${S}/src
+    # rem out the DEPVER line, since it would cause a sandbox violation and
+    # since it is only needed by RPM ;-)
+    sed -i "/^DEPVER :=/ d" Makefile
+}
+
+
+src_compile() {
+    check_KV
+    cd "${S}/src"
+
+    # workaround needed for some ethernet controllers to work with low end switches
+    if [[ ${USE_INCOMPATIBLE_SWITCH} ]]
+        then CFLAGS_EXTRA="CFLAGS_EXTRA=-DE_1000_MASTER_SLAVE=1"
+        else CFLAGS_EXTRA=""
+    fi
+
+    make ${CFLAGS_EXTRA} KSRC=/usr/src/linux
+}
+
+
+src_install() {
+    insinto "/lib/modules/${KV}/kernel/drivers/net/e1000"
+    doins "${S}/src/e1000.ko"
+    doman e1000.7
+    dodoc LICENSE README SUMS e1000.spec ldistrib.txt ${FILESDIR}/README.Gentoo
+    einfo ""
+    einfo "In case you have problems when loading the module, try to run depmod -A"
+    einfo ""
+    einfo "If you experience problems with low-end switches, read"
+    einfo "/usr/share/doc/${PF}/README.Gentoo.gz for a possible workaround"
+    einfo ""
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-block/noflushd/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,5 @@
+AUX noflushd-2.7.4-SCSI.patch 420 RMD160 dfa4bda2d4cf83eb9e50d92b2b641a38c2f6b3ca SHA1 49d680916160cc1258531e3bbe3469da49a88d0d SHA256 89a80449b3123874732ec9a0b2f315fe26b98b673882256c76cd0e3d882520ec
+AUX noflushd.confd 356 RMD160 254e729eeef41c07805f145abe1a8f4831928513 SHA1 15ed3819b8ac677e9fa637d2fd65179b2833ae72 SHA256 373605b32c82970239c694fae3e698a079834090f59b7255b984de4c07671cd7
+AUX noflushd.rc6 776 RMD160 d3012b284160d61b5f446a967b997e65963b279b SHA1 35b4dbd0d46ede89474a25824b9140f17a02dfe9 SHA256 de5c4ca015cb23826742f55d56c1cba4b4a9d019405abec50ff49de95c1a5a18
+DIST noflushd-2.7.4.tar.gz 149686 RMD160 c009cb8d288e482e5b516f135a168315cfc799e7 SHA1 32cbb38def18c68329b5451e53f7e25816b77ca3 SHA256 4118451009808ba18bc773b872ac43f1e4244a09d39126210860f846248e2360
+EBUILD noflushd-2.7.4.ebuild 1399 RMD160 cc7d2ce317d1e2f07a9d7fb81b20bc6b03c35768 SHA1 2281b0a07a489c09f7123b8db5459a7fa45d7904 SHA256 7d82c07a0fe9255d674de7dccad1a2273b768c24aa4f19d3d4d30d1b2dd6a8fb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-block/noflushd/files/noflushd-2.7.4-SCSI.patch	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,11 @@
+--- noflushd-2.7.4/src/spindown.c	2004-02-27 14:41:05.000000000 +0100
++++ noflushd-2.7.4+scsi/src/spindown.c	2004-10-23 00:02:33.185395308 +0200
+@@ -39,7 +39,7 @@
+ #include <errno.h>
+ 
+ /* Indicate whether SCSI support was enabled. */
+-int nfd_do_scsi = 0;
++int nfd_do_scsi = 1;
+ 
+ /* IDE knows two versions of several commands. Some versions work on
+  * old drives, some on new ones. We keep trying until we run out of
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-block/noflushd/files/noflushd.confd	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,11 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.confd,v 1.3 2004/07/15 00:45:49 agriffis Exp $
+
+# Config file for /etc/init.d/noflushd
+
+#TIMEOUT=60
+#DISKS=/dev/discs/disc0/disc
+#EXTRA=
+#NOFLUSHD_OPTS="-n $TIMEOUT $DISKS $EXTRA"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-block/noflushd/files/noflushd.rc6	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/files/noflushd.rc6,v 1.6 2004/07/15 00:45:49 agriffis Exp $
+
+# NB: Config is in /etc/conf.d/noflushd
+
+depend() {
+	need localmount
+}
+
+checkconfig() {
+	if [ -z "$NOFLUSHD_OPTS" ] ; then
+		eerror "You need to setup your NOFLUSHD_OPTS first"
+		eerror "Check that you've adjusted /etc/conf.d/noflushd for your needs"
+		return 1
+	fi
+}
+
+start() {
+	checkconfig || return 1
+	ebegin "Starting noflushd"
+	start-stop-daemon --start --quiet --exec /usr/sbin/noflushd -- $NOFLUSHD_OPTS
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping noflushd"
+	start-stop-daemon --stop --quiet --pidfile /var/run/noflushd.pid
+	eend $?
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-block/noflushd/noflushd-2.7.4.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,52 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/noflushd/noflushd-2.7.3.ebuild,v 1.5 2004/09/03 21:03:24 pvdabeel Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="A daemon to spin down your disks and force accesses to be cached"
+HOMEPAGE="http://noflushd.sourceforge.net"
+SRC_URI="mirror://sourceforge/noflushd/${P}.tar.gz"
+RESTRICT="nomirror"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64 ppc"
+IUSE="SCSI"
+SLOT="0"
+
+DEPEND="virtual/libc"
+
+src_compile() {
+
+	if use SCSI; then
+		ewarn "Enabling SCSI support - you do this on your own risk!"
+		epatch ${FILESDIR}/${P}-SCSI.patch
+	fi
+
+	# Replace -O[2-9] flags to keep the executable small
+	replace-flags -O[2-9] -Os
+
+	./configure --prefix=/usr \
+		--host=${CHOST} \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--with-docdir=/usr/share/doc/${PF} || die "configure problem"
+	emake || die "compile problem"
+}
+
+src_install () {
+	dosbin src/noflushd
+	doman man/noflushd.8
+	dodoc README NEWS
+
+	exeinto /etc/init.d ; newexe ${FILESDIR}/noflushd.rc6 noflushd
+	insinto /etc/conf.d ; newins ${FILESDIR}/noflushd.confd noflushd
+}
+
+pkg_postinst() {
+	einfo 'Run "rc-update add noflushd default" to add it to the'
+	einfo "default runlevel."
+
+	ewarn "noflushd works reliably with IDE devices only."
+	ewarn "It has possible problems with reiserfs, too."
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-libs/libstatgrab/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,2 @@
+DIST libstatgrab-0.16.tar.gz 462691 RMD160 1ded8eb8b213b9c86ad89031e4501e0546181f9a SHA1 233c752dd26e0cc16e88b3da13bcf63d733637c8 SHA256 8a7adb6f3e322c6974d7ca70abd16dd5d5755d108689f6c77f3b42a1ad3aa184
+EBUILD libstatgrab-0.16.ebuild 967 RMD160 70064d425e388a435a6d0ae501a3dfa393f1c8f5 SHA1 59166713f3ff8562d5c439a672e07c224c45f16f SHA256 c82e10ac31686acc095a0a14552dc3cfeefd0f9864da628321e39001ef42e3ba
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sys-libs/libstatgrab/libstatgrab-0.16.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,31 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libstatgrab/libstatgrab-0.11.ebuild,v 1.1 2004/12/07 13:55:38 dragonheart Exp $
+
+DESCRIPTION="Provides cross platform access to statistics about the system on which it's run."
+HOMEPAGE="http://www.i-scream.org/libstatgrab/"
+SRC_URI="http://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 LGPL-2.1 )"
+SLOT=0
+KEYWORDS="~x86 ~ppc"
+IUSE=""
+RDEPEND=">=sys-libs/ncurses-5.4-r1
+	virtual/libc"
+
+DEPEND="${RDEPEND}
+	sys-apps/gawk
+	sys-apps/grep
+	sys-devel/gcc
+	dev-util/pkgconfig"
+
+src_compile() {
+	econf --disable-setgid-binaries --disable-setuid-binaries \
+		--disable-deprecated --with-ncurses || die "econf failed"
+	emake || die "emake failed"
+}
+
+src_install() {
+	emake DESTDIR=${D} install || die "einstall failed"
+	dodoc ChangeLog PLATFORMS NEWS AUTHORS README
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/www-apache/mod_wsgi/Manifest	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,3 @@
+AUX 70_mod_wsgi.conf 100 RMD160 60c74317eded93c727cc5ebb74e33f1e040d4187 SHA1 cf23e48a59c624cfc021dda43f3d16a899f4be3a SHA256 a4c1b49eb8c6d6609ad8ae8a9f8d6621f9f2bbc2c99addef3e2d6404ac364ed7
+DIST mod_wsgi-2.0.tar.gz 96622 RMD160 9e6443b8a8c3431c7d484725aa4fb848abade275 SHA1 d9f03ef5ff099df0e6c18cb0ed635dbbc235dcd5 SHA256 6ccf94e88ecce945fe1c7bf1dd77abc725c8623b96b93a0cd9e3d0692b30500b
+EBUILD mod_wsgi-2.0.ebuild 800 RMD160 81e98e5464763ab3412a2eb473b47e2bc80d8c3f SHA1 7f6a0ab55954f5e37c7c496fd82b1fe98389718d SHA256 0623cc0fbb47eb77d40ac44e4510ee724af1bae4f8616ffd1c47a456ad05c324
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/www-apache/mod_wsgi/files/70_mod_wsgi.conf	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,5 @@
+<IfDefine WSGI>
+LoadModule wsgi_module modules/mod_wsgi.so
+</IfDefine>
+
+# vim: ts=4 filetype=apache
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/www-apache/mod_wsgi/mod_wsgi-2.0.ebuild	Sat Mar 22 03:58:33 2008 +0100
@@ -0,0 +1,33 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_wsgi/mod_wsgi-2.0.ebuild,v 1.2 2008/01/31 19:16:52 hollow Exp $
+
+inherit apache-module
+
+MY_P="${P/_r/}"
+
+DESCRIPTION="An Apache2 module for running Python WSGI applications."
+HOMEPAGE="http://code.google.com/p/modwsgi/"
+SRC_URI="http://modwsgi.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+APACHE2_MOD_CONF="70_${PN}"
+APACHE2_MOD_DEFINE="WSGI"
+
+DOCFILES="README"
+
+need_apache2
+
+src_compile() {
+    econf --with-apxs=${APXS} || die "econf failed"
+    emake OPT="$(${APXS} -q CFLAGS) -fPIC" || die "econf failed"
+}