Monday, January 26, 2009

More webcore fonts for Solaris desktop

Some time ago I wrote about adding Microsoft webcore fonts to Solaris. Since then some more fonts have been added to the archive and it is time to update my recipe as well. However this time I wanted to automate the process as much as I could. So I came up with the script that downloads the fonts and builds the package.

Here is the log of this script working:


zero:/export/dev/webcore-fonts> ./mkwebcore-fonts
Downloading webcore-fonts-3.0.tar.gz...
######################################################################## 100.0%
## Building pkgmap from package prototype file.
## Processing pkginfo file.
WARNING: parameter set to "zero20090126225723"
WARNING: parameter set to "none"
## Attempting to volumize 73 entries in pkgmap.
part 1 -- 29060 blocks, 351 entries
## Packaging one part.
/var/spool/pkg/webcore-fonts/pkgmap
/var/spool/pkg/webcore-fonts/pkginfo
/var/spool/pkg/webcore-fonts/root/etc/fonts/local.conf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CALIBRI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CALIBRIB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CALIBRII.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CALIBRIZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CAMBRIA.TTC
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CAMBRIAB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CAMBRIAI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CAMBRIAZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CANDARA.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CANDARAB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CANDARAI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CANDARAZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSOLA.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSOLAB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSOLAI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSOLAZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSTAN.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSTANB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSTANI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CONSTANZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CORBEL.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CORBELB.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CORBELI.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/CORBELZ.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore-vista/fonts.scale
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/WINGDNG2.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/WINGDNG3.TTF
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/andalemo.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/arial.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/arialbd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/arialbi.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/ariali.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/ariblk.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/comic.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/comicbd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/cour.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/courbd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/courbi.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/couri.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/fonts.scale
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/georgia.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/georgiab.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/georgiai.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/georgiaz.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/impact.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/l_10646.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/lucon.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/micross.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/symbol.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/tahoma.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/tahomabd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/times.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/timesbd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/timesbi.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/timesi.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/trebuc.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/trebucbd.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/trebucbi.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/trebucit.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/verdana.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/verdanab.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/verdanai.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/verdanaz.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/webdings.ttf
/var/spool/pkg/webcore-fonts/root/usr/share/fonts/webcore/wingding.ttf
/var/spool/pkg/webcore-fonts/install/copyright
/var/spool/pkg/webcore-fonts/install/postinstall
## Validating control scripts.
## Packaging complete.
##
## The "webcore-fonts" package is ready and spooled. Run pkgadd to install it
##
zero:/export/dev/webcore-fonts> pfexec pkgadd

The following packages are available:
1 webcore-fonts Collection of popular high quality TrueType fonts
(all) 3.0,REV=20090126

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

Collection of popular high quality TrueType fonts(all) 3.0,REV=20090126
See Microsoft license.
## Processing package information.
## Processing system information.
4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing Collection of popular high quality TrueType fonts as

## Installing part 1 of 1.
/etc/fonts/local.conf
/usr/share/fonts/webcore-vista/CALIBRI.TTF
/usr/share/fonts/webcore-vista/CALIBRIB.TTF
/usr/share/fonts/webcore-vista/CALIBRII.TTF
/usr/share/fonts/webcore-vista/CALIBRIZ.TTF
/usr/share/fonts/webcore-vista/CAMBRIA.TTC
/usr/share/fonts/webcore-vista/CAMBRIAB.TTF
/usr/share/fonts/webcore-vista/CAMBRIAI.TTF
/usr/share/fonts/webcore-vista/CAMBRIAZ.TTF
/usr/share/fonts/webcore-vista/CANDARA.TTF
/usr/share/fonts/webcore-vista/CANDARAB.TTF
/usr/share/fonts/webcore-vista/CANDARAI.TTF
/usr/share/fonts/webcore-vista/CANDARAZ.TTF
/usr/share/fonts/webcore-vista/CONSOLA.TTF
/usr/share/fonts/webcore-vista/CONSOLAB.TTF
/usr/share/fonts/webcore-vista/CONSOLAI.TTF
/usr/share/fonts/webcore-vista/CONSOLAZ.TTF
/usr/share/fonts/webcore-vista/CONSTAN.TTF
/usr/share/fonts/webcore-vista/CONSTANB.TTF
/usr/share/fonts/webcore-vista/CONSTANI.TTF
/usr/share/fonts/webcore-vista/CONSTANZ.TTF
/usr/share/fonts/webcore-vista/CORBEL.TTF
/usr/share/fonts/webcore-vista/CORBELB.TTF
/usr/share/fonts/webcore-vista/CORBELI.TTF
/usr/share/fonts/webcore-vista/CORBELZ.TTF
/usr/share/fonts/webcore-vista/fonts.scale
/usr/share/fonts/webcore/WINGDNG2.TTF
/usr/share/fonts/webcore/WINGDNG3.TTF
/usr/share/fonts/webcore/andalemo.ttf
/usr/share/fonts/webcore/arial.ttf
/usr/share/fonts/webcore/arialbd.ttf
/usr/share/fonts/webcore/arialbi.ttf
/usr/share/fonts/webcore/ariali.ttf
/usr/share/fonts/webcore/ariblk.ttf
/usr/share/fonts/webcore/comic.ttf
/usr/share/fonts/webcore/comicbd.ttf
/usr/share/fonts/webcore/cour.ttf
/usr/share/fonts/webcore/courbd.ttf
/usr/share/fonts/webcore/courbi.ttf
/usr/share/fonts/webcore/couri.ttf
/usr/share/fonts/webcore/fonts.scale
/usr/share/fonts/webcore/georgia.ttf
/usr/share/fonts/webcore/georgiab.ttf
/usr/share/fonts/webcore/georgiai.ttf
/usr/share/fonts/webcore/georgiaz.ttf
/usr/share/fonts/webcore/impact.ttf
/usr/share/fonts/webcore/l_10646.ttf
/usr/share/fonts/webcore/lucon.ttf
/usr/share/fonts/webcore/micross.ttf
/usr/share/fonts/webcore/symbol.ttf
/usr/share/fonts/webcore/tahoma.ttf
/usr/share/fonts/webcore/tahomabd.ttf
/usr/share/fonts/webcore/times.ttf
/usr/share/fonts/webcore/timesbd.ttf
/usr/share/fonts/webcore/timesbi.ttf
/usr/share/fonts/webcore/timesi.ttf
/usr/share/fonts/webcore/trebuc.ttf
/usr/share/fonts/webcore/trebucbd.ttf
/usr/share/fonts/webcore/trebucbi.ttf
/usr/share/fonts/webcore/trebucit.ttf
/usr/share/fonts/webcore/verdana.ttf
/usr/share/fonts/webcore/verdanab.ttf
/usr/share/fonts/webcore/verdanai.ttf
/usr/share/fonts/webcore/verdanaz.ttf
/usr/share/fonts/webcore/webdings.ttf
/usr/share/fonts/webcore/wingding.ttf
[ verifying class ]
## Executing postinstall script.

Installation of was successful.



That's it. Pretty simple. You may need to restart you desktop applications for them to pick up new fonts.

1 comment:

Zoltán Hamar said...

Thank you for the script. Unfortunately the .ttf files do not included in the Solaris package under OpenSolaris 2008.11. But if you copy the .ttf files by hand to the directories /usr/share/fonts/webcore and webcore-vista after the installation of the package, all is O.K.

Toda rabba,
Yours sincerely,
Zoltan Hamar