pkg: add pkg/local, $PKG_PATH
This commit is contained in:
parent
e17a2a9e89
commit
75ccd88e99
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/rc -e
|
#!/bin/rc -e
|
||||||
|
|
||||||
|
if(~ $#PKG_PATH 0)
|
||||||
|
PKG_PATH=http://pkg.violetti.org
|
||||||
|
|
||||||
cd /
|
cd /
|
||||||
mkdir -p /sys/lib/pkg
|
mkdir -p /sys/lib/pkg
|
||||||
if (test -s /sys/lib/pkg/$1) {
|
if (test -s /sys/lib/pkg/$1) {
|
||||||
|
@ -7,6 +10,6 @@ if (test -s /sys/lib/pkg/$1) {
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
echo Installing $1
|
echo Installing $1
|
||||||
hget http://pkg.violetti.org/$cputype/$1.tbz | bunzip2 | pkg/unpkg>[2]/sys/lib/pkg/$1
|
hget $PKG_PATH/$cputype/$1.tbz | bunzip2 | pkg/unpkg>[2]/sys/lib/pkg/$1
|
||||||
echo Done
|
echo Done
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
|
|
||||||
hget http://pkg.violetti.org/$cputype | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz$//'
|
if(~ $#PKG_PATH 0)
|
||||||
|
PKG_PATH=http://pkg.violetti.org
|
||||||
|
|
||||||
|
hget $PKG_PATH/$cputype | htmlfmt | grep '\.tbz' | sed -e 's/\.tbz$//'
|
||||||
|
|
3
sys/src/cmd/pkg/local
Executable file
3
sys/src/cmd/pkg/local
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/rc
|
||||||
|
|
||||||
|
ls -p /sys/lib/pkg
|
Loading…
Reference in a new issue