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

⌈⌋ ⎇ branch:  cross package maker


Check-in [1aeeb83f0c]

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

Overview
Comment:be more energetic with method naming, and use symbols
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1aeeb83f0cab7a9583d94ccbae47d1410e2e2a95
User & Date: jjmadkisson@gmail.com 2011-01-06 02:29:43
Context
2011-01-06
02:31
the assemble method has moved to builder check-in: 61ca7556f3 user: jjmadkisson@gmail.com tags: trunk
02:29
be more energetic with method naming, and use symbols check-in: 1aeeb83f0c user: jjmadkisson@gmail.com tags: trunk
02:28
Builder#assemble! doesn't actually take any params check-in: 27c9d5d259 user: jjmadkisson@gmail.com tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to lib/fpm/deb.rb.

15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    end
  end

  def specfile(builddir)
    "#{builddir}/control"
  end

  def build(params)
    # Make the control
    system("tar -zcf control.tar.gz control md5sums")

    # create debian-binary
    File.open("debian-binary", "w") { |f| f.puts "2.0" }

    # pack up the .deb
    system("ar -qc #{params["output"]} debian-binary control.tar.gz data.tar.gz")

  end # def build
end # class FPM::Deb








|







|




15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
    end
  end

  def specfile(builddir)
    "#{builddir}/control"
  end

  def build!(params)
    # Make the control
    system("tar -zcf control.tar.gz control md5sums")

    # create debian-binary
    File.open("debian-binary", "w") { |f| f.puts "2.0" }

    # pack up the .deb
    system("ar -qc #{params[:output]} debian-binary control.tar.gz data.tar.gz")

  end # def build
end # class FPM::Deb