ports/73612: [new port] sysutils/p5-FreeBSD-Portindex

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Nov 6 14:10:11 UTC 2004


>Number:         73612
>Category:       ports
>Synopsis:       [new port] sysutils/p5-FreeBSD-Portindex
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 06 14:10:10 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Seaman
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Infracaninophile
>Environment:
System: FreeBSD happy-idiot-talk.infracaninophile.co.uk 4.10-STABLE FreeBSD 4.10-STABLE #86: Tue Oct 26 14:12:32 BST 2004 root at happy-idiot-talk.infracaninophile.co.uk:/usr/obj/usr/src/sys/HAPPY-IDIOT-TALK i386


	
>Description:

>From the pkg-descr:

cache-init, cache-update, find-updated and portindex are a set of perl
scripts built around the common core of the FreeBSD::Portindex
modules. Their use is to generate and maintain the ports INDEX or
INDEX-5 files speedily and efficiently. Ultimately they work in a very
similar way to the standard make index command, except that the
FreeBSD::Portindex tools keep a cache of the make describe output from
each port, and can update that cached data incrementally as the ports
tree itself is updated.

>How-To-Repeat:
	
>Fix:

	

--- p5-FreeBSD-Portindex.shar begins here ---
# 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-FreeBSD-Portindex
#	p5-FreeBSD-Portindex/distinfo
#	p5-FreeBSD-Portindex/pkg-descr
#	p5-FreeBSD-Portindex/Makefile
#	p5-FreeBSD-Portindex/pkg-plist
#
echo c - p5-FreeBSD-Portindex
mkdir -p p5-FreeBSD-Portindex > /dev/null 2>&1
echo x - p5-FreeBSD-Portindex/distinfo
sed 's/^X//' >p5-FreeBSD-Portindex/distinfo << 'END-of-p5-FreeBSD-Portindex/distinfo'
XMD5 (FreeBSD-Portindex-1.1.tar.bz2) = 04b721803667e4385f170421d1a32dc4
XSIZE (FreeBSD-Portindex-1.1.tar.bz2) = 21958
END-of-p5-FreeBSD-Portindex/distinfo
echo x - p5-FreeBSD-Portindex/pkg-descr
sed 's/^X//' >p5-FreeBSD-Portindex/pkg-descr << 'END-of-p5-FreeBSD-Portindex/pkg-descr'
X
Xcache-init, cache-update, find-updated and portindex are a set of perl
Xscripts built around the common core of the FreeBSD::Portindex
Xmodules. Their use is to generate and maintain the ports INDEX or
XINDEX-5 files speedily and efficiently. Ultimately they work in a very
Xsimilar way to the standard make index command, except that the
XFreeBSD::Portindex tools keep a cache of the make describe output from
Xeach port, and can update that cached data incrementally as the ports
Xtree itself is updated.
X
XWWW: http://www.infracaninophile.co.uk/portindex/
X
X- Matthew Seaman <m.seaman at infracaninophile.co.uk>
END-of-p5-FreeBSD-Portindex/pkg-descr
echo x - p5-FreeBSD-Portindex/Makefile
sed 's/^X//' >p5-FreeBSD-Portindex/Makefile << 'END-of-p5-FreeBSD-Portindex/Makefile'
X# New ports collection Makefile for:	FreeBSD::Portindex
X# Date created:		5 Nov 2004
X# Whom:			Matthew Seaman <m.seaman at infracaninophile.co.uk>
X#
X# $FreeBSD$
X
XPORTNAME=	FreeBSD-Portindex
XPORTVERSION=	1.1
XCATEGORIES=	sysutils perl5
XMASTER_SITES=	http://www.infracaninophile.co.uk/portindex/
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	m.seaman at infracaninophile.co.uk
XCOMMENT=	Incremental FreeBSD ports INDEX file generation
X
XBUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XUSE_BZIP2=	yes
XPERL_CONFIGURE=	yes
X
XCACHE_DIR?=	/var/db/portindex
XCACHE_OWNER?=	root
XCACHE_GROUP?=	operator
XCACHE_MODE?=	0775
X
XCFG_FILE=	portindex.cfg
X
XMAN1=		find-updated.1 cache-init.1 cache-update.1 portindex.1
X
X.include <bsd.port.pre.mk>
X
X##
X## Needs a recent version of perl, preferably 5.8.5, but 5.6.1 should work
X##
X.if ${PERL_LEVEL} < 500601
XIGNORE=		Port requires perl 5.6.x or (preferably) later.  Install lang/perl5.8 and try again
X.endif
X
X.if ${PERL_LEVEL} < 500800
XBUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable
X.endif
X
Xpost-install: install-conf install-cache
X
Xinstall-conf:
X	cd ${WRKSRC} ; \
X	${INSTALL_DATA} ${CFG_FILE}.sample ${PREFIX}/etc/${CFG_FILE}.sample
X	cd ${PREFIX}/etc ; \
X	if ${TEST} ! -f ${CFG_FILE} ; then \
X	    ${CP} -p ${CFG_FILE}.sample ${CFG_FILE} ; \
X	fi
X
X# Create the cache directory and make it writable by group 'operator'
X# by default.  Only if the cache directory doesn't already exist.
X# Have to do this by hand if installing via pkg.
X
Xinstall-cache:
X	if ${TEST} ! -d ${CACHE_DIR} ; then \
X	    ${MKDIR} ${CACHE_DIR} ; \
X	    ${CHOWN} ${CACHE_OWNER}:${CACHE_GROUP} ${CACHE_DIR} ; \
X	    ${CHMOD} ${CACHE_MODE} ${CACHE_DIR} ; \
X	fi
X
X.include <bsd.port.post.mk>
END-of-p5-FreeBSD-Portindex/Makefile
echo x - p5-FreeBSD-Portindex/pkg-plist
sed 's/^X//' >p5-FreeBSD-Portindex/pkg-plist << 'END-of-p5-FreeBSD-Portindex/pkg-plist'
Xbin/cache-init
Xbin/cache-update
Xbin/find-updated
Xbin/portindex
X at unexec if cmp -s %D/etc/portindex.cfg.sample %D/etc/portindex.cfg ; then rm -f %D/etc/portindex.cfg ; fi
Xetc/portindex.cfg.sample
X at exec [ ! -f %B/portindex.cfg ] && cp -p %B/%f %B/portindex.cfg || true
X%%SITE_PERL%%/FreeBSD/Portindex/Config.pm
X%%SITE_PERL%%/FreeBSD/Portindex/Port.pm
X%%SITE_PERL%%/FreeBSD/Portindex/Tree.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex/.packlist
X at dirrm %%SITE_PERL%%/FreeBSD/Portindex
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex
X at unexec rmdir %D/%%SITE_PERL%%/FreeBSD 2>/dev/null || true
X at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD 2>/dev/null || true
END-of-p5-FreeBSD-Portindex/pkg-plist
exit
--- p5-FreeBSD-Portindex.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list