Cross package maker. DEB/RPM generation or conversion. Derived from jordansissel/fpm.

⌈⌋ ⎇ branch:  cross package maker


Check-in [bfaa984a16]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:- add {pre,post}install support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bfaa984a16ceb44ca62f79fec0a034367e7a58dd
User & Date: jls@semicomplete.com 2011-06-15 07:40:52
Context
2011-06-15
07:41
Merge remote branch 'origin/feature/solaris' check-in: 5a0f275ce5 user: jls@semicomplete.com tags: trunk
07:40
- add {pre,post}install support check-in: bfaa984a16 user: jls@semicomplete.com tags: trunk
07:26
- Version bump. - This version adds solaris package support. Thanks to Ben Rockwood for donating a Joyent Solaris instance so I could work on this. check-in: f71b1150b7 user: jls@semicomplete.com tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/fpm/target/solaris.rb.

50
51
52
53
54
55
56



57
58
59
60
61
62
63

    #system("(echo 'i pkginfo'; pkgproto data=/) > Prototype")

    # Generate the package 'Prototype' file
    # TODO(sissel): allow setting default file owner.
    File.open("Prototype", "w") do |prototype|
      prototype.puts("i pkginfo")



      # TODO(sissel): preinstall/postinstall
      IO.popen("pkgproto data=/").each_line do |line|
        type, klass, path, mode, user, group = line.split
        # Override stuff in pkgproto
        # TODO(sissel): Make this tunable?
        user = "root"
        group = "root"







>
>
>







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

    #system("(echo 'i pkginfo'; pkgproto data=/) > Prototype")

    # Generate the package 'Prototype' file
    # 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
        # Override stuff in pkgproto
        # TODO(sissel): Make this tunable?
        user = "root"
        group = "root"