ref: 1e8c6d3d412ce472d3173a78e285697b71803fb5
dir: /sys/src/cmd/pkg/install/
#!/bin/rc if(~ $#pkgpath 0) pkgpath=http://plan9.stanleylieber.com/pkg/$cputype cd / mkdir -p /sys/lib/pkg if (test -s /sys/lib/pkg/$1) { echo $1 already installed exit } echo Installing $1 if(~ $pkgpath ftp* http*) cmd=hget if not cmd=cat if(! $cmd $pkgpath/$1.tbz | bunzip2 | pkg/unpkg >/sys/lib/pkg/$1) if(! test -s /sys/lib/pkg/$1) rm -f /sys/lib/pkg/$1