From kappa@zombie.antar.bryansk.ru  Mon Apr  2 04:48:59 2001
Return-Path: <kappa@zombie.antar.bryansk.ru>
Received: from zombie.antar.bryansk.ru (zombie.antar.bryansk.ru [195.239.214.68])
	by hub.freebsd.org (Postfix) with ESMTP id 315B937B718
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Apr 2001 04:48:57 -0700 (PDT)
	(envelope-from kappa@zombie.antar.bryansk.ru)
Received: (from kappa@localhost)
	by zombie.antar.bryansk.ru (8.11.3/8.11.3) id f32BmlX18680;
	Mon, 2 Apr 2001 15:48:47 +0400 (MSD)
	(envelope-from kappa)
Message-Id: <200104021148.f32BmlX18680@zombie.antar.bryansk.ru>
Date: Mon, 2 Apr 2001 15:48:47 +0400 (MSD)
From: Alex Kapranoff <kappa@zombie.antar.bryansk.ru>
Reply-To: kappa@zombie.antar.bryansk.ru
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [New port] p5-Tie-Cache - LRU cache in memory
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         26289
>Category:       ports
>Synopsis:       [New port] p5-Tie-Cache - LRU cache in memory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 02 04:50:01 PDT 2001
>Closed-Date:    Fri Apr 6 21:30:03 PDT 2001
>Last-Modified:  Fri Apr 06 21:30:13 PDT 2001
>Originator:     Alex Kapranoff
>Release:        FreeBSD 4.3-RC i386
>Organization:
Inner Mongolia
>Environment:
System: FreeBSD zombie.antar.bryansk.ru 4.3-RC FreeBSD 4.3-RC #5: Mon Mar 26 12:42:11 MSD 2001 root@zombie.antar.bryansk.ru:/usr/src/sys/compile/ZOMBIE i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-Tie-Cache/
#	p5-Tie-Cache/Makefile
#	p5-Tie-Cache/distinfo
#	p5-Tie-Cache/pkg-comment
#	p5-Tie-Cache/pkg-descr
#	p5-Tie-Cache/pkg-plist
#
echo c - p5-Tie-Cache/
mkdir -p p5-Tie-Cache/ > /dev/null 2>&1
echo x - p5-Tie-Cache/Makefile
sed 's/^X//' >p5-Tie-Cache/Makefile << 'END-of-p5-Tie-Cache/Makefile'
X# New ports collection makefile for:	p5-Tie-Cache
X# Date created:				March 30th 2001
X# Whom:	      				Alex Kapranoff <kapr@crosswinds.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Tie-Cache
XPORTVERSION=	0.15
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Tie
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	kapr@crosswinds.net
X
XPERL_CONFIGURE=	yes
X
XINSTALL_TARGET=	pure_install
X
XMAN3=		Tie::Cache.3
XMANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
X
X.include <bsd.port.mk>
END-of-p5-Tie-Cache/Makefile
echo x - p5-Tie-Cache/distinfo
sed 's/^X//' >p5-Tie-Cache/distinfo << 'END-of-p5-Tie-Cache/distinfo'
XMD5 (Tie-Cache-0.15.tar.gz) = 8a1669f2621834dfb6cbf4a52eacbaf1
END-of-p5-Tie-Cache/distinfo
echo x - p5-Tie-Cache/pkg-comment
sed 's/^X//' >p5-Tie-Cache/pkg-comment << 'END-of-p5-Tie-Cache/pkg-comment'
XTie::Cache - LRU Cache in Memory through a tie interface
END-of-p5-Tie-Cache/pkg-comment
echo x - p5-Tie-Cache/pkg-descr
sed 's/^X//' >p5-Tie-Cache/pkg-descr << 'END-of-p5-Tie-Cache/pkg-descr'
XFrom README:
X    This module implements a least recently used (LRU) cache in memory
X    through a tie interface. Any time data is stored in the tied hash, that
X    key/value pair has an entry time associated with it, and as the cache
X    fills up, those members of the cache that are the oldest are removed to
X    make room for new entries.
X
X    So, the cache only "remembers" the last written entries, up to the size
X    of the cache. This can be especially useful if you access great amounts
X    of data, but only access a minority of the data a majority of the time.
X
X    The implementation is a hash, for quick lookups, overlaying a doubly
X    linked list for quick insertion and deletion. On a WinNT PII 300, writes
X    to the hash were done at a rate 3100 per second, and reads from the hash
X    at 6300 per second. Work has been done to optimize refreshing cache
X    entries that are frequently read from, code like $cache{entry}, which
X    moves the entry to the end of the linked list internally.
X
X-- Alex Kapranoff <kapr@crosswinds.net>
END-of-p5-Tie-Cache/pkg-descr
echo x - p5-Tie-Cache/pkg-plist
sed 's/^X//' >p5-Tie-Cache/pkg-plist << 'END-of-p5-Tie-Cache/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/Tie/Cache.pm
X@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/Tie 2>/dev/null || true
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache/.packlist
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache
END-of-p5-Tie-Cache/pkg-plist
exit

>Release-Note:
>Audit-Trail:

From: Alex Kapranoff <kappa@antar.bryansk.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/26289: [New port] p5-Tie-Cache - LRU cache in memory
Date: Tue, 3 Apr 2001 11:28:24 +0400

 Hm, the following patch should make pkg-plist more close to
 perfection.
 
 --- pkg-plist.orig	Tue Apr  3 11:25:42 2001
 +++ pkg-plist	Tue Apr  3 11:26:13 2001
 @@ -2,3 +2,4 @@
  @unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/Tie 2>/dev/null || true
  lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache/.packlist
  @dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie/Cache
 +@unexec rmdir lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Tie 2>/dev/null || true
 -- 
 Alex Kapranoff,
 +7(0832)791845
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Fri Apr 6 21:30:03 PDT 2001 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26289 
>Unformatted:
