diff options
-rw-r--r-- | ports-mgmt/p5-FreeBSD-Portindex/Makefile | 65 | ||||
-rw-r--r-- | ports-mgmt/p5-FreeBSD-Portindex/distinfo | 2 | ||||
-rw-r--r-- | ports-mgmt/p5-FreeBSD-Portindex/pkg-descr | 13 | ||||
-rw-r--r-- | ports-mgmt/p5-FreeBSD-Portindex/pkg-plist | 15 | ||||
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/p5-FreeBSD-Portindex/Makefile | 65 | ||||
-rw-r--r-- | sysutils/p5-FreeBSD-Portindex/distinfo | 2 | ||||
-rw-r--r-- | sysutils/p5-FreeBSD-Portindex/pkg-descr | 13 | ||||
-rw-r--r-- | sysutils/p5-FreeBSD-Portindex/pkg-plist | 15 |
9 files changed, 191 insertions, 0 deletions
diff --git a/ports-mgmt/p5-FreeBSD-Portindex/Makefile b/ports-mgmt/p5-FreeBSD-Portindex/Makefile new file mode 100644 index 000000000000..a86fda18b958 --- /dev/null +++ b/ports-mgmt/p5-FreeBSD-Portindex/Makefile @@ -0,0 +1,65 @@ +# New ports collection Makefile for: FreeBSD::Portindex +# Date created: 5 Nov 2004 +# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk> +# +# $FreeBSD$ + +PORTNAME= FreeBSD-Portindex +PORTVERSION= 1.1 +CATEGORIES= sysutils perl5 +MASTER_SITES= http://www.infracaninophile.co.uk/portindex/ +PKGNAMEPREFIX= p5- + +MAINTAINER= m.seaman@infracaninophile.co.uk +COMMENT= Incremental FreeBSD ports INDEX file generation + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_BZIP2= yes +PERL_CONFIGURE= yes + +CACHE_DIR?= /var/db/portindex +CACHE_OWNER?= root +CACHE_GROUP?= operator +CACHE_MODE?= 0775 + +CFG_FILE= portindex.cfg + +MAN1= find-updated.1 cache-init.1 cache-update.1 portindex.1 + +.include <bsd.port.pre.mk> + +## +## Needs a recent version of perl, preferably 5.8.5, but 5.6.1 should work +## +.if ${PERL_LEVEL} < 500601 +IGNORE= Port requires perl 5.6.x or (preferably) later. Install lang/perl5.8 and try again +.endif + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +post-install: install-conf install-cache + +install-conf: + cd ${WRKSRC} ; \ + ${INSTALL_DATA} ${CFG_FILE}.sample ${PREFIX}/etc/${CFG_FILE}.sample + cd ${PREFIX}/etc ; \ + if ${TEST} ! -f ${CFG_FILE} ; then \ + ${CP} -p ${CFG_FILE}.sample ${CFG_FILE} ; \ + fi + +# Create the cache directory and make it writable by group 'operator' +# by default. Only if the cache directory doesn't already exist. +# Have to do this by hand if installing via pkg. + +install-cache: + if ${TEST} ! -d ${CACHE_DIR} ; then \ + ${MKDIR} ${CACHE_DIR} ; \ + ${CHOWN} ${CACHE_OWNER}:${CACHE_GROUP} ${CACHE_DIR} ; \ + ${CHMOD} ${CACHE_MODE} ${CACHE_DIR} ; \ + fi + +.include <bsd.port.post.mk> diff --git a/ports-mgmt/p5-FreeBSD-Portindex/distinfo b/ports-mgmt/p5-FreeBSD-Portindex/distinfo new file mode 100644 index 000000000000..8c0e635005fe --- /dev/null +++ b/ports-mgmt/p5-FreeBSD-Portindex/distinfo @@ -0,0 +1,2 @@ +MD5 (FreeBSD-Portindex-1.1.tar.bz2) = 04b721803667e4385f170421d1a32dc4 +SIZE (FreeBSD-Portindex-1.1.tar.bz2) = 21958 diff --git a/ports-mgmt/p5-FreeBSD-Portindex/pkg-descr b/ports-mgmt/p5-FreeBSD-Portindex/pkg-descr new file mode 100644 index 000000000000..684bba33590d --- /dev/null +++ b/ports-mgmt/p5-FreeBSD-Portindex/pkg-descr @@ -0,0 +1,13 @@ + +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. + +WWW: http://www.infracaninophile.co.uk/portindex/ + +- Matthew Seaman <m.seaman@infracaninophile.co.uk> diff --git a/ports-mgmt/p5-FreeBSD-Portindex/pkg-plist b/ports-mgmt/p5-FreeBSD-Portindex/pkg-plist new file mode 100644 index 000000000000..3e2d25069968 --- /dev/null +++ b/ports-mgmt/p5-FreeBSD-Portindex/pkg-plist @@ -0,0 +1,15 @@ +bin/cache-init +bin/cache-update +bin/find-updated +bin/portindex +@unexec if cmp -s %D/etc/portindex.cfg.sample %D/etc/portindex.cfg ; then rm -f %D/etc/portindex.cfg ; fi +etc/portindex.cfg.sample +@exec [ ! -f %B/portindex.cfg ] && cp -p %B/%f %B/portindex.cfg || true +%%SITE_PERL%%/FreeBSD/Portindex/Config.pm +%%SITE_PERL%%/FreeBSD/Portindex/Port.pm +%%SITE_PERL%%/FreeBSD/Portindex/Tree.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex/.packlist +@dirrm %%SITE_PERL%%/FreeBSD/Portindex +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex +@unexec rmdir %D/%%SITE_PERL%%/FreeBSD 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD 2>/dev/null || true diff --git a/sysutils/Makefile b/sysutils/Makefile index afa1ff093b48..e6093dabdf7e 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -283,6 +283,7 @@ SUBDIR += p5-File-Which SUBDIR += p5-Filesys-DiskFree SUBDIR += p5-Filesys-DiskSpace + SUBDIR += p5-FreeBSD-Portindex SUBDIR += p5-LJ-Cache SUBDIR += p5-LJ-TextMessage SUBDIR += p5-Quota diff --git a/sysutils/p5-FreeBSD-Portindex/Makefile b/sysutils/p5-FreeBSD-Portindex/Makefile new file mode 100644 index 000000000000..a86fda18b958 --- /dev/null +++ b/sysutils/p5-FreeBSD-Portindex/Makefile @@ -0,0 +1,65 @@ +# New ports collection Makefile for: FreeBSD::Portindex +# Date created: 5 Nov 2004 +# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk> +# +# $FreeBSD$ + +PORTNAME= FreeBSD-Portindex +PORTVERSION= 1.1 +CATEGORIES= sysutils perl5 +MASTER_SITES= http://www.infracaninophile.co.uk/portindex/ +PKGNAMEPREFIX= p5- + +MAINTAINER= m.seaman@infracaninophile.co.uk +COMMENT= Incremental FreeBSD ports INDEX file generation + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_BZIP2= yes +PERL_CONFIGURE= yes + +CACHE_DIR?= /var/db/portindex +CACHE_OWNER?= root +CACHE_GROUP?= operator +CACHE_MODE?= 0775 + +CFG_FILE= portindex.cfg + +MAN1= find-updated.1 cache-init.1 cache-update.1 portindex.1 + +.include <bsd.port.pre.mk> + +## +## Needs a recent version of perl, preferably 5.8.5, but 5.6.1 should work +## +.if ${PERL_LEVEL} < 500601 +IGNORE= Port requires perl 5.6.x or (preferably) later. Install lang/perl5.8 and try again +.endif + +.if ${PERL_LEVEL} < 500800 +BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable +.endif + +post-install: install-conf install-cache + +install-conf: + cd ${WRKSRC} ; \ + ${INSTALL_DATA} ${CFG_FILE}.sample ${PREFIX}/etc/${CFG_FILE}.sample + cd ${PREFIX}/etc ; \ + if ${TEST} ! -f ${CFG_FILE} ; then \ + ${CP} -p ${CFG_FILE}.sample ${CFG_FILE} ; \ + fi + +# Create the cache directory and make it writable by group 'operator' +# by default. Only if the cache directory doesn't already exist. +# Have to do this by hand if installing via pkg. + +install-cache: + if ${TEST} ! -d ${CACHE_DIR} ; then \ + ${MKDIR} ${CACHE_DIR} ; \ + ${CHOWN} ${CACHE_OWNER}:${CACHE_GROUP} ${CACHE_DIR} ; \ + ${CHMOD} ${CACHE_MODE} ${CACHE_DIR} ; \ + fi + +.include <bsd.port.post.mk> diff --git a/sysutils/p5-FreeBSD-Portindex/distinfo b/sysutils/p5-FreeBSD-Portindex/distinfo new file mode 100644 index 000000000000..8c0e635005fe --- /dev/null +++ b/sysutils/p5-FreeBSD-Portindex/distinfo @@ -0,0 +1,2 @@ +MD5 (FreeBSD-Portindex-1.1.tar.bz2) = 04b721803667e4385f170421d1a32dc4 +SIZE (FreeBSD-Portindex-1.1.tar.bz2) = 21958 diff --git a/sysutils/p5-FreeBSD-Portindex/pkg-descr b/sysutils/p5-FreeBSD-Portindex/pkg-descr new file mode 100644 index 000000000000..684bba33590d --- /dev/null +++ b/sysutils/p5-FreeBSD-Portindex/pkg-descr @@ -0,0 +1,13 @@ + +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. + +WWW: http://www.infracaninophile.co.uk/portindex/ + +- Matthew Seaman <m.seaman@infracaninophile.co.uk> diff --git a/sysutils/p5-FreeBSD-Portindex/pkg-plist b/sysutils/p5-FreeBSD-Portindex/pkg-plist new file mode 100644 index 000000000000..3e2d25069968 --- /dev/null +++ b/sysutils/p5-FreeBSD-Portindex/pkg-plist @@ -0,0 +1,15 @@ +bin/cache-init +bin/cache-update +bin/find-updated +bin/portindex +@unexec if cmp -s %D/etc/portindex.cfg.sample %D/etc/portindex.cfg ; then rm -f %D/etc/portindex.cfg ; fi +etc/portindex.cfg.sample +@exec [ ! -f %B/portindex.cfg ] && cp -p %B/%f %B/portindex.cfg || true +%%SITE_PERL%%/FreeBSD/Portindex/Config.pm +%%SITE_PERL%%/FreeBSD/Portindex/Port.pm +%%SITE_PERL%%/FreeBSD/Portindex/Tree.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex/.packlist +@dirrm %%SITE_PERL%%/FreeBSD/Portindex +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD/Portindex +@unexec rmdir %D/%%SITE_PERL%%/FreeBSD 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/FreeBSD 2>/dev/null || true |