aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/pver
diff options
context:
space:
mode:
authorDennis Herrmann <dhn@FreeBSD.org>2009-06-17 21:21:19 +0000
committerDennis Herrmann <dhn@FreeBSD.org>2009-06-17 21:21:19 +0000
commitcd0ff6a15f3c5e097c512d5886eccd7c5600d6f5 (patch)
tree253d9a2d3904a26d23b9bfecd13a1028ff081c01 /ports-mgmt/pver
parent1b7af2702d3678bb8ec0c6a6b4d7bca52383a9fc (diff)
downloadports-cd0ff6a15f3c5e097c512d5886eccd7c5600d6f5.tar.gz
ports-cd0ff6a15f3c5e097c512d5886eccd7c5600d6f5.zip
Notes
Diffstat (limited to 'ports-mgmt/pver')
-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
4 files changed, 78 insertions, 0 deletions
diff --git a/ports-mgmt/pver/Makefile b/ports-mgmt/pver/Makefile
new file mode 100644
index 000000000000..360503277c93
--- /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 000000000000..7b9f26c16335
--- /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 000000000000..5764dc150a76
--- /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 000000000000..cb0ba719c916
--- /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
+
+===================================================================================