1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- 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@waitman.net
This commit is contained in:
Olli Hauer 2014-10-28 22:55:13 +00:00
parent 9e24a2e4af
commit 7634187b32
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=371655
5 changed files with 69 additions and 0 deletions

View File

@ -30,6 +30,7 @@
SUBDIR += pchecker
SUBDIR += pib
SUBDIR += pkg
SUBDIR += pkgcompare
SUBDIR += pkg-devel
SUBDIR += pkg-orphan
SUBDIR += pkg-plist

View File

@ -0,0 +1,46 @@
# Created by: "Waitman Gobble" <uzimac@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@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>

View File

@ -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

View File

@ -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/
************************************************************************

View File

@ -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