aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/bpkg
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-12-12 23:48:52 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-12-12 23:48:52 +0000
commitbd75a8713577fad122eef9f1cce090c73f588b90 (patch)
treee24534014b94a2c076c4548fd5dd23c7b5e7cc51 /ports-mgmt/bpkg
parent45e196313f32eafe8cdc2f067f5198af93b002ba (diff)
downloadports-bd75a8713577fad122eef9f1cce090c73f588b90.tar.gz
ports-bd75a8713577fad122eef9f1cce090c73f588b90.zip
Notes
Diffstat (limited to 'ports-mgmt/bpkg')
-rw-r--r--ports-mgmt/bpkg/Makefile2
-rw-r--r--ports-mgmt/bpkg/files/bpkg.86
-rw-r--r--ports-mgmt/bpkg/files/bpkg.sh.in15
3 files changed, 17 insertions, 6 deletions
diff --git a/ports-mgmt/bpkg/Makefile b/ports-mgmt/bpkg/Makefile
index cc22bb8e2dbc..63ea2af580d2 100644
--- a/ports-mgmt/bpkg/Makefile
+++ b/ports-mgmt/bpkg/Makefile
@@ -8,7 +8,7 @@
#
PORTNAME= bpkg
-PORTVERSION= 1.6.1
+PORTVERSION= 1.7
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/bpkg/files/bpkg.8 b/ports-mgmt/bpkg/files/bpkg.8
index beb5179eb85c..313ca265103b 100644
--- a/ports-mgmt/bpkg/files/bpkg.8
+++ b/ports-mgmt/bpkg/files/bpkg.8
@@ -23,7 +23,7 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd September 22, 2007
+.Dd November 14, 2007
.Dt BPKG 8
.Os
.Sh NAME
@@ -31,7 +31,7 @@
.Nd a simple tool for managing FreeBSD packages/ports.
.Sh SYNOPSIS
.Nm
-.Op Fl bBdDeEfFgiIkLmMnoOpqQrsSwz
+.Op Fl bBdDeEfFgiIjkLmMnoOpqQrsSwz
.Ar pkg-name ...
.Nm
.Op Fl aAcChltvZ
@@ -90,6 +90,8 @@ display help. [no arguments]
display info about the package/port (priority - installed packages).
.It Fl I
display short info about the package/port (priority - installed packages).
+.It Fl j
+search the ports tree according to ports' descriptions.
.It Fl k
show the deinstall script (if any) for the installed package.
.It Fl l
diff --git a/ports-mgmt/bpkg/files/bpkg.sh.in b/ports-mgmt/bpkg/files/bpkg.sh.in
index 3c8c041232f3..227ff5dffafc 100644
--- a/ports-mgmt/bpkg/files/bpkg.sh.in
+++ b/ports-mgmt/bpkg/files/bpkg.sh.in
@@ -607,6 +607,13 @@ make_search_S() {
exit 0
}
+make_search_info() {
+ for e in $pkg; do
+ cd /usr/ports && make search info=$e
+ done
+ exit 0
+}
+
pkg_find() {
arch=`uname -m`
sys=`uname -r | cut -d- -f1,2 | tr '[:upper:]' '[:lower:]'`
@@ -714,7 +721,7 @@ pkg_backup() {
pkg_time() {
echo "Packages (date of installation):"
echo ""
- /bin/ls -lTt /var/db/pkg/*/+CONTENTS | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | cut -d/ -f1,5
+ /bin/ls -lUTt /var/db/pkg/ | awk -F' ' '{ print $6,$7,$8,$9,$10 }' | cut -d/ -f1,5
echo "***`pkg_info | wc -l` packages installed ***"
exit 0
}
@@ -1114,7 +1121,7 @@ make_ldd_all() {
help() {
echo "bpkg version `pkg_info -xI bpkg | cut -d- -f2 | cut -d' ' -f1`"
echo ""
- echo "Usage: bpkg [-bBdDeEfFgiIkLmMnoOpqQrsSwz] pkg-name ..."
+ echo "Usage: bpkg [-bBdDeEfFgiIjkLmMnoOpqQrsSwz] pkg-name ..."
echo " bpkg [-aAcChltvZ]"
echo ""
echo "Please see the bpkg(8) man page for more information"
@@ -1125,7 +1132,7 @@ help() {
# End of functions
################################################################################
-while getopts b:B:d:D:e:E:f:F:g:i:I:k:L:m:M:n:o:O:p:q:Q:r:s:S:w:z:aAcChltvZ opts; do
+while getopts b:B:d:D:e:E:f:F:g:i:I:j:k:L:m:M:n:o:O:p:q:Q:r:s:S:w:z:aAcChltvZ opts; do
case $opts in
b) pkg=$OPTARG
build_port;;
@@ -1149,6 +1156,8 @@ while getopts b:B:d:D:e:E:f:F:g:i:I:k:L:m:M:n:o:O:p:q:Q:r:s:S:w:z:aAcChltvZ opts
make_search;;
I) pkg=$OPTARG
pkg_info-xI;;
+ j) pkg=$OPTARG
+ make_search_info;;
k) pkg=$OPTARG
pkg_info-xk;;
L) pkg=$OPTARG