Date: Sat, 7 Feb 2009 20:19:27 +0100 (CET) From: Andy Kosela <akosela@andykosela.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: akosela@andykosela.com Subject: ports/131471: [MAINTAINER-UPDATE] ports-mgmt/bpkg: update to 2.0.6 Message-ID: <20090207191927.378E248F5C2@aegis.um.lublin.pl> Resent-Message-ID: <200902071940.n17Je7kL042109@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <akosela@andykosela.com> # -# $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 <akosela@andykosela.com> +.\" Copyright (c) 2007-2009 Andy Kosela <akosela@andykosela.com> .\" 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 <akosela@andykosela.com> +# Copyright (c) 2007-2009 Andy Kosela <akosela@andykosela.com> # 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090207191927.378E248F5C2>