Date: Wed, 17 Jun 2009 22:14:34 +0800 (CST) From: Wei-Yu Chen <weiyu.csie@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/135669: [NEW PORT] ports-mgmt/pver: Show packages which are different version from ports using INDEX-*.db Message-ID: <200906171414.n5HEEYUB060551@alpha3.cs.nthu.edu.tw> Resent-Message-ID: <200906171420.n5HEK73T029296@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 135669 >Category: ports >Synopsis: [NEW PORT] ports-mgmt/pver: Show packages which are different version from ports using INDEX-*.db >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: Wed Jun 17 14:20:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Wei-Yu Chen >Release: FreeBSD 7.1-RELEASE-p5 i386 >Organization: >Environment: System: FreeBSD alpha3.cs.nthu.edu.tw 7.1-RELEASE-p5 FreeBSD 7.1-RELEASE-p5 #29: Tue Jun 2 14:29:05 CST >Description: A simple utility to show the package name and version whose port version is different from it. The utility uses /usr/ports/INDEX-{__FreeBSD__}.db The file can be generated by using bundled pver_dbgen WWW: http://www.csie.nctu.edu.tw/~weiyu/#msgbox=page/program.html Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- pver-0.14.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: # # pver # pver/pkg-descr # pver/Makefile # pver/pkg-plist # pver/distinfo # pver/pkg-message # echo c - pver mkdir -p pver > /dev/null 2>&1 echo x - pver/pkg-descr sed 's/^X//' >pver/pkg-descr << '0f7b6ff4d5ae1b023e18a8108ab72a6e' XA simple utility to show the package name and version Xwhose port version is different from it. X XThe utility uses /usr/ports/INDEX-{__FreeBSD__}.db XThe file can be generated by using bundled pver_dbgen X XWWW: http://www.csie.nctu.edu.tw/~weiyu/#msgbox=page/program.html 0f7b6ff4d5ae1b023e18a8108ab72a6e echo x - pver/Makefile sed 's/^X//' >pver/Makefile << '5a8a13b150e725f506125d7b0ba56219' X# New ports collection makefile for: pver X# Date created: 2008-11-07 X# Whom: Wei-Yu Chen <weiyu@alpha3.cs.nthu.edu.tw> X# X# $FreeBSD$ X# X XPORTNAME= pver XPORTVERSION= 0.14 X#PORTREVISION= 0 X#PORTEPOCH= 0 XCATEGORIES= ports-mgmt XMASTER_SITES= http://www.csie.nctu.edu.tw/~weiyu/software/ \ X ${MASTER_SITE_GOOGLE_CODE} X XMAINTAINER= weiyu.csie+pver@gmail.com XCOMMENT= Show packages which are different version from ports using INDEX-*.db X XOPTIONS= SORT "Sort the result by the package names" Off \ X DB185 "Use BerkeleyDB 1.85/1.86" Off X XPLIST_SUB= PORTNAME=${PORTNAME} X XWRKSRC= ${WRKDIR}/${PORTNAME} XMAKE_ARGS+= PORTSDIR=${PORTSDIR} X X.include <bsd.port.pre.mk> X X.if defined(WITH_SORT) XMAKE_ARGS+= -DSORT X.endif X X.if defined(WITH_DB185) XMAKE_ARGS+= -DBSD_DB X.else XUSE_BDB= 3+ XMAKE_ARGS+= BDB_VER=${BDB_VER} BDB_LIB_DIR=${BDB_LIB_DIR} X.endif X X.if defined(INDEX_DB_FILE) XMAKE_ARGS+= INDEX_DB_FILE=${INDEX_DB_FILE} X.endif X Xpost-install: X ${MKDIR} ${PREFIX}/share/${PORTNAME}/ X ${INSTALL} ${WRKSRC}/LICENSE.txt ${PREFIX}/share/${PORTNAME}/ X X.include <bsd.port.post.mk> 5a8a13b150e725f506125d7b0ba56219 echo x - pver/pkg-plist sed 's/^X//' >pver/pkg-plist << 'bc623127478c75908715fd97c6331206' Xbin/pver Xbin/pver_dbgen Xbin/wpver Xshare/%%PORTNAME%%/LICENSE.txt X@dirrm share/%%PORTNAME%% bc623127478c75908715fd97c6331206 echo x - pver/distinfo sed 's/^X//' >pver/distinfo << 'eb0ee0caa219180df20e1acd38ed5854' XMD5 (pver-0.14.tar.gz) = 102b5b3479c4f43a8cdbca8154db4f19 XSHA256 (pver-0.14.tar.gz) = c4348167eb17ce551c2ea8d2ba52062175147243602857c235d126d0785f1307 XSIZE (pver-0.14.tar.gz) = 6405 eb0ee0caa219180df20e1acd38ed5854 echo x - pver/pkg-message sed 's/^X//' >pver/pkg-message << '0df267ca6dd7aebb95f61e5365d3b6a3' X${PORTSDIR}/INDEX-{__FreeBSD__}.db is usually generated by ports-mgmt/portupgrade XHowever, you can use the tool 'pver_dbgen' to generate/update it X X> sudo pver_dbgen X XThe tool use ${PORTSDIR}/INDEX-{__FreeBSD__} to generate db file X XThen you can show the packages whose port version and package version is different Xby typing 'pver' X> pver 0df267ca6dd7aebb95f61e5365d3b6a3 exit --- pver-0.14.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906171414.n5HEEYUB060551>