PHP class for building Debian packages
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Debbie
test
.gitignore
LICENSE
README.md

README.md

debbie

PHP class for building Debian packages.

High unit test coverage using PHPUnit.

API

$deb = new Debbie($config);

addSource($src, $dst = '')

Adds a file to the package manifest and an (optional) alternate install desintation.

build()

Builds the .deb file and returns its location.

Usage

<?php
$config = array(
  'arch' => 'amd64',
  'buildId' => '2011-11-10',
  'depends' => array('mysql-server'),
  'description' => 'Meta package for EC2 database master',
  'maintainer' => 'Package Author <you@gmail.com>',
  'postinst' => file_get_contents($postInstallScriptFile),
  'section' => 'db',
  'shortName' => 'ec2-dbmaster',
  'version' => '1.2',
  'workspaceBasedir' => '/tmp/deb-workspace/ec2-dbmaster'
);
$deb = new Debbie($config);
$deb->addSource('/etc/mysql/my.cnf');
$debFilename = $deb->build();

Requirements

  • PHP 5.3+