mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- Update to 2.0.2
PR: 125773 Submitted by: maintainer
This commit is contained in:
parent
54e565eedc
commit
5e191d2f8d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217133
@ -1,6 +1,6 @@
|
|||||||
# New ports collection makefile for: bpkg
|
# New ports collection makefile for: bpkg
|
||||||
# Date created: 24 June 2007
|
# Date created: 24 June 2007
|
||||||
# Whom: Andy Kosela <andy.kosela@gmail.com>
|
# Whom: Andy Kosela <akosela@andykosela.com>
|
||||||
#
|
#
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
#
|
||||||
@ -8,8 +8,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= bpkg
|
PORTNAME= bpkg
|
||||||
PORTVERSION= 2.0.1
|
PORTVERSION= 2.0.2
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= ports-mgmt
|
CATEGORIES= ports-mgmt
|
||||||
MASTER_SITES= # none
|
MASTER_SITES= # none
|
||||||
DISTFILES= # none
|
DISTFILES= # none
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.\" Copyright (c) 2007 Andy Kosela <andy.kosela@gmail.com>
|
.\" Copyright (c) 2007-2008 Andy Kosela <akosela@andykosela.com>
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
.\"
|
.\"
|
||||||
.\" Redistribution and use in source and binary forms, with or without
|
.\" Redistribution and use in source and binary forms, with or without
|
||||||
@ -23,7 +23,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\"
|
.\"
|
||||||
.Dd July 4, 2008
|
.Dd July 19, 2008
|
||||||
.Dt BPKG 8
|
.Dt BPKG 8
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -45,7 +45,7 @@ installed ports and the whole ports tree.
|
|||||||
The following command line arguments are supported:
|
The following command line arguments are supported:
|
||||||
.Bl -tag -width F1
|
.Bl -tag -width F1
|
||||||
.It Fl b
|
.It Fl b
|
||||||
create backup package in /var/tmp/ from a locally installed port.
|
create backup package in /var/tmp/bpkg/ from a locally installed port.
|
||||||
.It Fl c
|
.It Fl c
|
||||||
clean all distfiles in /usr/ports/distfiles/* [no arguments]
|
clean all distfiles in /usr/ports/distfiles/* [no arguments]
|
||||||
.It Fl C
|
.It Fl C
|
||||||
@ -127,7 +127,7 @@ Display 10 most recently installed ports.
|
|||||||
.Pp
|
.Pp
|
||||||
.Dl Ar "> bpkg -b 'foo bar'"
|
.Dl Ar "> bpkg -b 'foo bar'"
|
||||||
.Pp
|
.Pp
|
||||||
Create backup packages of foo and bar in /var/tmp/ directory.
|
Create backup packages of foo and bar in /var/tmp/bpkg/ directory.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr pkg_add 1 ,
|
.Xr pkg_add 1 ,
|
||||||
.Xr pkg_create 1 ,
|
.Xr pkg_create 1 ,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
# Copyright (c) 2007 Andy Kosela <andy.kosela@gmail.com>
|
# Copyright (c) 2007-2008 Andy Kosela <akosela@andykosela.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -55,10 +55,12 @@ pkg_info-xI() {
|
|||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e | \
|
||||||
|
grep -w Path | cut -d/ -f4,5`
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep COMMENT | cut -d= -f2`"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
@ -75,9 +77,11 @@ pkg_info-xL() {
|
|||||||
if [ ! -z "$info" ]; then
|
if [ ! -z "$info" ]; then
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -L `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -L `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "bpkg: no installed ports match $e"
|
echo "bpkg: no installed ports match $e"
|
||||||
@ -100,9 +104,11 @@ pkg_info-xs() {
|
|||||||
if [ ! -z "$info" ]; then
|
if [ ! -z "$info" ]; then
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -s `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -s `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "bpkg: no installed ports match $e"
|
echo "bpkg: no installed ports match $e"
|
||||||
@ -116,10 +122,12 @@ pkg_info-xr() {
|
|||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep -w Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep -w COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep -w COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Information in ports for `echo $i | cut -d/ -f2`:"
|
echo "Information in ports for `echo $i | cut -d/ -f2`:"
|
||||||
echo ""
|
echo ""
|
||||||
@ -129,13 +137,15 @@ pkg_info-xr() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Information in ports for $i:"
|
echo "Information in ports for $i:"
|
||||||
echo ""
|
echo ""
|
||||||
cd /usr/ports && make search path=/$i$ | grep .*-deps
|
cd /usr/ports && make search path=/$i$ | grep .*-deps
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -rR `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -rR `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -149,9 +159,11 @@ pkg_info-xg() {
|
|||||||
if [ ! -z "$info" ]; then
|
if [ ! -z "$info" ]; then
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -g `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -g `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "bpkg: no installed ports match $e"
|
echo "bpkg: no installed ports match $e"
|
||||||
@ -165,10 +177,12 @@ pkg_info-xf() {
|
|||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep -w Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep -w COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep -w COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Packing list:"
|
echo "Packing list:"
|
||||||
cat /usr/ports/$i/pkg-plist
|
cat /usr/ports/$i/pkg-plist
|
||||||
@ -177,9 +191,11 @@ pkg_info-xf() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -f `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -f `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -193,9 +209,11 @@ pkg_info-xk() {
|
|||||||
if [ ! -z "$info" ]; then
|
if [ ! -z "$info" ]; then
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -k `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -k `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "bpkg: no installed ports match $e"
|
echo "bpkg: no installed ports match $e"
|
||||||
@ -211,9 +229,11 @@ pkg_info-xD() {
|
|||||||
if [ ! -z "$info" ]; then
|
if [ ! -z "$info" ]; then
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info -D `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info -D `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
echo "bpkg: no installed ports match $e"
|
echo "bpkg: no installed ports match $e"
|
||||||
@ -227,10 +247,12 @@ pkg_info-x() {
|
|||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep -w Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep -w COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep -w COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Description:"
|
echo "Description:"
|
||||||
echo "`cat /usr/ports/$i/pkg-descr`"
|
echo "`cat /usr/ports/$i/pkg-descr`"
|
||||||
@ -239,9 +261,11 @@ pkg_info-x() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
pkg_info `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
pkg_info `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -258,7 +282,8 @@ pkg_ver() {
|
|||||||
pkg_path() {
|
pkg_path() {
|
||||||
path=`cd /usr/ports && make search path=/$pkg | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$pkg | grep -w Path | cut -d/ -f4,5`
|
||||||
for e in $path; do
|
for e in $path; do
|
||||||
echo "$e" ; cat /usr/ports/$e/Makefile | grep -w COMMENT | cut -d= -f2
|
echo "$e" ; cat /usr/ports/$e/Makefile | grep -w COMMENT | \
|
||||||
|
cut -d= -f2
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@ -274,9 +299,9 @@ pkg_makefile() {
|
|||||||
make_search() {
|
make_search() {
|
||||||
for e in $pkg; do
|
for e in $pkg; do
|
||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e | grep -w Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e | \
|
||||||
|
grep -w Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
cd /usr/ports && make search path=/$i$
|
cd /usr/ports && make search path=/$i$
|
||||||
@ -284,7 +309,8 @@ make_search() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
cd /usr/ports && make search path=/$i$
|
cd /usr/ports && make search path=/$i$
|
||||||
done
|
done
|
||||||
@ -343,15 +369,15 @@ pkg_clean() {
|
|||||||
pkg_clean2() {
|
pkg_clean2() {
|
||||||
root
|
root
|
||||||
echo "Cleaning /usr/ports/distfiles/* and /usr/ports/*/*/work/"
|
echo "Cleaning /usr/ports/distfiles/* and /usr/ports/*/*/work/"
|
||||||
rm -rf /usr/ports/distfiles/* 1>/dev/null 2>&1 ; rm -rf /usr/ports/*/*/work/ 1>/dev/null 2>&1
|
rm -rf /usr/ports/distfiles/* 1>/dev/null 2>&1
|
||||||
|
rm -rf /usr/ports/*/*/work/ 1>/dev/null 2>&1
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_which-() {
|
pkg_which-() {
|
||||||
grep "$pkg"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$pkg"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | awk -F: '{ print $1 ":\t" $2 }'
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,18 +390,20 @@ pkg_backup() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pkg_install=`pkg_info -xoQ $pkg | cut -d: -f1 | awk '{ORS=" " ; print}'`
|
pkg_install=`pkg_info -xoQ ^$pkg | cut -d: -f1 | awk '{ORS=" " ;print}'`
|
||||||
echo "Creating backup package(s) "$pkg_install"in /var/tmp/"
|
echo "Creating backup package(s) "$pkg_install"in /var/tmp/bpkg/"
|
||||||
|
[ ! -d /var/tmp/bpkg/ ] && mkdir /var/tmp/bpkg/
|
||||||
for e in $pkg; do
|
for e in $pkg; do
|
||||||
i=`pkg_info -xoQ $e | cut -d: -f1'`
|
i=`pkg_info -xoQ ^$e | cut -d: -f1'`
|
||||||
cd /var/tmp/ && pkg_create -xb $i 1>/dev/null 2>&1
|
cd /var/tmp/bpkg/ && pkg_create -xb $i 1>/dev/null 2>&1
|
||||||
done
|
done
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_time() {
|
pkg_time() {
|
||||||
/bin/ls -lUTt /var/db/pkg/ | 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` ports installed ***"
|
echo "***`pkg_info | wc -l` ports installed ***"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
@ -383,14 +411,16 @@ pkg_time() {
|
|||||||
make_showc() {
|
make_showc() {
|
||||||
for e in $pkg; do
|
for e in $pkg; do
|
||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to display config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to display config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make showconfig-recursive;;
|
y) cd /usr/ports/$i && make showconfig-recursive;;
|
||||||
@ -401,9 +431,11 @@ make_showc() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to display config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to display config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make showconfig-recursive;;
|
y) cd /usr/ports/$i && make showconfig-recursive;;
|
||||||
@ -422,12 +454,15 @@ make_rmc() {
|
|||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to remove config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to remove config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make rmconfig-recursive;;
|
y) cd /usr/ports/$i && make rmconfig-recursive;;
|
||||||
@ -438,9 +473,11 @@ make_rmc() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to remove config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to remove config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make rmconfig-recursive;;
|
y) cd /usr/ports/$i && make rmconfig-recursive;;
|
||||||
@ -457,14 +494,16 @@ make_config() {
|
|||||||
root
|
root
|
||||||
for e in $pkg; do
|
for e in $pkg; do
|
||||||
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
info=`grep $e /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d: -f3`
|
||||||
|
|
||||||
if [ -z "$info" ]; then
|
if [ -z "$info" ]; then
|
||||||
path=`cd /usr/ports && make search path=/$e.* | grep Path | cut -d/ -f4,5`
|
path=`cd /usr/ports && make search path=/$e.* | \
|
||||||
|
grep Path | cut -d/ -f4,5`
|
||||||
for i in $path; do
|
for i in $path; do
|
||||||
echo -e "\033[33m*** not installed ***\033[0m"
|
echo -e "\033[33m*** not installed ***\033[0m"
|
||||||
echo "$i: `cat /usr/ports/$i/Makefile | grep COMMENT | cut -d= -f2`"
|
echo "$i: `cat /usr/ports/$i/Makefile | \
|
||||||
|
grep COMMENT | cut -d= -f2`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to set config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to set config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make config-recursive;;
|
y) cd /usr/ports/$i && make config-recursive;;
|
||||||
@ -475,9 +514,11 @@ make_config() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Do you want to set config options recursively? [n] "
|
echo -n \
|
||||||
|
"Do you want to set config options recursively? [n] "
|
||||||
read key
|
read key
|
||||||
case $key in
|
case $key in
|
||||||
y) cd /usr/ports/$i && make config-recursive;;
|
y) cd /usr/ports/$i && make config-recursive;;
|
||||||
@ -499,12 +540,14 @@ make_ldd() {
|
|||||||
else
|
else
|
||||||
for i in $info; do
|
for i in $info; do
|
||||||
echo -e "\033[33m*** installed ***\033[0m"
|
echo -e "\033[33m*** installed ***\033[0m"
|
||||||
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`"
|
echo "$i: `grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
|
grep -w ORIGIN | cut -d/ -f5`"
|
||||||
echo ""
|
echo ""
|
||||||
echo "List of dynamic object dependencies:"
|
echo "List of dynamic object dependencies:"
|
||||||
echo ""
|
pkg=`grep $i /var/db/pkg/*/+CONTENTS | \
|
||||||
pkg=`grep $i /var/db/pkg/*/+CONTENTS | grep -w ORIGIN | cut -d/ -f5`
|
grep -w ORIGIN | cut -d/ -f5`
|
||||||
bin=`pkg_info -L $pkg | awk '/\/usr\/local\/bin/ /\/usr\/local\/sbin/ /usr\/local\/libexec/'`
|
bin=`pkg_info -L $pkg | awk '/\/usr\/local\/bin/ \
|
||||||
|
/\/usr\/local\/sbin/ /usr\/local\/libexec/'`
|
||||||
for o in $bin; do
|
for o in $bin; do
|
||||||
/usr/bin/ldd -a $o
|
/usr/bin/ldd -a $o
|
||||||
done
|
done
|
||||||
@ -518,183 +561,197 @@ make_ldd() {
|
|||||||
make_ldd_all() {
|
make_ldd_all() {
|
||||||
echo ""
|
echo ""
|
||||||
echo "List of all missing dynamic object dependencies:"
|
echo "List of all missing dynamic object dependencies:"
|
||||||
echo ""
|
|
||||||
|
|
||||||
for e in `/bin/ls -l /bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /bin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /bin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /sbin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /sbin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/bin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/bin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/games/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/games/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/games/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/games/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/libexec/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/libexec/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/libexec/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/libexec/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/sbin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/sbin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/local/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/local/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/local/bin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/local/bin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for e in `/bin/ls -l /usr/local/libexec/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
|
||||||
|
for e in `/bin/ls -l /usr/local/libexec/ 2>/dev/null | \
|
||||||
|
awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/local/libexec/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/local/libexec/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for e in `/bin/ls -l /usr/local/sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
|
||||||
|
for e in `/bin/ls -l /usr/local/sbin/ 2>/dev/null | \
|
||||||
|
awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/local/sbin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/local/sbin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for e in `/bin/ls -l /usr/X11R6/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
for e in `/bin/ls -l /usr/X11R6/bin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/X11R6/bin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/X11R6/bin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for e in `/bin/ls -l /usr/X11R6/libexec/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
|
||||||
|
for e in `/bin/ls -l /usr/X11R6/libexec/ 2>/dev/null | \
|
||||||
|
awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/X11R6/libexec/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/X11R6/libexec/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for e in `/bin/ls -l /usr/X11R6/sbin/ 2>/dev/null | awk -F' ' '{print $9}'`; do
|
|
||||||
|
for e in `/bin/ls -l /usr/X11R6/sbin/ 2>/dev/null | \
|
||||||
|
awk -F' ' '{print $9}'`; do
|
||||||
libs=`/usr/bin/ldd -a /usr/X11R6/sbin/$e 2>/dev/null | grep found`
|
libs=`/usr/bin/ldd -a /usr/X11R6/sbin/$e 2>/dev/null | grep found`
|
||||||
if [ ! -z "$libs" ]; then
|
if [ ! -z "$libs" ]; then
|
||||||
grep "$e"$ /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$e"$ /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $1 ":\t" $2 }'
|
awk -F: '{ print $1 ":\t" $2 }'
|
||||||
echo "$libs"
|
echo "$libs"
|
||||||
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
for i in `echo $libs | cut -d' ' -f1 | cut -d. -f1,2`; do
|
||||||
grep "$i". /var/db/pkg/*/+CONTENTS | awk -F 'pkg/' '{ print $2 }' | \
|
grep "$i". /var/db/pkg/*/+CONTENTS | \
|
||||||
sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
awk -F 'pkg/' '{ print $2 }' | sed '/@dirrm/ d ; /@unexec/ d ; /@comment/ d ; s/\/+CONTENTS//g ; s/:@comment .*ORIGIN//g' | \
|
||||||
awk -F: '{ print $2 "\t [" $1 "]" }'
|
awk -F: '{ print $2 "\t [" $1 "]" }'
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user