From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 7 19:40:08 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40CF21065673 for ; Sat, 7 Feb 2009 19:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 18C8A8FC23 for ; Sat, 7 Feb 2009 19:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n17Je7aT042110 for ; Sat, 7 Feb 2009 19:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n17Je7kL042109; Sat, 7 Feb 2009 19:40:07 GMT (envelope-from gnats) Resent-Date: Sat, 7 Feb 2009 19:40:07 GMT Resent-Message-Id: <200902071940.n17Je7kL042109@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andy Kosela Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D6C310656BB for ; Sat, 7 Feb 2009 19:39:12 +0000 (UTC) (envelope-from root@aegis.um.lublin.pl) Received: from aegis.um.lublin.pl (aegis.um.lublin.pl [193.93.68.20]) by mx1.freebsd.org (Postfix) with ESMTP id 610328FC08 for ; Sat, 7 Feb 2009 19:39:09 +0000 (UTC) (envelope-from root@aegis.um.lublin.pl) Received: from localhost (localhost [127.0.0.1]) by aegis.um.lublin.pl (Postfix) with ESMTP id B8FAF48F5D1; Sat, 7 Feb 2009 20:19:27 +0100 (CET) Received: from aegis.um.lublin.pl ([127.0.0.1]) by localhost (aegis.um.lublin.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9YGj8jkSNipW; Sat, 7 Feb 2009 20:19:27 +0100 (CET) Received: by aegis.um.lublin.pl (Postfix, from userid 0) id 378E248F5C2; Sat, 7 Feb 2009 20:19:27 +0100 (CET) Message-Id: <20090207191927.378E248F5C2@aegis.um.lublin.pl> Date: Sat, 7 Feb 2009 20:19:27 +0100 (CET) From: Andy Kosela To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: akosela@andykosela.com Subject: ports/131471: [MAINTAINER-UPDATE] ports-mgmt/bpkg: update to 2.0.6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2009 19:40:09 -0000 >Number: 131471 >Category: ports >Synopsis: [MAINTAINER-UPDATE] ports-mgmt/bpkg: update to 2.0.6 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Feb 07 19:40:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Andy Kosela >Release: FreeBSD 7.1-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD aegis.um.lublin.pl 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #0: Tue Jan 27 22:11:26 CET 2009 >Description: - Update to 2.0.6 New -B option - backup all locally installed packages. >How-To-Repeat: >Fix: --- bpkg-2.0.6.patch begins here --- diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/Makefile /data/home/akosela/downloads/bpkg-2.0.6/Makefile --- /usr/ports/ports-mgmt/bpkg/Makefile 2008-11-20 16:18:29.000000000 +0100 +++ /data/home/akosela/downloads/bpkg-2.0.6/Makefile 2009-02-07 19:58:46.000000000 +0100 @@ -2,13 +2,13 @@ # Date created: 24 June 2007 # Whom: Andy Kosela # -# $FreeBSD: ports/ports-mgmt/bpkg/Makefile,v 1.21 2008/11/20 15:18:29 pav Exp $ +# $FreeBSD$ # # This port is self contained in the files directory. # PORTNAME= bpkg -PORTVERSION= 2.0.5 +PORTVERSION= 2.0.6 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/files/bpkg.8 /data/home/akosela/downloads/bpkg-2.0.6/files/bpkg.8 --- /usr/ports/ports-mgmt/bpkg/files/bpkg.8 2008-08-06 09:58:40.000000000 +0200 +++ /data/home/akosela/downloads/bpkg-2.0.6/files/bpkg.8 2009-02-07 20:01:15.000000000 +0100 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2007-2008 Andy Kosela +.\" Copyright (c) 2007-2009 Andy Kosela .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -23,7 +23,7 @@ .\" SUCH DAMAGE. .\" .\" -.Dd August 5, 2008 +.Dd February 7, 2009 .Dt BPKG 8 .Os .Sh NAME @@ -34,7 +34,7 @@ .Op Fl bDdeFfgIijkLMmOopQqrSswz .Ar pkg-name ... .Nm -.Op Fl CchltvZ +.Op Fl BCchltvZ .Pp .Sh DESCRIPTION .Nm @@ -44,6 +44,8 @@ .Sh OPTIONS The following command line arguments are supported: .Bl -tag -width F1 +.It Fl B +create backup packages in /var/tmp/bpkg/ from all locally installed ports. .It Fl b create backup package in /var/tmp/bpkg/ from a locally installed port. .It Fl C diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/files/bpkg.sh.in /data/home/akosela/downloads/bpkg-2.0.6/files/bpkg.sh.in --- /usr/ports/ports-mgmt/bpkg/files/bpkg.sh.in 2008-11-20 16:18:30.000000000 +0100 +++ /data/home/akosela/downloads/bpkg-2.0.6/files/bpkg.sh.in 2009-02-07 20:13:19.000000000 +0100 @@ -1,8 +1,8 @@ #!/bin/sh # @(#) bpkg.sh simple tool for displaying information about ports -# $FreeBSD: ports/ports-mgmt/bpkg/files/bpkg.sh.in,v 1.20 2008/11/20 15:18:30 pav Exp $ +# $FreeBSD: ports/ports-mgmt/bpkg/files/bpkg.sh.in,v 1.19 2008/09/08 07:58:23 miwi Exp $ -# Copyright (c) 2007-2008 Andy Kosela +# Copyright (c) 2007-2009 Andy Kosela # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -467,14 +467,30 @@ PKG_INSTALL=`pkg_info -xoQ ^$PKG | cut -d: -f1 | awk '{ORS=" " ;print}'` echo "Creating backup package(s) "$PKG_INSTALL"in /var/tmp/bpkg/" [ ! -d /var/tmp/bpkg/ ] && mkdir /var/tmp/bpkg/ + cd /var/tmp/bpkg/ + for e in $PKG; do I=`pkg_info -xoQ ^$e | cut -d: -f1'` - cd /var/tmp/bpkg/ && pkg_create -xb $I 1>/dev/null 2>&1 + pkg_create -xb $I 1>/dev/null 2>&1 done echo "Done." exit 0 } +pkg_backup_all() +{ + root + echo "Creating backup packages in /var/tmp/bpkg/" + [ ! -d /var/tmp/bpkg/ ] && mkdir /var/tmp/bpkg/ + cd /var/tmp/bpkg/ + + for e in `pkg_info -Ea`; do + pkg_create -b "$e" 1>/dev/null 2>&1 + done + echo "Done." + exit 0 +} + pkg_time() { /bin/ls -lUTt /var/db/pkg/ | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | \ @@ -888,7 +904,7 @@ echo "bpkg version `pkg_info -xI bpkg | cut -d- -f2 | cut -d' ' -f1`" echo "" echo "Usage: bpkg [-bDdeFfgIijkLMmOopQqrSswz] pkg-name ..." - echo " bpkg [-CchltvZ]" + echo " bpkg [-BCchltvZ]" echo "" echo "Please see the bpkg(8) man page for more information" echo "" @@ -898,7 +914,7 @@ # End of functions ############################################################################### -while getopts b:D:d:e:F:f:g:I:i:j:k:L:M:m:O:o:p:Q:q:r:S:s:w:z:CchltvZ opts; do +while getopts b:D:d:e:F:f:g:I:i:j:k:L:M:m:O:o:p:Q:q:r:S:s:w:z:BCchltvZ opts; do case $opts in b) PKG=$OPTARG pkg_backup;; @@ -948,6 +964,7 @@ pkg_which-;; z) PKG=$OPTARG make_ldd;; + B) pkg_backup_all;; C) pkg_clean2;; c) pkg_clean;; h) help;; --- bpkg-2.0.6.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: