ports/68549: [NEW PORT] sysutils/portindex: Incremental ports INDEX file builder

Radim Kolar hsn at netmag.cz
Thu Jul 1 10:22:12 UTC 2004


>Number:         68549
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/portindex: Incremental ports INDEX file builder
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 01 10:20:29 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Radim Kolar
>Release:        FreeBSD 5.2.1-RELEASE-p6 i386
>Organization:
Sanatana Dharma
>Environment:
System: FreeBSD sanatana.dharma 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #7: Mon May 10 17:15:51 CEST 2004
>Description:
Alternative /usr/ports/INDEX file builder.

Features

1. You do not need to wait 1 hour after every cvsup for make index to finish.
   This program supports incremental index builds.
2. Supports indexing of incomplete ports trees.
3. Dependences between ports (including multiple) are correctly tracked.
   tracking is done by .include hunting
4. Dependences on /usr/port/Mk/* are tracked
5. Dependences on /var/db/ports are tracked
6. Dependences on Makefile.local are tracked
7. No known difference between make index and this program

WWW: http://home.tiscali.cz/~cz210552/bsdportsutils.html

Generated with FreeBSD Port Tools 0.50
>How-To-Repeat:
>Fix:

--- portindex-11.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:
#
#	portindex
#	portindex/Makefile
#	portindex/distinfo
#	portindex/files
#	portindex/files/portindex.sh
#	portindex/files/portreadmes.sh
#	portindex/pkg-descr
#
echo c - portindex
mkdir -p portindex > /dev/null 2>&1
echo x - portindex/Makefile
sed 's/^X//' >portindex/Makefile << 'END-of-portindex/Makefile'
X# New ports collection makefile for:	portindex
X# Date created:		1 Jul 2004
X# Whom:			Radim Kolar
X#
X# $FreeBSD$
X#
X
XPORTNAME=	portindex
XPORTVERSION=	11
XCATEGORIES=	sysutils
XMASTER_SITES=	http://home.tiscali.cz/~cz210552/distfiles/
XDISTNAME=	bsdportsutils-${PORTVERSION}
X
XMAINTAINER=	hsn at netmag.cz
XCOMMENT=	Incremental ports INDEX file builder
X
XUSE_PYTHON=	yes
XNO_WRKSUBDIR=	yes
XUSE_REINPLACE=	yes
X
XPORTDOCS=	*.TXT
XPLIST_FILES=	bin/portreadmes bin/portindex
XPLIST_DIRS=	share/${PORTNAME}
X
XSOURCES=bsdpkg freebsdports indexer minorupdates updateall updatereadmes
X
X.for i in ${SOURCES}
XPLIST_FILES+=	share/${PORTNAME}/${i}.py
XPLIST_FILES+=	share/${PORTNAME}/${i}.pyc
X.endfor
X
Xdo-build:
X	${REINPLACE_CMD} -e "s,ports.pck,/var/db/portindex.pck," ${WRKSRC}/freebsdports.py
X	${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/portindex.sh > ${WRKSRC}/portindex
X	${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/portreadmes.sh > ${WRKSRC}/portreadmes
X
Xdo-install:
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR}
X	${PYTHON_CMD} -c "import compileall;compileall.compile_dir('${DATADIR}')"
X	${INSTALL_SCRIPT} ${WRKSRC}/portindex ${WRKSRC}/portreadmes ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/*.TXT ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-portindex/Makefile
echo x - portindex/distinfo
sed 's/^X//' >portindex/distinfo << 'END-of-portindex/distinfo'
XMD5 (bsdportsutils-11.tar.gz) = 22545b9a88c04120562a36aa6e60faa5
XSIZE (bsdportsutils-11.tar.gz) = 8320
END-of-portindex/distinfo
echo c - portindex/files
mkdir -p portindex/files > /dev/null 2>&1
echo x - portindex/files/portindex.sh
sed 's/^X//' >portindex/files/portindex.sh << 'END-of-portindex/files/portindex.sh'
X#! /bin/sh
Xexec /usr/bin/env python %%DATADIR%%/indexer.py
END-of-portindex/files/portindex.sh
echo x - portindex/files/portreadmes.sh
sed 's/^X//' >portindex/files/portreadmes.sh << 'END-of-portindex/files/portreadmes.sh'
X#! /bin/sh
Xexec /usr/bin/env python %%DATADIR%%/updatereadmes.py
END-of-portindex/files/portreadmes.sh
echo x - portindex/pkg-descr
sed 's/^X//' >portindex/pkg-descr << 'END-of-portindex/pkg-descr'
XAlternative /usr/ports/INDEX file builder.
X
XFeatures
X
X1. You do not need to wait 1 hour after every cvsup for make index to finish.
X   This program supports incremental index builds.
X2. Supports indexing of incomplete ports trees.
X3. Dependences between ports (including multiple) are correctly tracked.
X   tracking is done by .include hunting
X4. Dependences on /usr/port/Mk/* are tracked
X5. Dependences on /var/db/ports are tracked
X6. Dependences on Makefile.local are tracked
X7. No known difference between make index and this program
X
XWWW: http://home.tiscali.cz/~cz210552/bsdportsutils.html
END-of-portindex/pkg-descr
exit
--- portindex-11.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list