public
Description: Rake tasks to build debian/ubuntu packages
Homepage: http://peope.tryphon.org/~alban
Clone URL: git://github.com/albanpeignier/rake-debian-build.git
albanpeignier (author)
Tue Sep 15 11:36:01 -0700 2009
commit  aa153e361d5d03873a8469c2806e17c0c8904a1f
tree    5b190d63dc5307d1da27d4385a7ebbee92dc1123
parent  80d2a00174c47ca838c46d483f3d745fad4abc8c
name age message
file .gitignore Sun Apr 19 04:18:15 -0700 2009 Ignore pkg/ directory [albanpeignier]
file Manifest.txt Tue Sep 15 11:36:01 -0700 2009 Change gem release to 1.0.5 [albanpeignier]
file README.rdoc Sun Apr 12 08:48:44 -0700 2009 README improvements [albanpeignier]
file Rakefile Wed Jul 15 14:26:39 -0700 2009 Change gem version to 1.0.5 [albanpeignier]
directory lib/ Tue Sep 15 11:33:49 -0700 2009 Remove old ruby_pbuilder file [albanpeignier]
file rake-debian-build.gemspec Tue Sep 15 11:36:01 -0700 2009 Change gem release to 1.0.5 [albanpeignier]
directory script/ Fri May 22 08:00:25 -0700 2009 Create a script/pbuilder to build manually on a... [albanpeignier]
directory spec/ Sun Apr 19 04:17:08 -0700 2009 Fix default value for Uploader.default#incoming [albanpeignier]
directory tasks/ Mon May 11 01:51:03 -0700 2009 Add lintian rake tasks [albanpeignier]
README.rdoc

Rake Debian Build

DESCRIPTION:

A rake task suite to build debian/ubuntu packages.

Manage for your apt-get source or tar-ball download, dpkg-buildpackage, dch, pbuilder, dupload, builds for stable/testing/unstable/hardy/intrepid i386/amd64, etc …

FEATURES:

  • sources download (tar-ball or apt-get source)
  • source packaging
  • binary packaging
  • upload
  • pbuilder encapsulation
  • support multiple platforms : debian/ubuntu, stable/testing/unstable/hardy/intrepid, i386/amd64
  • build everything in a command line
  • remote build

SYNOPSIS:

Define your packages in your Rakefile. For example (from Rivendell Debian packages) :

  require 'rubygems'
  require 'debian/build'
  include Debian::Build

  require 'debian/build/config'

  namespace "package" do

    Package.new(:hpklinux) do |p|
      p.version = '3.08.05'
      p.debian_increment = 2

      p.source_provider = TarballSourceProvider.new('http://www.rivendellaudio.org/ftpdocs/audioscience/hpklinux-#{version}.tar.bz2')
    end

    main_source_provider = TarballSourceProvider.new('http://www.rivendellaudio.org/ftpdocs/#{name}/#{name}-#{version}.tar.gz')

    Package.new(:rivendell) do |p|
      p.version = '1.3.0'
      p.debian_increment = 1
      p.source_provider = main_source_provider
    end

    Package.new(:gpio) do |p|
      p.version = '1.0.0'
      p.debian_increment = 2
      p.source_provider = main_source_provider
    end

    ModulePackage.new('gpio-module')

    ModulePackage.new('hpklinux-module')

  end

  require 'debian/build/tasks'

Configure your environment (in config.rb) :

  Distribution.mirrors = {
    :debian => 'http://localhost:9999/debian',
    :ubuntu => 'http://localhost:9999/ubuntu'
  }

  Uploader.default.host = "debian.tryphon.org"
  Uploader.default.nickname = "tryphon"

Setup your environment:

  rake setup

Create pbuilder images:

  rake pbuilder:create

Build all source package

  rake packages:sources

Build all binary package

  rake packages:binaries

Upload all packages

  rake packages:upload

REQUIREMENTS:

  • pbuilder, dupload, devscripts

INSTALL:

  gem sources -a http://gems.github.com
  sudo gem install albanpeignier-rake-debian-build

LICENSE:

(The MIT License)

Copyright © 2009 Alban Peignier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.