debbie
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:PHP class for building Debian packages
# debbie

PHP class for building Debian packages.

High unit test coverage using PHPUnit.

## API

```$deb = new Debbie($config);```

[addSource](https://github.com/codeactual/debbie/blob/524997a50999713ff7259ca953ac57e2236097cc/src/Debbie/Debbie.php#L321)($src, $dst = '')

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

[build](https://github.com/codeactual/debbie/blob/524997a50999713ff7259ca953ac57e2236097cc/src/Debbie/Debbie.php#L191)()

> Builds the `.deb` file and returns its location.

## Usage

``` php
 'amd64',
  'buildId' => '2011-11-10',
  'depends' => array('mysql-server'),
  'description' => 'Meta package for EC2 database master',
  'maintainer' => 'Package Author ',
  '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+

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。