ports/82527: New port: databases/pgmemcache Provides a PostgreSQL interface to memcached

Jacques Marneweck jacques at powertrip.co.za
Fri Jun 24 13:50:20 UTC 2005


The following reply was made to PR ports/82527; it has been noted by GNATS.

From: Jacques Marneweck <jacques at powertrip.co.za>
To: Vasil Dimov <vd at datamax.bg>
Cc: Jacques Marneweck <jacques at powertrip.co.za>,
  FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: ports/82527: New port: databases/pgmemcache Provides a PostgreSQL interface to memcached
Date: Sat, 25 Jun 2005 01:45:16 +1200

 --ReaqsoxgOBHFXBhH
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Wed, Jun 22, 2005 at 06:42:09PM +0300, Vasil Dimov wrote:
 > Yes, if this port can run without memcached being installed on
 > the current machine, then it shouldn't be listed in RUN_DEPENDS=
 
 Hi Vasil,
 
 I've attached the updated port for pgmemcahe to this message.
 
 Regards
 --jm
 
 --
 Jacques Marneweck
 http://www.powertrip.co.za/blog/
 
 --ReaqsoxgOBHFXBhH
 Content-Type: application/x-shar
 Content-Disposition: attachment; filename="pgmemcache-1.0.shar"
 Content-Transfer-Encoding: quoted-printable
 
 # This is a shell archive.  Save it in a file, remove anything before=0A# t=
 his line, and then unpack it by entering "sh file".  Note, it may=0A# creat=
 e directories; files and directories will be owned by you and=0A# have defa=
 ult permissions.=0A#=0A# This archive contains:=0A#=0A#	pgmemcache=0A#	pgme=
 mcache/Makefile=0A#	pgmemcache/distinfo=0A#	pgmemcache/pkg-descr=0A#	pgmemc=
 ache/pkg-plist=0A#	pgmemcache/pkg-message=0A#=0Aecho c - pgmemcache=0Amkdir=
  -p pgmemcache > /dev/null 2>&1=0Aecho x - pgmemcache/Makefile=0Ased 's/^X/=
 /' >pgmemcache/Makefile << 'END-of-pgmemcache/Makefile'=0AX# New ports coll=
 ection makefile for:	pgmemcache=0AX# Date created:		June 22, 2005=0AX# Whom=
 :			Jacques Marneweck <jacques at php.net>=0AX#=0AX# $FreeBSD$=0AX#=0AX=0AXPOR=
 TNAME=3D	pgmemcache=0AXPORTVERSION=3D	1.0=0AXCATEGORIES=3D	databases=0AXMAS=
 TER_SITES=3D	${MASTER_SITE_PGSQL}=0AXMASTER_SITE_SUBDIR=3Dprojects/pgFoundr=
 y/pgmemcache=0AX=0AXMAINTAINER=3D	jacques at php.net=0AXCOMMENT=3D	Provides a =
 PostgreSQL interface to memcached=0AX=0AXRUN_DEPENDS=3D	${PREFIX}/lib/libme=
 mcache.so:${PORTSDIR}/databases/libmemcache \=0AX		postgres:${PORTSDIR}/${P=
 OSTGRESQL_PORT}=0AXBUILD_DEPENDS=3D	pmk:${PORTSDIR}/devel/pmk \=0AX		${PREF=
 IX}/lib/libmemcache.so:${PORTSDIR}/databases/libmemcache \=0AX		postgres:${=
 PORTSDIR}/${POSTGRESQL_PORT}=0AX=0AXNO_FILTER_SHLIBS=3D	yes=0AX=0AXUSE_BZIP=
 2=3D	yes=0AXUSE_GMAKE=3D	yes=0AXUSE_PGSQL=3D	yes=0AX=0AXPOSTGRESQL_PORT?=3D=
 	databases/postgresql${PGSQL_VER}-server=0AXPGSQL_PORTDIR?=3D		${PORTSDIR}/=
 ${POSTGRESQL_PORT}=0AXPGSQL_WRKSRC_CMD=3D	cd ${PGSQL_PORTDIR} && ${MAKE} -V=
  WRKSRC=0AX=0AX=0AX.include <bsd.port.pre.mk>=0AX# Setting/finding PostgreS=
 QL version we want.=0AX.if exists(${LOCALBASE}/bin/postmaster)=0AXPGSQL_VER=
 !=3D	${LOCALBASE}/bin/postmaster -V | \=0AX		${SED} -n 's/postmaster.*Postg=
 reSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'=0AX.elif exists(${=
 LOCALBASE}/bin/pg_config)=0AXPGSQL_VER!=3D	${LOCALBASE}/bin/pg_config --ver=
 sion | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\=
 1\2/p'=0AX.else=0AXPGSQL_VER=3D	${DEFAULT_PGSQL_VER}=0AX.endif=0AX=0AXdo-co=
 nfigure:=0AX	cd ${WRKSRC}; ${LOCALBASE}/bin/pmk ${PMKARGS}=0AX=0AXdo-instal=
 l:=0AX	${INSTALL_SCRIPT} ${WRKSRC}/libpgmemcache.a ${PREFIX}/pgsql/lib/libp=
 gmemcache.a=0AX	${INSTALL_SCRIPT} ${WRKSRC}/libpgmemcache.so.0 ${PREFIX}/pg=
 sql/lib/libpgmemcache.so.0=0AX	${INSTALL_SCRIPT} ${WRKSRC}/libpgmemcache.so=
  ${PREFIX}/pgsql/lib/libpgmemcache.so=0AX	${INSTALL_DATA} ${WRKSRC}/pgmemca=
 che.sql ${PREFIX}/share/postgresql/pgmemcache.sql=0AX=0AXpost-install:=0AX	=
 @${CAT} ${PKGMESSAGE}=0AX=0AX.include <bsd.port.post.mk>=0AEND-of-pgmemcach=
 e/Makefile=0Aecho x - pgmemcache/distinfo=0Ased 's/^X//' >pgmemcache/distin=
 fo << 'END-of-pgmemcache/distinfo'=0AXMD5 (pgmemcache-1.0.tar.bz2) =3D 5e26=
 2d4d4b1f73ae41724630b3a041ed=0AXSIZE (pgmemcache-1.0.tar.bz2) =3D 10967=0AE=
 ND-of-pgmemcache/distinfo=0Aecho x - pgmemcache/pkg-descr=0Ased 's/^X//' >p=
 gmemcache/pkg-descr << 'END-of-pgmemcache/pkg-descr'=0AXpgmemcache is a Pos=
 tgreSQL interface to memcached(8): a high-performance,=0AXdistributed memor=
 y object caching system. It allows functions and triggers to=0AXtalk to a m=
 emcached(8) cluster and provides real time cache coherency.=0AX=0AXWWW: htt=
 p://people.FreeBSD.org/~seanc/pgmemcache/=0AEND-of-pgmemcache/pkg-descr=0Ae=
 cho x - pgmemcache/pkg-plist=0Ased 's/^X//' >pgmemcache/pkg-plist << 'END-o=
 f-pgmemcache/pkg-plist'=0AXlib/pgsql/libpgmemcache.a=0AXlib/pgsql/libpgmemc=
 ache.so.0=0AXlib/pgsql/libpgmemcache.so=0AXshare/postgresql/pgmemcache.sql=
 =0AEND-of-pgmemcache/pkg-plist=0Aecho x - pgmemcache/pkg-message=0Ased 's/^=
 X//' >pgmemcache/pkg-message << 'END-of-pgmemcache/pkg-message'=0AXTo get p=
 gmemcached working with a database use:=0AX=0AX% psql [mydbname] [pguser]=
 =0AX[mydbname]=3D# BEGIN;=0AX[mydbname]=3D# \i /usr/local/share/postgresql/=
 pgmemcache.sql=0AX[mydbname]=3D# COMMIT;=0AEND-of-pgmemcache/pkg-message=0A=
 exit=0A=0A
 --ReaqsoxgOBHFXBhH--



More information about the freebsd-ports-bugs mailing list