lib/vanagon/platform/deb.rb
def generate_package(project)
        target_dir = project.repo ? output_dir(project.repo) : output_dir
        pkg_arch_opt = project.noarch ? "" : "-a#{@architecture}"
        ["mkdir -p output/#{target_dir}",
        "mkdir -p $(tempdir)/#{project.name}-#{project.version}",
        "cp #{project.name}-#{project.version}.tar.gz $(tempdir)/#{project.name}_#{project.version}.orig.tar.gz",
        "cat file-list >> debian/install",
        "cp -pr debian $(tempdir)/#{project.name}-#{project.version}",
        "gunzip -c #{project.name}-#{project.version}.tar.gz | '#{@tar}' -C '$(tempdir)/#{project.name}-#{project.version}' --strip-components 1 -xf -",
        "sed -i 's/\ /?/g' $(tempdir)/#{project.name}-#{project.version}/debian/install",
        "(cd $(tempdir)/#{project.name}-#{project.version}; debuild --no-lintian #{pkg_arch_opt} -uc -us)",
        "cp $(tempdir)/*.deb ./output/#{target_dir}"]
      end
# The specific bits used to generate a debian package for a given project
#
# @param project [Vanagon::Project] project to build a debian package of
# @return [Array] list of commands required to build a debian package for the given project from a tarball
The specific bits used to generate a debian package for a given project
The specific bits used to generate a debian package for a given project
def generate_package(project)
        target_dir = project.repo ? output_dir(project.repo) : output_dir
        pkg_arch_opt = project.noarch ? "" : "-a#{@architecture}"
        ["mkdir -p output/#{target_dir}",
        "mkdir -p $(tempdir)/#{project.name}-#{project.version}",
        "cp #{project.name}-#{project.version}.tar.gz $(tempdir)/#{project.name}_#{project.version}.orig.tar.gz",
        "cat file-list >> debian/install",
        "cp -pr debian $(tempdir)/#{project.name}-#{project.version}",
        "gunzip -c #{project.name}-#{project.version}.tar.gz | '#{@tar}' -C '$(tempdir)/#{project.name}-#{project.version}' --strip-components 1 -xf -",
        "sed -i 's/\ /?/g' $(tempdir)/#{project.name}-#{project.version}/debian/install",
        "(cd $(tempdir)/#{project.name}-#{project.version}; debuild --no-lintian #{pkg_arch_opt} -uc -us)",
        "cp $(tempdir)/*.deb ./output/#{target_dir}"]
      end
def generate_package ( project ) target_dir = project . repo ? output_dir ( project . repo ) : output_dir pkg_arch_opt = project . noarch ? "" : "-a#{@architecture}" [ "mkdir -p output/#{target_dir}" , "mkdir -p $(tempdir)/#{project.name}-#{project.version}" , "cp #{project.name}-#{project.version}.tar.gz $(tempdir)/#{project.name}_#{project.version}.orig.tar.gz" , "cat file-list >> debian/install" , "cp -pr debian $(tempdir)/#{project.name}-#{project.version}" , "gunzip -c #{project.name}-#{project.version}.tar.gz | '#{@tar}' -C '$(tempdir)/#{project.name}-#{project.version}' --strip-components 1 -xf -" , "sed -i 's/\ /?/g' $(tempdir)/#{project.name}-#{project.version}/debian/install" , "(cd $(tempdir)/#{project.name}-#{project.version}; debuild --no-lintian #{pkg_arch_opt} -uc -us)" , "cp $(tempdir)/*.deb ./output/#{target_dir}" ] end
The specific bits used to generate a debian package for a given project
The specific bits used to generate a debian package for a given project
list of commands required to build a debian package for the given project from a tarball
list of commands required to build a debian package for the given project from a tarball
Array
project
project to build a debian package of
project to build a debian package of