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

⌈⌋ ⎇ branch:  cross package maker


Check-in [809801cadf]

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

Overview
Comment:meet FPM::Dir, the simplest source of all.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 809801cadfb416b6173c51f17ba55171d3c391b9
User & Date: jjmadkisson@gmail.com 2011-01-06 02:21:23
Context
2011-01-06
02:23
Package#default_output. Package managers usually have lots of guidelines and specs for naming conventions. This lets the package class provide a default. check-in: 79f79dd21b user: jjmadkisson@gmail.com tags: trunk
02:21
meet FPM::Dir, the simplest source of all. check-in: 809801cadf user: jjmadkisson@gmail.com tags: trunk
02:16
FPM::Builder The builder is the thing that takes a package and a source and makes them do things. It is responsible for fpm-wide defaults, keeping track of paths of things, etc. Note in particular the change to bin/fpm. check-in: 5d5fc27a6a user: jjmadkisson@gmail.com tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added lib/fpm/dir.rb.

























>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
class FPM::Dir < FPM::Source
  def get_metadata
    self[:name] = File.basename(File.expand_path(root))
  end

  def make_tarball!(tar_path)
    tar(tar_path, paths)

    # TODO(sissel): Make a helper method.
    system(*["gzip", "-f", tar_path])
  end
end