haubi
Posts: 1
Joined: Apr. 6, '06,
Status: offline
|
Hi,
when bootstrapping with pkg-current-bin35.sh (as of pkg-2.5.1), i end up with no pkg_* in /usr/local/bin/ at all.
$ ./pkg-current-bin35.sh
<snip>
the bottom of page http://www.interopsystems.com/tools/pkg_install.htm
Press Enter to continue or ^C to cancel.
Now in directory /usr/local/packages extracting the file
Please wait...
tar: Removing leading / from absolute path names in the archive
usr/local/bin/pkg_add
usr/local/bin/pkg_create
<snip>
var/db/pkg/env_manpath_local-1.0.7-bin/+DESC
var/db/pkg/env_manpath_local-1.0.7-bin/+REQUIRED_BY
Installation of software completed.
<snip>
Would you like to update now? (y/n)[y]
Using 'pkg_add' to get the update of 'pkg' (the installer).
This will take a couple of minutes...
./pkg-current-bin35.sh[244]: /usr/local/bin/pkg_add: not found
Finished getting the update for 'pkg'.
Done.
$
After some digging, i found the expected files extracted into /tmp/{bin,usr,var}/
So i applied this patch to pkg-current-bin35.sh to get it working as expected:
@@ -144,7 +144,8 @@
# umask adjusted here with purpose for 'tar' running
umask 2
-/tmp/tar xvpf pkg-${ver}-bin35.tar
+cd /
+/tmp/tar xvpf /tmp/pkg-${ver}-bin35.tar
if [ ! -e /usr/local/share/terminfo ]; then
/bin/mkdir -p /usr/local/share
Is this the fix for my problem, or did i miss something ?
-- haubi
|