svn commit: r371655 - in head/ports-mgmt: . pkgcompare pkgcompare/files
Olli Hauer
ohauer at FreeBSD.org
Tue Oct 28 22:55:15 UTC 2014
Author: ohauer
Date: Tue Oct 28 22:55:13 2014
New Revision: 371655
URL: https://svnweb.freebsd.org/changeset/ports/371655
QAT: https://qat.redports.org/buildarchive/r371655/
Log:
- new port pkgcompare
This program provides for an alternate pkg upgrade procedure.
Usage: pkg-compare [options] new_path old_path
This program reads local.sqlite in new_path and compares list of installed
packages in local.sqlite in old_path. If a package is found in old_path which
is not in new_path then the name of the port is printed, one per line.
Command line switches:
-p prefix uninstalled packages with 'pkg install -Rf'
-m show manually installed packages only, no deps
WWW: https://github.com/waitman/pkg-compare
PR: 186484
Submitted by: waitman at waitman.net
Added:
head/ports-mgmt/pkgcompare/
head/ports-mgmt/pkgcompare/Makefile (contents, props changed)
head/ports-mgmt/pkgcompare/distinfo (contents, props changed)
head/ports-mgmt/pkgcompare/files/
head/ports-mgmt/pkgcompare/files/pkg-message.in (contents, props changed)
head/ports-mgmt/pkgcompare/pkg-descr (contents, props changed)
Modified:
head/ports-mgmt/Makefile
Modified: head/ports-mgmt/Makefile
==============================================================================
--- head/ports-mgmt/Makefile Tue Oct 28 22:53:16 2014 (r371654)
+++ head/ports-mgmt/Makefile Tue Oct 28 22:55:13 2014 (r371655)
@@ -30,6 +30,7 @@
SUBDIR += pchecker
SUBDIR += pib
SUBDIR += pkg
+ SUBDIR += pkgcompare
SUBDIR += pkg-devel
SUBDIR += pkg-orphan
SUBDIR += pkg-plist
Added: head/ports-mgmt/pkgcompare/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkgcompare/Makefile Tue Oct 28 22:55:13 2014 (r371655)
@@ -0,0 +1,46 @@
+# Created by: "Waitman Gobble" <uzimac at da3m0n8t3r.com>
+# $FreeBSD$
+
+PORTNAME= pkgcompare
+PORTVERSION= 1.1
+CATEGORIES= ports-mgmt
+MASTER_SITES= GH
+DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
+
+MAINTAINER= waitman at waitman.net
+COMMENT= Alternate to pkg upgrade
+
+LICENSE= PKG-COMPARE
+LICENSE_NAME= PKG-COMPARE BSD LICENSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
+
+LIB_DEPENDS= libpkg.so:${PORTSDIR}/ports-mgmt/pkg \
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3
+
+USE_GITHUB= yes
+GH_ACCOUNT= waitman
+GH_PROJECT= pkg-compare
+GH_TAGNAME= 418295d
+GH_COMMIT= ${GH_TAGNAME}
+
+WRKSRC= ${WRKDIR}/waitman-pkg-compare-${GH_TAGNAME}
+
+BINARY= pkg-compare
+
+PORTDOCS= *
+PLIST_FILES= man/man8/pkg-compare.8.gz \
+ sbin/pkg-compare
+SUB_FILES= pkg-message
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/pkg-compare.8 \
+ ${STAGEDIR}${MAN8PREFIX}/man/man8
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${LICENSE_FILE} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
Added: head/ports-mgmt/pkgcompare/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkgcompare/distinfo Tue Oct 28 22:55:13 2014 (r371655)
@@ -0,0 +1,2 @@
+SHA256 (waitman-pkg-compare-1.1-0-g418295d.tar.gz) = edd3a18cb31728b9ab130c9a246add5b7c7cf3d9ecfb6a7298a31bcdc9a36d44
+SIZE (waitman-pkg-compare-1.1-0-g418295d.tar.gz) = 4159
Added: head/ports-mgmt/pkgcompare/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkgcompare/files/pkg-message.in Tue Oct 28 22:55:13 2014 (r371655)
@@ -0,0 +1,14 @@
+************************************************************************
+
+NOTICE
+
+man page is installed in %%LOCALBASE%%/man/man8, if you do not yet
+have the configuration in /etc/manpath.config, add
+
+OPTIONAL_MANPATH %%LOCALBASE%%/man
+
+to view all man pages which are installed in /usr/local/man/manX/
+
+
+************************************************************************
+
Added: head/ports-mgmt/pkgcompare/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkgcompare/pkg-descr Tue Oct 28 22:55:13 2014 (r371655)
@@ -0,0 +1,6 @@
+This program provides for an alternate pkg upgrade procedure.
+
+Move /usr/local to /usr/old-local and /var/db/pkg to /var/db/old-pkg,
+then use pkg-compare to generate a list of packages to install.
+
+WWW: https://github.com/waitman/pkg-compare
More information about the svn-ports-all
mailing list