ports/125265: [MAINTAINER-UPDATE] ports-mgmt/bpkg: update to 2.0.1
Andy Kosela
andy.kosela at gmail.com
Fri Jul 4 16:50:01 UTC 2008
>Number: 125265
>Category: ports
>Synopsis: [MAINTAINER-UPDATE] ports-mgmt/bpkg: update to 2.0.1
>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: Fri Jul 04 16:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Andy Kosela
>Release: FreeBSD 6.2-RELEASE-p11 i386
>Organization:
Protect Ya Neck Records/Wu-Tang Management
>Environment:
System: FreeBSD aegis.um.lublin.pl 6.2-RELEASE-p11 FreeBSD 6.2-RELEASE-p11 #0: Wed Feb 13 07:00:04 UTC 2008
>Description:
- Update to 2.0.1
>How-To-Repeat:
>Fix:
--- bpkg-2.0.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/Makefile /usr/home/akosela/downloads/bpkg-2.0.1/Makefile
--- /usr/ports/ports-mgmt/bpkg/Makefile Fri Jun 20 17:03:44 2008
+++ /usr/home/akosela/downloads/bpkg-2.0.1/Makefile Fri Jul 4 16:13:55 2008
@@ -2,13 +2,13 @@
# Date created: 24 June 2007
# Whom: Andy Kosela <andy.kosela at gmail.com>
#
-# $FreeBSD: ports/ports-mgmt/bpkg/Makefile,v 1.14 2008/06/20 15:03:44 miwi Exp $
+# $FreeBSD$
#
# This port is self contained in the files directory.
#
PORTNAME= bpkg
-PORTVERSION= 2.0
+PORTVERSION= 2.0.1
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/files/bpkg.8 /usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.8
--- /usr/ports/ports-mgmt/bpkg/files/bpkg.8 Fri Jun 20 17:03:44 2008
+++ /usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.8 Fri Jul 4 17:35:38 2008
@@ -23,7 +23,7 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd June 19, 2008
+.Dd July 4, 2008
.Dt BPKG 8
.Os
.Sh NAME
@@ -45,7 +45,7 @@
The following command line arguments are supported:
.Bl -tag -width F1
.It Fl b
-create backup package file in /usr/obj/ from a locally installed port.
+create backup package in /var/tmp/ from a locally installed port.
.It Fl c
clean all distfiles in /usr/ports/distfiles/* [no arguments]
.It Fl C
@@ -95,11 +95,11 @@
.It Fl S
search the ports tree and display info about the port.
.It Fl t
-list all installed ports and dates of their installation. [no arguments]
+list all installed ports with dates of their installation. [no arguments]
.It Fl w
which installed port owns the specified file.
.It Fl v
-list all installed ports and possible upgrades. [no arguments]
+list all installed ports and possible updates. [no arguments]
.It Fl z
display dynamic object dependencies for the specified port.
.It Fl Z
@@ -124,6 +124,10 @@
.Dl Ar "> bpkg -t | head"
.Pp
Display 10 most recently installed ports.
+.Pp
+.Dl Ar "> bpkg -b 'foo bar'"
+.Pp
+Create backup packages of foo and bar in /var/tmp/ directory.
.Sh SEE ALSO
.Xr pkg_add 1 ,
.Xr pkg_create 1 ,
diff -ruN --exclude=CVS /usr/ports/ports-mgmt/bpkg/files/bpkg.sh.in /usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.sh.in
--- /usr/ports/ports-mgmt/bpkg/files/bpkg.sh.in Fri Jun 20 17:03:44 2008
+++ /usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.sh.in Fri Jul 4 17:56:39 2008
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: ports/ports-mgmt/bpkg/files/bpkg.sh.in,v 1.13 2008/06/20 15:03:44 miwi Exp $
+# $FreeBSD$
# Copyright (c) 2007 Andy Kosela <andy.kosela at gmail.com>
# All rights reserved.
@@ -365,15 +365,16 @@
fi
pkg_install=`pkg_info -xoQ $pkg | cut -d: -f1 | awk '{ORS=" " ; print}'`
- echo "Creating backup package(s) "$pkg_install"in /usr/obj/"
- e=`pkg_info -xoQ $pkg | cut -d: -f1`
- cd /usr/obj/ && pkg_create -xb $e 1>/dev/null 2>&1
+ echo "Creating backup package(s) "$pkg_install"in /var/tmp/"
+ for e in $pkg; do
+ i=`pkg_info -xoQ $e | cut -d: -f1'`
+ cd /var/tmp/ && pkg_create -xb $i 1>/dev/null 2>&1
+ done
echo "Done."
exit 0
}
-pkg_time() {
- echo "Packages (date of installation):"
+pkg_time() {
/bin/ls -lUTt /var/db/pkg/ | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | cut -d/ -f1,5
echo "***`pkg_info | wc -l` ports installed ***"
exit 0
--- bpkg-2.0.1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list