Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2014 15:23:28 GMT
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186484: New port: ports-mgmt/pkgcompare Alternate to pkg upgrade
Message-ID:  <201402051523.s15FNSxq062628@oldred.freebsd.org>
Resent-Message-ID: <201402051530.s15FU0Km025395@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186484
>Category:       ports
>Synopsis:       New port: ports-mgmt/pkgcompare Alternate to pkg upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 05 15:30:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Waitman Gobble
>Release:        FreeBSD 11.0-CURRENT
>Organization:
Waitman Gobble
>Environment:
FreeBSD akira.waitman.net 11.0-CURRENT FreeBSD 11.0-CURRENT #1: Sun Feb 2 21:45:49 PST 2014 root@akira.waitman.net:/usr/obj/usr/src/sys/AKIRA amd64
>Description:
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
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pkgcompare
#	pkgcompare/Makefile
#	pkgcompare/distinfo
#	pkgcompare/files
#	pkgcompare/files/pkg-message.in
#	pkgcompare/pkg-descr
#
echo c - pkgcompare
mkdir -p pkgcompare > /dev/null 2>&1
echo x - pkgcompare/Makefile
sed 's/^X//' >pkgcompare/Makefile << '9c185d22b71a86faf3c6ef7f228ee1b7'
X# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
X# $FreeBSD$
X# New ports collection makefile for: pkgcompare
X# Date created: 05 February 2014
X
XPORTNAME=	pkgcompare
XPORTVERSION=	1.0
XCATEGORIES=	ports-mgmt
XMASTER_SITES=	GH
XDISTNAME=	${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
X
XMAINTAINER=	waitman@waitman.net
XCOMMENT=	Alternate to pkg upgrade
X
XLICENSE=	PKG-COMPARE
XLICENSE_NAME=	PKG-COMPARE BSD LICENSE
XLICENSE_FILE=	${WRKSRC}/LICENSE
XLICENSE_PERMS=	${_LICENSE_PERMS_DEFAULT}
X
XLIB_DEPENDS=	pkg:${PORTSDIR}/ports-mgmt/pkg \
X		sqlite3:${PORTSDIR}/databases/sqlite3
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	waitman
XGH_PROJECT=	pkg-compare
XGH_TAGNAME=	845d363
XGH_COMMIT=	${GH_TAGNAME}
X
XWRKSRC=		${WRKDIR}/waitman-pkg-compare-${GH_TAGNAME}
X
XBINARY=		pkg-compare
X
XPLIST_FILES=	man/man8/pkg-compare.8.gz \
X		sbin/pkg-compare
X
X.include <bsd.port.options.mk>
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/sbin/
X	${INSTALL_MAN} ${WRKSRC}/pkg-compare.8 \
X		${STAGEDIR}${MAN8PREFIX}/man/man8
X
Xpost-install:
X	${MKDIR} ${STAGEDIR}${DOCSDIR}
X	${INSTALL_MAN} ${LICENSE_FILE} ${STAGEDIR}${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
X
X.include <bsd.port.mk>
9c185d22b71a86faf3c6ef7f228ee1b7
echo x - pkgcompare/distinfo
sed 's/^X//' >pkgcompare/distinfo << '7db005b1694f45260205d34a00c2765c'
XSHA256 (waitman-pkg-compare-1.0-0-g845d363.tar.gz) = c9f3c76f0914e18e63a3e25bbe16942b47b37cf0cb5c60106978a6c4b07a85f7
XSIZE (waitman-pkg-compare-1.0-0-g845d363.tar.gz) = 3766
7db005b1694f45260205d34a00c2765c
echo c - pkgcompare/files
mkdir -p pkgcompare/files > /dev/null 2>&1
echo x - pkgcompare/files/pkg-message.in
sed 's/^X//' >pkgcompare/files/pkg-message.in << '36a817c011ebcfe52306231cecca3820'
X************************************************************************
X
XNOTICE
X
Xman page is installed in /usr/local/share/man/man7, if you do not yet
Xhave the configuration in /etc/man.conf, add
X
XMANPATH /usr/local/share/man
X
Xto view all man pages which are installed in /usr/local/share/man/manX/
X
X
X************************************************************************
X
36a817c011ebcfe52306231cecca3820
echo x - pkgcompare/pkg-descr
sed 's/^X//' >pkgcompare/pkg-descr << '80be4993cc4536aff262afe69db1834e'
XThis program provides for an alternate pkg upgrade procedure. 
X
XMove /usr/local to /usr/old-local and /var/db/pkg to /var/db/old-pkg,
Xthen use pkg-compare to generate a list of packages to install.
X
XWWW:
Xhttps://github.com/waitman/pkg-compare
80be4993cc4536aff262afe69db1834e
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402051523.s15FNSxq062628>