使用blastwave.org作为IPS的repository

If you're looking for a build of some open source software that's not in the default IPS repository, there's a good chance you'll find it on Blastwave. All of their packages have been made available via an IPS repository (although, I couldn't find this advertised on their site):

http://blastwave.network.com:10000/

Loading the page above shows you there's over 1700 packages in all:

Before you can install packages from the Blastwave repository, however, you need to add Blastwave to your list of package authorities. To see your current list of configured authorities, run pkg authority:

bleonard@opensolaris:~$ pkg authority
AUTHORITY URL
opensolaris.org (preferred) http://pkg.opensolaris.org:80/

To add a new authority, such as Blastwave:
pfexec pkg set-authority -O http://blastwave.network.com:10000 blastwave.org

bleonard@opensolaris:~$ pkg authority
AUTHORITY URL
opensolaris.org (preferred) http://pkg.opensolaris.org:80/
blastwave.org http://blastwave.network.com:10000/

All of the packages in the Blastwave repository begin with IPS, for example IPSprboom.
bleonard@opensolaris:~$ pkg info -r IPSprboom
Traceback (most recent call last):
File "/usr/bin/pkg", line 1734, in ?
ret = main_func()
File "/usr/bin/pkg", line 1708, in main_func
return info(img, pargs)
File "/usr/bin/pkg", line 907, in info
img.load_catalogs(progress.NullProgressTracker())
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1059, in load_catalogs
authority = auth["prefix"])
File "/usr/lib/python2.4/vendor-packages/pkg/catalog.py", line 123, in __init__
os.makedirs(cat_root)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/pkg/catalog/blastwave.org'
pkg:

This is an internal error, please let the developers know about this
problem by filing a bug at http://defect.opensolaris.org and including the
above traceback and the output of 'pkg version'.

This problem has already been fixed in the source: changes to authorities should include refresh. For now, the simple work around is to do a manual refresh:

pfexec pkg refresh

Trying pkg info again:

bleonard@opensolaris:~$ pkg info -r IPSprboom
Name: IPSprboom
Summary: prboom - A port of the ID Software game DOOM
State: Not installed
Authority: blastwave.org
Version: 0.5.11
Build Release: 5.10
Branch: 2.6
Packaging Date: Wed May 14 17:06:37 2008
Size: 5.3 MB
FMRI: pkg://blastwave.org/[email protected],5.10-2.6:20080514T170637Z

Now it can be installed as any other IPS package:

bleonard@opensolaris:~$ pfexec pkg install IPSprboom
DOWNLOAD PKGS FILES XFER (MB)
Completed 57/57 5331/5331 148.82/148.82

PHASE ACTIONS
Install Phase 9123/9123
PHASE ITEMS
Reading Existing Index 8/8
Indexing Packages 57/57

FYI, to run this particular game:

/opt/csw/bin/prboom -iwad /opt/csw/share/games/doom/doom-1.8.wad

你可能感兴趣的:(OS)