View | Details | Raw Unified | Return to bug 125265
Collapse All | Expand All

(-)/usr/home/akosela/downloads/bpkg-2.0.1/Makefile (-2 / +2 lines)
Lines 2-14 Link Here
2
# Date created:				24 June 2007
2
# Date created:				24 June 2007
3
# Whom:					Andy Kosela <andy.kosela@gmail.com>
3
# Whom:					Andy Kosela <andy.kosela@gmail.com>
4
#
4
#
5
# $FreeBSD: ports/ports-mgmt/bpkg/Makefile,v 1.14 2008/06/20 15:03:44 miwi Exp $
5
# $FreeBSD$
6
#
6
#
7
# This port is self contained in the files directory.
7
# This port is self contained in the files directory.
8
#
8
#
9
9
10
PORTNAME=	bpkg
10
PORTNAME=	bpkg
11
PORTVERSION=	2.0
11
PORTVERSION=	2.0.1
12
CATEGORIES=	ports-mgmt
12
CATEGORIES=	ports-mgmt
13
MASTER_SITES=	# none
13
MASTER_SITES=	# none
14
DISTFILES=	# none
14
DISTFILES=	# none
(-)/usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.8 (-4 / +8 lines)
Lines 23-29 Link Here
23
.\" SUCH DAMAGE.
23
.\" SUCH DAMAGE.
24
.\"
24
.\"
25
.\"
25
.\"
26
.Dd June 19, 2008
26
.Dd July 4, 2008
27
.Dt BPKG 8
27
.Dt BPKG 8
28
.Os
28
.Os
29
.Sh NAME
29
.Sh NAME
Lines 45-51 Link Here
45
The following command line arguments are supported:
45
The following command line arguments are supported:
46
.Bl -tag -width F1
46
.Bl -tag -width F1
47
.It Fl b
47
.It Fl b
48
create backup package file in /usr/obj/ from a locally installed port.
48
create backup package in /var/tmp/ from a locally installed port.
49
.It Fl c
49
.It Fl c
50
clean all distfiles in /usr/ports/distfiles/* [no arguments]
50
clean all distfiles in /usr/ports/distfiles/* [no arguments]
51
.It Fl C
51
.It Fl C
Lines 95-105 Link Here
95
.It Fl S
95
.It Fl S
96
search the ports tree and display info about the port.
96
search the ports tree and display info about the port.
97
.It Fl t
97
.It Fl t
98
list all installed ports and dates of their installation. [no arguments]
98
list all installed ports with dates of their installation. [no arguments]
99
.It Fl w
99
.It Fl w
100
which installed port owns the specified file.
100
which installed port owns the specified file.
101
.It Fl v
101
.It Fl v
102
list all installed ports and possible upgrades. [no arguments]
102
list all installed ports and possible updates. [no arguments]
103
.It Fl z
103
.It Fl z
104
display dynamic object dependencies for the specified port.
104
display dynamic object dependencies for the specified port.
105
.It Fl Z
105
.It Fl Z
Lines 124-129 Link Here
124
.Dl Ar "> bpkg -t | head"
124
.Dl Ar "> bpkg -t | head"
125
.Pp
125
.Pp
126
Display 10 most recently installed ports.
126
Display 10 most recently installed ports.
127
.Pp
128
.Dl Ar "> bpkg -b 'foo bar'"
129
.Pp
130
Create backup packages of foo and bar in /var/tmp/ directory.
127
.Sh SEE ALSO
131
.Sh SEE ALSO
128
.Xr pkg_add 1 ,
132
.Xr pkg_add 1 ,
129
.Xr pkg_create 1 ,
133
.Xr pkg_create 1 ,
(-)/usr/home/akosela/downloads/bpkg-2.0.1/files/bpkg.sh.in (-6 / +7 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: ports/ports-mgmt/bpkg/files/bpkg.sh.in,v 1.13 2008/06/20 15:03:44 miwi Exp $
2
# $FreeBSD$
3
3
4
#  Copyright (c) 2007 Andy Kosela <andy.kosela@gmail.com>
4
#  Copyright (c) 2007 Andy Kosela <andy.kosela@gmail.com>
5
#  All rights reserved.
5
#  All rights reserved.
Lines 365-379 Link Here
365
	fi
365
	fi
366
366
367
	pkg_install=`pkg_info -xoQ $pkg | cut -d: -f1 | awk '{ORS=" " ; print}'`
367
	pkg_install=`pkg_info -xoQ $pkg | cut -d: -f1 | awk '{ORS=" " ; print}'`
368
	echo "Creating backup package(s) "$pkg_install"in /usr/obj/"
368
	echo "Creating backup package(s) "$pkg_install"in /var/tmp/"
369
	e=`pkg_info -xoQ $pkg | cut -d: -f1`
369
	for e in $pkg; do
370
	cd /usr/obj/ && pkg_create -xb $e 1>/dev/null 2>&1
370
		i=`pkg_info -xoQ $e | cut -d: -f1'`
371
		cd /var/tmp/ && pkg_create -xb $i 1>/dev/null 2>&1
372
	done
371
	echo "Done."
373
	echo "Done."
372
	exit 0
374
	exit 0
373
}	
375
}	
374
376
375
pkg_time() {
377
pkg_time() { 
376
	echo "Packages (date of installation):"
377
	/bin/ls -lUTt /var/db/pkg/ | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | cut -d/ -f1,5 
378
	/bin/ls -lUTt /var/db/pkg/ | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | cut -d/ -f1,5 
378
	echo "***`pkg_info | wc -l` ports installed     ***"
379
	echo "***`pkg_info | wc -l` ports installed     ***"
379
	exit 0
380
	exit 0

Return to bug 125265