aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authordhn <dhn@FreeBSD.org>2009-06-18 05:21:19 +0800
committerdhn <dhn@FreeBSD.org>2009-06-18 05:21:19 +0800
commit0e85bdef57e628733f7709d5ac2e07049588f4b7 (patch)
treee44aeb9bd4a849da71a72758cf52d3f1eebd1ce3 /ports-mgmt
parent09d021ae003722a0eb46285b61b29e2b14f9448d (diff)
downloadfreebsd-ports-graphics-0e85bdef57e628733f7709d5ac2e07049588f4b7.tar.gz
freebsd-ports-graphics-0e85bdef57e628733f7709d5ac2e07049588f4b7.tar.zst
freebsd-ports-graphics-0e85bdef57e628733f7709d5ac2e07049588f4b7.zip
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>
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/Makefile1
-rw-r--r--ports-mgmt/pver/Makefile54
-rw-r--r--ports-mgmt/pver/distinfo3
-rw-r--r--ports-mgmt/pver/pkg-descr7
-rw-r--r--ports-mgmt/pver/pkg-message14
5 files changed, 79 insertions, 0 deletions
diff --git a/ports-mgmt/Makefile b/ports-mgmt/Makefile
index c052763e5b0..1cfaa8a446c 100644
--- a/ports-mgmt/Makefile
+++ b/ports-mgmt/Makefile
@@ -58,6 +58,7 @@
SUBDIR += portupgrade
SUBDIR += portupgrade-devel
SUBDIR += psearch
+ SUBDIR += pver
SUBDIR += qtpkg
SUBDIR += tinderbox
SUBDIR += tinderbox-devel
diff --git a/ports-mgmt/pver/Makefile b/ports-mgmt/pver/Makefile
new file mode 100644
index 00000000000..360503277c9
--- /dev/null
+++ b/ports-mgmt/pver/Makefile
@@ -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>
diff --git a/ports-mgmt/pver/distinfo b/ports-mgmt/pver/distinfo
new file mode 100644
index 00000000000..7b9f26c1633
--- /dev/null
+++ b/ports-mgmt/pver/distinfo
@@ -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
diff --git a/ports-mgmt/pver/pkg-descr b/ports-mgmt/pver/pkg-descr
new file mode 100644
index 00000000000..5764dc150a7
--- /dev/null
+++ b/ports-mgmt/pver/pkg-descr
@@ -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
diff --git a/ports-mgmt/pver/pkg-message b/ports-mgmt/pver/pkg-message
new file mode 100644
index 00000000000..cb0ba719c91
--- /dev/null
+++ b/ports-mgmt/pver/pkg-message
@@ -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
+
+===================================================================================