martin carpenter

contents

most popular
2012/05/05, updated 2012/12/15
ubuntu unity lens for vim
2010/04/14
ckwtmpx

solaris-prototype

2011/09/15

tags: ruby gem solaris prototype(4)

api documentation http://mcarpenter.org/rdoc/solaris-prototype/index.html
github home http://github.com/mcarpenter/solaris-prototype
repository URLs https://github.com/mcarpenter/solaris-prototype.git
git://github.com/mcarpenter/solaris-prototype.git

about

The solaris-prototype gem helps with the manipulation of SunOS and Solaris prototype entries for SysV packages.

examples

prepare a prototype for installation as another user

p = Solaris::Prototype.from_path './usr/local/bin/foo'
p.to_s
  => "f none ./usr/local/bin/foo 0755 martin staff"
p.owner = 'root'
p.group = 'sys'
p.to_s
  => "f none ./usr/local/bin/foo 0755 root sys"
p.pathname = "/usr/local/bin/foo=./usr/local/bin/foo"
  => "f none /usr/local/bin/foo=./usr/local/bin/foo 0755 root sys"

This can then be fed into pkgmk(1M).