summaryrefslogtreecommitdiff
path: root/ports-mgmt/bpkg
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-06-20 15:03:44 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-06-20 15:03:44 +0000
commit591af05073b1f5af898ab7d4220967471e590ae1 (patch)
tree53be8a2c1d0714bdfcc5a06868fc19cc40917cfd /ports-mgmt/bpkg
parent- Update to 2.1.0 (diff)
- Update to 2.0
PR: 124769 Submitted by: Andy Kosela <andy.kosela@gmail.com> (maintainer)
Diffstat (limited to 'ports-mgmt/bpkg')
-rw-r--r--ports-mgmt/bpkg/Makefile4
-rw-r--r--ports-mgmt/bpkg/files/bpkg.898
-rw-r--r--ports-mgmt/bpkg/files/bpkg.sh.in478
-rw-r--r--ports-mgmt/bpkg/pkg-descr7
4 files changed, 68 insertions, 519 deletions
diff --git a/ports-mgmt/bpkg/Makefile b/ports-mgmt/bpkg/Makefile
index a53898e1c07a..55fa74639932 100644
--- a/ports-mgmt/bpkg/Makefile
+++ b/ports-mgmt/bpkg/Makefile
@@ -8,13 +8,13 @@
#
PORTNAME= bpkg
-PORTVERSION= 1.7.3
+PORTVERSION= 2.0
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= andy.kosela@gmail.com
-COMMENT= Simple tool for managing FreeBSD packages/ports
+COMMENT= Simple tool for displaying information about ports
NO_BUILD= yes
SUB_FILES= bpkg.sh
diff --git a/ports-mgmt/bpkg/files/bpkg.8 b/ports-mgmt/bpkg/files/bpkg.8
index 6048ce2e1487..21fe65026cc9 100644
--- a/ports-mgmt/bpkg/files/bpkg.8
+++ b/ports-mgmt/bpkg/files/bpkg.8
@@ -23,111 +23,85 @@
.\" SUCH DAMAGE.
.\"
.\"
-.Dd December 24, 2007
+.Dd June 19, 2008
.Dt BPKG 8
.Os
.Sh NAME
.Nm bpkg
-.Nd a simple tool for managing FreeBSD packages/ports.
+.Nd a simple tool for displaying information about ports.
.Sh SYNOPSIS
.Nm
-.Op Fl bBdDeEfFgiIjkLmMnoOpqQrsSwz
+.Op Fl bdeEfgiIjkLmMoOpqQrsSwz
.Ar pkg-name ...
.Nm
-.Op Fl aAcChltvZ
+.Op Fl cChltvZ
.Pp
.Sh DESCRIPTION
.Nm
-is a simple tool written in sh(1) for managing FreeBSD packages/ports. It is a
-wrapper around base system utilities manipulating the FreeBSD Ports Collection.
-The main goal of this project is to provide one universal tool for
-packages/ports management.
-.Sh TERMINOLOGY
-.An Nm Port
-- a software ready to be compiled from source using the Ports Collection
-framework.
-.Pp
-.An Nm Package
-- an installed software (from binary package or port) or a binary package file
-in .tbz format made from a port.
+is a simple tool written in sh(1) for displaying information about ports. Its
+main goal is to provide a quick way to display all kinds of useful info about
+installed ports and the whole ports tree.
.Sh OPTIONS
The following command line arguments are supported:
.Bl -tag -width F1
-.It Ar pkg-name ...
-with no additional arguments, upgrade/install the specified packages from -RELEASE repository.
-.It Fl a
-upgrade all installed packages (interactive mode). [no arguments]
-.It Fl A
-upgrade all installed packages (non-interactive mode). [no arguments]
.It Fl b
-upgrade/install the specified ports, update the list of installed ports in /root/ports.lst.
-.It Fl B
-create backup package file in /usr/obj/ from a locally installed package.
+create backup package file in /usr/obj/ from a locally installed port.
.It Fl c
clean all distfiles in /usr/ports/distfiles/* [no arguments]
.It Fl C
clean all distfiles in /usr/ports/distfiles/* and also all working directories
of the ports tree /usr/ports/*/*/work/ [no arguments]
.It Fl d
-delete the specified installed package.
-.It Fl D
-display description of the package/port.
+display description of the port.
.It Fl e
-configure options for the specified package/port using dialog(1).
-.It Fl E
-compile and install any dependencies of the specified package/port and then
-compile and install the port itself.
+configure options for the specified port using dialog(1).
.It Fl f
-show the packing list instructions for the package/port.
-.It Fl F
-show the latest available binary package in the FreeBSD repository. [-RELEASE]
+show the packing list instructions for the port.
.It Fl g
show files that do not match the recorded checksum in the specified installed
-package.
+port.
.It Fl h
display help. [no arguments]
.It Fl i
-display info about the package/port (priority - installed packages).
+display info about the port (priority - installed ports).
.It Fl I
-display short info about the package/port (priority - installed packages).
+display short info about the port (priority - installed ports).
.It Fl j
search the ports tree according to ports' descriptions.
.It Fl k
-show the deinstall script (if any) for the installed package.
+show the deinstall script (if any) for the installed port.
.It Fl l
-display short info about all installed packages. [no arguments]
+display short info about all installed ports. [no arguments]
.It Fl L
-show the files within the installed package.
+show the files within the installed port.
.It Fl m
-display package/port's Makefile.
+display port's Makefile.
.It Fl M
-show the install-message file for the installed package.
-.It Fl n
-simulation mode, do not actually install a package/port.
+show the install-message file for the installed port.
.It Fl o
-display config options for the specified package/port.
+display config options for the specified port.
.It Fl O
-remove config options for the specified package/port.
+remove config options for the specified port.
.It Fl p
search the ports tree and display short info about the port.
.It Fl q
-upgrade/install the specified packages from -STABLE repository.
+show the latest available package in the FreeBSD repository. [-RELEASE]
.It Fl Q
-show the latest available binary package in the FreeBSD repository. [-STABLE]
+show the latest available package in the FreeBSD repository. [-STABLE]
.It Fl r
-show the list of all package/port's dependencies.
+show the list of all port's dependencies.
.It Fl s
-show the total size occupied by files installed within the package.
+show the total size occupied by files installed within the port.
.It Fl S
search the ports tree and display info about the port.
.It Fl t
-list all installed packages and dates of their installation. [no arguments]
+list all installed ports and dates of their installation. [no arguments]
.It Fl w
-which installed package owns the specified file.
+which installed port owns the specified file.
.It Fl v
-list all installed packages and possible upgrades. [no arguments]
+list all installed ports and possible upgrades. [no arguments]
.It Fl z
-display dynamic object dependencies for the specified package.
+display dynamic object dependencies for the specified port.
.It Fl Z
display all missing dynamic object dependencies. [no arguments]
.El
@@ -139,17 +113,9 @@ of the
.Nm
command:
.Pp
-.Dl Ar "# bpkg foo"
-.Pp
-Upgrade or install a package named foo (root privileges required).
-.Pp
-.Dl Ar "# bpkg -b foo"
-.Pp
-Upgrade or install a port named foo (root privileges required).
-.Pp
-.Dl Ar "> bpkg -i 'foo bar'"
+.Dl Ar "> bpkg -i foo"
.Pp
-Display info about packages/ports foo and bar.
+Display info about port foo.
.Pp
.Dl Ar "> bpkg -S 'foo[0-9]+$'"
.Pp
@@ -157,7 +123,7 @@ Display all ports matching the regular expression.
.Pp
.Dl Ar "> bpkg -t | head"
.Pp
-Display 10 most recently installed packages.
+Display 10 most recently installed ports.
.Sh SEE ALSO
.Xr pkg_add 1 ,
.Xr pkg_create 1 ,
diff --git a/ports-mgmt/bpkg/files/bpkg.sh.in b/ports-mgmt/bpkg/files/bpkg.sh.in
index 1f9d3343549e..48d64277cb06 100644
--- a/ports-mgmt/bpkg/files/bpkg.sh.in
+++ b/ports-mgmt/bpkg/files/bpkg.sh.in
@@ -47,303 +47,7 @@ missing() {
}
main() {
- root
- if [ -z "$pkg" ]; then
- echo "bpkg: you didn't specify any package to install/upgrade"
- exit 0
- fi
-
- echo "Available in ports:"
- for e in $pkg; do
- cd /usr/ports && make search path=/$e.* | awk '/Port/ /Path/ { print $0 "\n" }'
- done
-
- for z in $pkg; do
- pkg_install=`cd /usr/ports && make search path=/$z.* | grep Path | cut -d/ -f4,5`
-
- for e in $pkg_install; do
- e_stripped=`echo $e | cut -d/ -f2`
- e_installed=`grep $e$ /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
-
- if [ -z "$e_installed" ]; then
- echo -n "Do you want to install new $e? [y] "
- else
- echo -n "Do you want to upgrade installed $e_installed? [y] "
- fi
- read key
- case $key in
- n) ;;
- *)
- if [ ! -z "$e_installed" ]; then
- echo -n "Creating backup package in /usr/obj/$e_installed.tbz... "
- cd /usr/obj/ && pkg_create -b $e_installed
- echo "Done."
- fi
-
- # Fetch and install binary package
-
- echo ""
- if [ ! -z "$e_installed" ]; then
- touch /root/ports.lst
- if [ ! -z "`grep $e /root/ports.lst`" ]; then
- echo "It seems you installed this package using ports."
- echo "It is strongly recommended to upgrade it using also ports."
- echo -n "Do you want to cancel this binary upgrade process? [y] "
- read key
- case $key in
- n)
- sed -i '' s,$e,,g /root/ports.lst 1>/dev/null 2>&1;;
- *) ;;
- esac
- fi
-
- echo "Upgrading installed package:"
- pkg_delete -f $e_installed 1>/dev/null 2>&1
- if [ ! -z `pkg_info -oq $e_installed 2>/dev/null` ]; then
- echo "*** cannot proceed without first removing the package ***"
- fi
- pkg_add -r $e_stripped
- else
- echo "Installing new package:"
- pkg_add -r $e_stripped
- fi;;
- esac
- done
- done
-}
-
-pkg_latest() {
- root
- if [ -z "$pkg" ]; then
- echo "bpkg: you didn't specify any package to install/upgrade"
- exit 0
- fi
-
- echo "Available in ports:"
- for e in $pkg; do
- cd /usr/ports && make search path=/$e.* | awk '/Port/ /Path/ { print $0 "\n" }'
- done
-
- for z in $pkg; do
- pkg_install=`cd /usr/ports && make search path=/$z.* | grep Path | cut -d/ -f4,5`
-
- for e in $pkg_install; do
- e_stripped=`echo $e | cut -d/ -f2`
- e_installed=`grep $e$ /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
-
- if [ -z "$e_installed" ]; then
- echo -n "Do you want to install new $e? [y] "
- else
- echo -n "Do you want to upgrade installed $e_installed? [y] "
- fi
- read key
- case $key in
- n) ;;
- *)
- arch=`uname -m`
- setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/$arch/packages-stable/Latest/
-
- if [ ! -z "$e_installed" ]; then
- echo -n "Creating backup package in /usr/obj/$e_installed.tbz... "
- cd /usr/obj/ && pkg_create -b $e_installed
- echo "Done."
- fi
-
- # Fetch and install binary package
-
- echo ""
- if [ ! -z "$e_installed" ]; then
- touch /root/ports.lst
- if [ ! -z "`grep $e /root/ports.lst`" ]; then
- echo "It seems you installed this package using ports."
- echo "It is strongly recommended to upgrade it using also ports."
- echo -n "Do you want to cancel this binary upgrade process? [y] "
- read key
- case $key in
- n)
- sed -i '' s,$e,,g /root/ports.lst 1>/dev/null 2>&1;;
- *)
- unsetenv PACKAGESITE;;
- esac
- fi
-
- echo "Upgrading installed package:"
- pkg_delete -f $e_installed 1>/dev/null 2>&1
- if [ ! -z `pkg_info -oq $e_installed 2>/dev/null` ]; then
- echo "*** cannot proceed without first removing the package ***"
- fi
- pkg_add -r $e_stripped
- unsetenv PACKAGESITE
- else
- echo "Installing new package:"
- pkg_add -r $e_stripped
- unsetenv PACKAGESITE
- fi;;
- esac
- done
- done
-}
-
-simulation() {
- root
- if [ -z "$pkg" ]; then
- echo "bpkg: you didn't specify any package to install/upgrade"
- exit 0
- fi
-
- echo "Available in ports:"
- for e in $pkg; do
- cd /usr/ports && make search path=/$e.* | awk '/Port/ /Path/ { print $0 "\n" }'
- done
-
- for z in $pkg; do
- pkg_install=`cd /usr/ports && make search path=/$z.* | grep Path | cut -d/ -f4,5`
-
- for e in $pkg_install; do
- e_stripped=`echo $e | cut -d/ -f2`
- e_installed=`grep $e$ /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
-
- if [ -z "$e_installed" ]; then
- echo -n "Do you want to install new $e? [y] "
- else
- echo -n "Do you want to upgrade installed $e_installed? [y] "
- fi
- read key
- case $key in
- n) ;;
- *)
- if [ ! -z "$e_installed" ]; then
- echo -n "Creating backup package in /usr/obj/$e_installed.tbz... "
- cd /usr/obj/ && pkg_create -b $e_installed
- echo "Done."
- fi
-
- # Fetch and install binary package
-
- echo ""
- if [ ! -z "$e_installed" ]; then
- echo "Upgrading installed package:"
- pkg_delete -n $e_installed 1>/dev/null 2>&1
- pkg_add -rn $e_stripped
- else
- echo "Installing new package:"
- pkg_add -rn $e_stripped
- fi;;
- esac
- done
- done
-}
-
-build_port() {
- root
- if [ -z "$pkg" ]; then
- echo "bpkg: you didn't specify any package to install/upgrade"
- exit 0
- fi
-
- echo "Available in ports:"
- for e in $pkg; do
- cd /usr/ports && make search path=/$e.* | awk '/Port/ /Path/ { print $0 "\n" }'
- done
-
- for z in $pkg; do
- pkg_install=`cd /usr/ports && make search path=/$z.* | grep Path | cut -d/ -f4,5`
-
- for e in $pkg_install; do
- e_stripped=`echo $e | cut -d/ -f2`
- e_installed=`grep $e$ /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
-
- if [ -z "$e_installed" ]; then
- echo -n "Do you want to install new $e? [y] "
- else
- echo -n "Do you want to upgrade installed $e_installed? [y] "
- fi
- read key
- case $key in
- n) ;;
- *)
- if [ ! -z "$e_installed" ]; then
- echo -n "Creating backup package in /usr/obj/$e_installed.tbz... "
- cd /usr/obj/ && pkg_create -b $e_installed
- echo "Done."
- fi
-
- # Install from port (source)
-
- echo ""
- if [ ! -z "$e_installed" ]; then
- echo "Upgrading installed port:"
- touch /root/ports.lst
- [ -z "`grep $e /root/ports.lst`" ] && echo $e >> /root/ports.lst
- pkg_delete -f $e_installed 1>/dev/null 2>&1
- if [ ! -z `pkg_info -oq $e_installed 2>/dev/null` ]; then
- echo "*** cannot proceed without first removing the package ***"
- fi
- else
- echo "Installing new port:"
- touch /root/ports.lst
- echo $e >> /root/ports.lst
- fi
-
- echo -n "Do you want to explicitly set config options now? [n] "
- read key2
- case $key2 in
- y) echo -n "Recursive? [n] "
- read key
- case $key in
- y) cd /usr/ports/$e && make config-recursive
- cd /usr/ports/$e && make install clean;;
- *) cd /usr/ports/$e && make config
- cd /usr/ports/$e && make install clean;;
- esac;;
-
- *) cd /usr/ports/$e && make install clean;;
- esac;;
- esac
- done
- done
-}
-
-all() {
- root
- echo ""
- echo -n "Do you want to upgrade all installed packages using binary packages? (interactive mode) [y] "
- read key
-
- case $key in
- n) echo "Upgrading all ports:"
- all=`pkg_info -aoq`
- pkg_delete -ifa
- for e in $all; do
- cd /usr/ports/$e && make install clean
- done
- exit 0;;
- *) echo "Upgrading all packages:"
- all=`ls -l /var/db/pkg/ | awk '{print $9}' | sed 's/\(.*\)-.*/\1/g' | awk '{ORS=" " ;print}'`
- pkg_delete -ifa && pkg_add -r $all
- exit 0;;
- esac
-}
-
-all_non-interactive() {
- root
- echo ""
- echo -n "Do you want to upgrade all installed packages using binary packages? (non-interactive mode) [y] "
- read key
-
- case $key in
- n) echo "Upgrading all ports:"
- all=`pkg_info -aoq`
- pkg_delete -fa
- for e in $all; do
- cd /usr/ports/$e && make install clean
- done
- exit 0;;
- *) echo "Upgrading all packages:"
- all=`ls -l /var/db/pkg/ | awk '{print $9}' | sed 's/\(.*\)-.*/\1/g' | awk '{ORS=" " ;print}'`
- pkg_delete -fa && pkg_add -r $all
- exit 0;;
- esac
+ help
}
pkg_info-xI() {
@@ -376,7 +80,7 @@ pkg_info-xL() {
pkg_info -L `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
done
else
- echo "bpkg: no installed packages match $e"
+ echo "bpkg: no installed ports match $e"
fi
done
exit 0
@@ -385,7 +89,7 @@ pkg_info-xL() {
pkg_inf() {
echo -e "\033[33m*** installed ***\033[0m"
pkg_info
- echo "***`pkg_info | wc -l` packages installed ***"
+ echo "***`pkg_info | wc -l` ports installed ***"
exit 0
}
@@ -401,7 +105,7 @@ pkg_info-xs() {
pkg_info -s `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
done
else
- echo "bpkg: no installed packages match $e"
+ echo "bpkg: no installed ports match $e"
fi
done
exit 0
@@ -450,7 +154,7 @@ pkg_info-xg() {
pkg_info -g `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
done
else
- echo "bpkg: no installed packages match $e"
+ echo "bpkg: no installed ports match $e"
fi
done
exit 0
@@ -494,28 +198,28 @@ pkg_info-xk() {
pkg_info -k `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
done
else
- echo "bpkg: no installed packages match $e"
+ echo "bpkg: no installed ports match $e"
fi
done
exit 0
}
pkg_info-xD() {
- for e in $pkg; do
- info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
-
- if [ ! -z "$info" ]; then
- for i in $info; do
- echo -e "\033[33m*** installed ***\033[0m"
- echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
- echo ""
- pkg_info -D `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
- done
- else
- echo "bpkg: no installed packages match $e"
- fi
- done
- exit 0
+ for e in $pkg; do
+ info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
+
+ if [ ! -z "$info" ]; then
+ for i in $info; do
+ echo -e "\033[33m*** installed ***\033[0m"
+ echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
+ echo ""
+ pkg_info -D `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
+ done
+ else
+ echo "bpkg: no installed ports match $e"
+ fi
+ done
+ exit 0
}
pkg_info-x() {
@@ -547,7 +251,7 @@ pkg_info-x() {
pkg_ver() {
echo -e "\033[33m*** installed ***\033[0m"
pkg_version -Iv
- echo "***`pkg_info | wc -l` packages installed ***"
+ echo "***`pkg_info | wc -l` ports installed ***"
exit 0
}
@@ -603,7 +307,7 @@ make_search_info() {
exit 0
}
-pkg_find() {
+pkg_ftp() {
arch=`uname -m`
sys=`uname -r | cut -d- -f1,2 | tr '[:upper:]' '[:lower:]'`
@@ -628,45 +332,6 @@ pkg_latestftp() {
exit 0
}
-pkg_delete-xr() {
- root
- z=`pkg_info -xoQ $pkg 2>/dev/null`
-
- if [ -z "$z" ]; then
- echo "bpkg: no installed packages match pattern(s)"
- exit 0
- fi
-
- echo -e "\033[33m*** installed ***\033[0m"
- pkg_info -xoQ $pkg | awk -F: '{OFS=": " ; print $2, $1}'
- touch /root/ports.lst
- for e in $pkg; do
- sed -i '' s,.*$e,,g /root/ports.lst 1>/dev/null 2>&1
- done
- echo ""
- echo -n "Do you want to use recursive removal? [n] "
- read key
-
- case $key in
- y) echo -n "Do you want to use force removal? [n] "
- read key2
- case $key2 in
- y) pkg_delete -xrfi $pkg
- exit 0;;
- *) pkg_delete -xri $pkg
- exit 0;;
- esac;;
- *) echo -n "Do you want to use force removal? [n] "
- read key2
- case $key2 in
- y) pkg_delete -xf $pkg
- exit 0;;
- *) pkg_delete -x $pkg
- exit 0;;
- esac;;
- esac
-}
-
pkg_clean() {
root
echo "Cleaning /usr/ports/distfiles/*"
@@ -695,7 +360,7 @@ pkg_backup() {
z=`pkg_info -xoQ $pkg 2>/dev/null`
if [ -z "$z" ]; then
- echo "bpkg: no installed packages match pattern(s)"
+ echo "bpkg: no installed ports match pattern(s)"
exit 0
fi
@@ -710,7 +375,7 @@ pkg_backup() {
pkg_time() {
echo "Packages (date of installation):"
/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 ***"
+ echo "***`pkg_info | wc -l` ports installed ***"
exit 0
}
@@ -824,81 +489,12 @@ make_config() {
exit 0
}
-make_depends() {
- root
- if [ -z "$pkg" ]; then
- echo "bpkg: you didn't specify any package to install/upgrade"
- exit 0
- fi
-
- echo "Available in ports:"
- for i in $pkg; do
- cd /usr/ports && make search path=/$e.* | awk '/Port/ /Path/ { print $0 "\n" }'
- done
-
- for z in $pkg; do
- pkg_install=`cd /usr/ports && make search path=/$z.* | grep Path | cut -d/ -f4,5`
-
- for e in $pkg_install; do
- e_stripped=`echo $e | cut -d/ -f2`
- e_installed=`grep $e$ /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
-
- if [ -z "$e_installed" ]; then
- echo -n "Do you want to install new $e? [y] "
- else
- echo -n "Do you want to upgrade installed $e_installed? [y] "
- fi
- read key
- case $key in
- n) ;;
- *)
- if [ ! -z "$e_installed" ]; then
- echo -n "Creating backup package in /usr/obj/$e_installed.tbz... "
- cd /usr/obj/ && pkg_create -b $e_installed
- echo "Done."
- fi
-
- echo ""
- if [ ! -z "$e_installed" ]; then
- echo "Upgrading installed port and all dependencies:"
- pkg_delete -f $e_installed 1>/dev/null 2>&1
- if [ ! -z `pkg_info -oq $e_installed 2>/dev/null` ]; then
- echo "*** cannot proceed without first removing the package ***"
- exit 0
- fi
- else
- echo "Installing new port and all dependencies:"
- fi
-
- echo -n "Do you want to explicitly set config options now? [n] "
- read key2
- case $key2 in
- y) echo -n "Recursive? [n] "
- read key
- case $key in
- y) cd /usr/ports/$e && make config-recursive
- cd /usr/ports/$e && make depends && make install clean
- exit 0;;
- *) cd /usr/ports/$e && make config
- cd /usr/ports/$e && make depends && make install clean
- exit 0;;
- esac;;
-
- *) cd /usr/ports/$e && make depends && make install clean
- exit 0;;
- esac
- exit 0;;
- esac
- done
- done
-}
-
make_ldd() {
for e in $pkg; do
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
if [ -z "$info" ]; then
- echo "bpkg: no installed packages match $e"
+ echo "bpkg: no installed ports match $e"
else
for i in $info; do
echo -e "\033[33m*** installed ***\033[0m"
@@ -1109,8 +705,8 @@ make_ldd_all() {
help() {
echo "bpkg version `pkg_info -xI bpkg | cut -d- -f2 | cut -d' ' -f1`"
echo ""
- echo "Usage: bpkg [-bBdDeEfFgiIjkLmMnoOpqQrsSwz] pkg-name ..."
- echo " bpkg [-aAcChltvZ]"
+ echo "Usage: bpkg [-bdefgiIjkLmMoOpqQrsSwz] pkg-name ..."
+ echo " bpkg [-cChltvZ]"
echo ""
echo "Please see the bpkg(8) man page for more information"
echo ""
@@ -1120,24 +716,16 @@ help() {
# End of functions
################################################################################
-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
+while getopts b:d:e:f:g:i:I:j:k:L:m:M:o:O:p:q:Q:r:s:S:w:z:cChltvZ opts; do
case $opts in
b) pkg=$OPTARG
- build_port;;
- B) pkg=$OPTARG
- pkg_backup;;
+ pkg_backup;;
d) pkg=$OPTARG
- pkg_delete-xr;;
- D) pkg=$OPTARG
pkg_info-x;;
e) pkg=$OPTARG
make_config;;
- E) pkg=$OPTARG
- make_depends;;
f) pkg=$OPTARG
pkg_info-xf;;
- F) pkg=$OPTARG
- pkg_find;;
g) pkg=$OPTARG
pkg_info-xg;;
i) pkg=$OPTARG
@@ -1154,8 +742,6 @@ 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 op
pkg_makefile;;
M) pkg=$OPTARG
pkg_info-xD;;
- n) pkg=$OPTARG
- simulation;;
o) pkg=$OPTARG
make_showc;;
O) pkg=$OPTARG
@@ -1163,7 +749,7 @@ 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 op
p) pkg=$OPTARG
pkg_path;;
q) pkg=$OPTARG
- pkg_latest;;
+ pkg_ftp;;
Q) pkg=$OPTARG
pkg_latestftp;;
r) pkg=$OPTARG
@@ -1176,8 +762,6 @@ 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 op
pkg_which-;;
z) pkg=$OPTARG
make_ldd;;
- a) all;;
- A) all_non-interactive;;
c) pkg_clean;;
C) pkg_clean2;;
h) help;;
diff --git a/ports-mgmt/bpkg/pkg-descr b/ports-mgmt/bpkg/pkg-descr
index 2a3270bee329..f32cbdbcafe8 100644
--- a/ports-mgmt/bpkg/pkg-descr
+++ b/ports-mgmt/bpkg/pkg-descr
@@ -1,7 +1,6 @@
-bpkg is a simple tool written in sh(1) for managing FreeBSD packages/ports. It
-is a wrapper around base system utilities manipulating the FreeBSD Ports
-Collection. The main goal of this project is to provide one universal tool for
-packages/ports management.
+bpkg is a simple tool written in sh(1) for displaying information about ports.
+Its main goal is to provide a quick way to display all kinds of useful info
+about installed ports and the whole ports tree.
-- Andy Kosela
<andy.kosela@gmail.com>