diff options
author | miwi <miwi@FreeBSD.org> | 2007-12-13 07:48:52 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-12-13 07:48:52 +0800 |
commit | cff60886a4643eb11a975d647031ee77f021a839 (patch) | |
tree | 01f14fb0374e98d0329bc15c6815fe3cd11d30c1 | |
parent | c33ff41468f7abd00f4e2400967bc031be689f4b (diff) | |
download | freebsd-ports-gnome-cff60886a4643eb11a975d647031ee77f021a839.tar.gz freebsd-ports-gnome-cff60886a4643eb11a975d647031ee77f021a839.tar.zst freebsd-ports-gnome-cff60886a4643eb11a975d647031ee77f021a839.zip |
- Update to 1.7
PR: 118057
Submitted by: Andy Kosela <andy.kosela@gmail.com> (maintainer)
-rw-r--r-- | ports-mgmt/bpkg/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/bpkg/files/bpkg.8 | 6 | ||||
-rw-r--r-- | ports-mgmt/bpkg/files/bpkg.sh.in | 15 |
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 |