Date: Sun, 04 Jul 2004 19:57:05 +0200 From: Radim Kolar <hsn@netmag.cz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/68664: [PATCH] sysutils/portindex: update to 12 Message-ID: <E1BhBEf-0009SN-Pu@sanatana.dharma> Resent-Message-ID: <200407041800.i64I0ce3092466@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68664 >Category: ports >Synopsis: [PATCH] sysutils/portindex: update to 12 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Jul 04 18:00:38 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: - Update to 12 added rule bsd.port.pre.mk depends on bsd.port.mk use real describe file path when generating readme.html added freebsd port of debian package history tracker, you can optionally install it minorupdates can be optionaly installed >How-To-Repeat: >Fix: --- portindex-12.patch begins here --- diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/Makefile /home/hsn/myports/portindex/Makefile --- /usr/ports/sysutils/portindex/Makefile Sat Jul 3 00:43:20 2004 +++ /home/hsn/myports/portindex/Makefile Sun Jul 4 19:52:07 2004 @@ -6,7 +6,7 @@ # PORTNAME= portindex -PORTVERSION= 11 +PORTVERSION= 12 CATEGORIES= sysutils MASTER_SITES= http://home.tiscali.cz:8080/~cz210552/distfiles/ DISTNAME= bsdportsutils-${PORTVERSION} @@ -19,29 +19,70 @@ USE_REINPLACE= yes PORTDOCS= *.TXT -PLIST_FILES= bin/portreadmes bin/portindex PLIST_DIRS= share/${PORTNAME} -SOURCES= bsdpkg freebsdports indexer minorupdates updateall updatereadmes +PORTINDEX= bsdpkg freebsdports indexer updatereadmes +MINORUPDATES= minorupdates +MISCTOOLS= updateall +PKGHISTORY= loadindex query updinst + +SOURCES= ${PORTINDEX} +EXECUTABLES= portindex portreadmes + +OPTIONS= MINOR "Install minorupdates program" off \ + MISCTOOLS "Install misc. tools" off \ + PKGHISTORY "Install pkghistory package" off + +.include <bsd.port.pre.mk> + +.ifdef WITH_MINOR +RUN_DEPENDS+= ${LOCALBASE}/sbin/portversion:${PORTSDIR}/sysutils/portupgrade +SOURCES+= ${MINORUPDATES} +EXECUTABLES+= ${MINORUPDATES} +.endif + +.ifdef WITH_MISCTOOLS +SOURCES+= ${MISCTOOLS} +EXECUTABLES+= ${MISCTOOLS} +.endif + +.ifdef WITH_PKGHISTORY +SOURCES+= ${PKGHISTORY} +EXECUTABLES+= ${PKGHISTORY} +RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pg.py:${PORTSDIR}/databases/py-PyGreSQL +PLIST_FILES+= share/${PORTNAME}/create.sql +.endif .for i in ${SOURCES} PLIST_FILES+= share/${PORTNAME}/${i}.py PLIST_FILES+= share/${PORTNAME}/${i}.pyc .endfor +.for i in ${EXECUTABLES} +PLIST_FILES+= bin/${i} +.endfor + do-build: ${REINPLACE_CMD} -e "s,ports.pck,/var/db/portindex.pck," ${WRKSRC}/freebsdports.py - ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/portindex.sh > ${WRKSRC}/portindex - ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/portreadmes.sh > ${WRKSRC}/portreadmes +.for i in ${EXECUTABLES} + ${SED} -e "s,%%DATADIR%%,${DATADIR}," ${FILESDIR}/${i}.sh > ${WRKSRC}/${i} +.endfor do-install: ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR} +.for i in ${SOURCES} + ${INSTALL_DATA} ${WRKSRC}/${i}.py ${DATADIR} +.endfor ${PYTHON_CMD} -c "import compileall;compileall.compile_dir('${DATADIR}')" - ${INSTALL_SCRIPT} ${WRKSRC}/portindex ${WRKSRC}/portreadmes ${PREFIX}/bin +.for i in ${EXECUTABLES} + ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin +.endfor +.ifdef WITH_PKGHISTORY + ${INSTALL_DATA} ${WRKSRC}/create.sql ${DATADIR} +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/*.TXT ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/distinfo /home/hsn/myports/portindex/distinfo --- /usr/ports/sysutils/portindex/distinfo Fri Jul 2 22:16:56 2004 +++ /home/hsn/myports/portindex/distinfo Sun Jul 4 19:44:05 2004 @@ -1,2 +1,2 @@ -MD5 (bsdportsutils-11.tar.gz) = 22545b9a88c04120562a36aa6e60faa5 -SIZE (bsdportsutils-11.tar.gz) = 8320 +MD5 (bsdportsutils-12.tar.gz) = d675196215b308d7dadb3535689173cd +SIZE (bsdportsutils-12.tar.gz) = 13405 diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/loadindex.sh /home/hsn/myports/portindex/files/loadindex.sh --- /usr/ports/sysutils/portindex/files/loadindex.sh Thu Jan 1 01:00:00 1970 +++ /home/hsn/myports/portindex/files/loadindex.sh Sun Jul 4 17:57:48 2004 @@ -0,0 +1,2 @@ +#! /bin/sh +exec /usr/bin/env python %%DATADIR%%/loadindex.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/minorupdates.sh /home/hsn/myports/portindex/files/minorupdates.sh --- /usr/ports/sysutils/portindex/files/minorupdates.sh Thu Jan 1 01:00:00 1970 +++ /home/hsn/myports/portindex/files/minorupdates.sh Sun Jul 4 17:58:27 2004 @@ -0,0 +1,2 @@ +#! /bin/sh +exec /usr/bin/env python %%DATADIR%%/minorupdates.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/portindex.sh /home/hsn/myports/portindex/files/portindex.sh --- /usr/ports/sysutils/portindex/files/portindex.sh Fri Jul 2 22:18:49 2004 +++ /home/hsn/myports/portindex/files/portindex.sh Sun Jul 4 17:58:05 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/indexer.py +exec /usr/bin/env python %%DATADIR%%/indexer.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/portreadmes.sh /home/hsn/myports/portindex/files/portreadmes.sh --- /usr/ports/sysutils/portindex/files/portreadmes.sh Fri Jul 2 22:18:49 2004 +++ /home/hsn/myports/portindex/files/portreadmes.sh Sun Jul 4 17:58:10 2004 @@ -1,2 +1,2 @@ #! /bin/sh -exec /usr/bin/env python %%DATADIR%%/updatereadmes.py +exec /usr/bin/env python %%DATADIR%%/updatereadmes.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/query.sh /home/hsn/myports/portindex/files/query.sh --- /usr/ports/sysutils/portindex/files/query.sh Thu Jan 1 01:00:00 1970 +++ /home/hsn/myports/portindex/files/query.sh Sun Jul 4 17:58:14 2004 @@ -0,0 +1,2 @@ +#! /bin/sh +exec /usr/bin/env python %%DATADIR%%/query.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/updateall.sh /home/hsn/myports/portindex/files/updateall.sh --- /usr/ports/sysutils/portindex/files/updateall.sh Thu Jan 1 01:00:00 1970 +++ /home/hsn/myports/portindex/files/updateall.sh Sun Jul 4 17:58:18 2004 @@ -0,0 +1,2 @@ +#! /bin/sh +exec /usr/bin/env python %%DATADIR%%/updateall.py $* diff -ruN --exclude=CVS /usr/ports/sysutils/portindex/files/updinst.sh /home/hsn/myports/portindex/files/updinst.sh --- /usr/ports/sysutils/portindex/files/updinst.sh Thu Jan 1 01:00:00 1970 +++ /home/hsn/myports/portindex/files/updinst.sh Sun Jul 4 17:58:22 2004 @@ -0,0 +1,2 @@ +#! /bin/sh +exec /usr/bin/env python %%DATADIR%%/updinst.py $* --- portindex-12.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1BhBEf-0009SN-Pu>