From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 17 14:20:07 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C4631065670 for ; Wed, 17 Jun 2009 14:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2595C8FC2C for ; Wed, 17 Jun 2009 14:20:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n5HEK7Pu029302 for ; Wed, 17 Jun 2009 14:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n5HEK73T029296; Wed, 17 Jun 2009 14:20:07 GMT (envelope-from gnats) Resent-Date: Wed, 17 Jun 2009 14:20:07 GMT Resent-Message-Id: <200906171420.n5HEK73T029296@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Wei-Yu Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96E72106580F for ; Wed, 17 Jun 2009 14:12:59 +0000 (UTC) (envelope-from weiyu@alpha3.cs.nthu.edu.tw) Received: from alpha3.cs.nthu.edu.tw (alpha3.cs.nthu.edu.tw [140.114.79.203]) by mx1.freebsd.org (Postfix) with ESMTP id 5387A8FC2C for ; Wed, 17 Jun 2009 14:12:58 +0000 (UTC) (envelope-from weiyu@alpha3.cs.nthu.edu.tw) Received: from alpha3.cs.nthu.edu.tw (localhost [127.0.0.1]) by alpha3.cs.nthu.edu.tw (8.14.3/8.14.3) with ESMTP id n5HEEYc2060552 for ; Wed, 17 Jun 2009 22:14:34 +0800 (CST) (envelope-from weiyu@alpha3.cs.nthu.edu.tw) Received: (from weiyu@localhost) by alpha3.cs.nthu.edu.tw (8.14.3/8.14.3/Submit) id n5HEEYUB060551; Wed, 17 Jun 2009 22:14:34 +0800 (CST) (envelope-from weiyu) Message-Id: <200906171414.n5HEEYUB060551@alpha3.cs.nthu.edu.tw> Date: Wed, 17 Jun 2009 22:14:34 +0800 (CST) From: Wei-Yu Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/135669: [NEW PORT] ports-mgmt/pver: Show packages which are different version from ports using INDEX-*.db X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2009 14:20:07 -0000 >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 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 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 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: