Project

debra

0.0
No commit activity in last 3 years
No release in over 3 years
Debra is an DSL for creating debian binary package files, still in the experimental stage but should work!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0
 Project Readme

Debra: Make Debian packages with Ruby

Why?

Because I found the process of making Debian packages a little long winded. It does seem to work well for my use case: building binary packages of web applications on a CI server.

Also, I'm still learning the Debian packaging system so wouldn't recommend this for serious use, just your own packages.

How?

Install

$: sudo gem install debra

Create a Debfile in your projects directory

# Debfile
Debra do

	# Specify the files to be included (just a Rake::FileList delegate)
	files "etc/**/*"

	# Specify your control file fields
	# See http://www.debian.org/doc/debian-policy/ch-controlfields.html
	control do 
	    package       "my-package"
	    version       "0.1"
	    section       "base"
	    priority      "optional"
	    architecture  "all"
	    depends       "apache2, apache2-dev"
	    maintainer    "My Name <me@example.com>"
	    description   %q{My Pacakge Title
			Extended description goes here ...
		} 
	end
	
	# Specify preinst, postinst, prerm, postrm files like this
	postinst %q{#!/bin/bash			
		
service apache restart
					
	}

end

Build your file

$: sudo debra

Command line options

Usage: debra [options]
    -h, --help                       Show this message
    -v, --verbose                    Run verbosely
    -f, --file file                  Load a specific Debfile
        --version                    Show version

Examples

See the examples directory

License

(GPLv3)

Copyright (C) 2009 Matt Haynes

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <w