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 PR: ports/135669 Submitted by: Wei-Yu Chen <weiyu.csie@gmail.com>
This commit is contained in:
parent
1b7af2702d
commit
cd0ff6a15f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=236161
5 changed files with 79 additions and 0 deletions
|
@ -58,6 +58,7 @@
|
|||
SUBDIR += portupgrade
|
||||
SUBDIR += portupgrade-devel
|
||||
SUBDIR += psearch
|
||||
SUBDIR += pver
|
||||
SUBDIR += qtpkg
|
||||
SUBDIR += tinderbox
|
||||
SUBDIR += tinderbox-devel
|
||||
|
|
54
ports-mgmt/pver/Makefile
Normal file
54
ports-mgmt/pver/Makefile
Normal file
|
@ -0,0 +1,54 @@
|
|||
# New ports collection makefile for: pver
|
||||
# Date created: 2008-11-07
|
||||
# Whom: Wei-Yu Chen <weiyu@alpha3.cs.nthu.edu.tw>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pver
|
||||
PORTVERSION= 0.14
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= http://www.csie.nctu.edu.tw/~weiyu/software/ \
|
||||
${MASTER_SITE_GOOGLE_CODE}
|
||||
|
||||
MAINTAINER= weiyu.csie+pver@gmail.com
|
||||
COMMENT= Show packages which are different version from ports using INDEX-*.db
|
||||
|
||||
OPTIONS= SORT "Sort the result by the package names" Off \
|
||||
DB185 "Use BerkeleyDB 1.85/1.86" Off
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
MAKE_ARGS+= PORTSDIR=${PORTSDIR}
|
||||
|
||||
PLIST_FILES= bin/pver \
|
||||
bin/pver_c \
|
||||
bin/pver_dbgen \
|
||||
bin/wpver \
|
||||
%%DATADIR%%/LICENSE.txt
|
||||
PLIST_DIRS= %%DATADIR%%
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_SORT)
|
||||
MAKE_ARGS+= -DSORT
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DB185)
|
||||
MAKE_ARGS+= -DBSD_DB
|
||||
.else
|
||||
USE_BDB= 3+
|
||||
MAKE_ARGS+= BDB_VER=${BDB_VER} BDB_LIB_DIR=${BDB_LIB_DIR}
|
||||
.endif
|
||||
|
||||
.if defined(INDEX_DB_FILE)
|
||||
MAKE_ARGS+= INDEX_DB_FILE=${INDEX_DB_FILE}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL} ${WRKSRC}/LICENSE.txt ${DATADIR}
|
||||
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|PORTSDIR|${PORTSDIR}|g' \
|
||||
-e 's|__FreeBSD__|${OSREL:C/.[0-9]//}|g' ${PKGDIR}/pkg-message
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
ports-mgmt/pver/distinfo
Normal file
3
ports-mgmt/pver/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (pver-0.14.tar.gz) = 102b5b3479c4f43a8cdbca8154db4f19
|
||||
SHA256 (pver-0.14.tar.gz) = c4348167eb17ce551c2ea8d2ba52062175147243602857c235d126d0785f1307
|
||||
SIZE (pver-0.14.tar.gz) = 6405
|
7
ports-mgmt/pver/pkg-descr
Normal file
7
ports-mgmt/pver/pkg-descr
Normal file
|
@ -0,0 +1,7 @@
|
|||
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
|
14
ports-mgmt/pver/pkg-message
Normal file
14
ports-mgmt/pver/pkg-message
Normal file
|
@ -0,0 +1,14 @@
|
|||
===================================================================================
|
||||
|
||||
PORTSDIR/INDEX-__FreeBSD__.db is usually generated by ports-mgmt/portupgrade
|
||||
However, you can use the tool 'pver_dbgen' to generate/update it
|
||||
|
||||
> sudo pver_dbgen
|
||||
|
||||
The tool use PORTSDIR/INDEX-__FreeBSD__ to generate db file
|
||||
|
||||
Then you can show the packages whose port version and package version is different
|
||||
by typing 'pver'
|
||||
> pver
|
||||
|
||||
===================================================================================
|
Loading…
Reference in a new issue