Permalink
Browse files

- add {pre,post}install support

  • Loading branch information...
1 parent 6aa5097 commit fd83c5af0ff14a50d83e8ec636bd513a507234e4 @jordansissel committed Jun 15, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/fpm/target/solaris.rb
@@ -54,6 +54,9 @@ def build!(params)
# TODO(sissel): allow setting default file owner.
File.open("Prototype", "w") do |prototype|
prototype.puts("i pkginfo")
+ prototype.puts("i preinstall") if self.scripts["pre-install"]
+ prototype.puts("i postinstall") if self.scripts["post-install"]
+
# TODO(sissel): preinstall/postinstall
IO.popen("pkgproto data=/").each_line do |line|
type, klass, path, mode, user, group = line.split

0 comments on commit fd83c5a

Please sign in to comment.