Describe your Deb packages
Just a simple wrapper around the package
wdalmut/php-deb-packager
, (*1)
- master
Describe a deb
package with Yaml files
output_path: /mnt/out
mount:
- {src: "/first", dest: "/somewhere"}
- {src: "/src", dest: "/usr/shara/mysw"}
control:
package: my-package-name
version: 0.0.1
depends: php5, php5-cli, php5-curl
maintainer: Walter Dal Mut [an-email@email.tld]
provides: something, something-else
replaces: first-package, second-package
suggests: php5-mcrypt, php5-xsl
pre_depends: build-essentials, libc6
architecture: all
section: web
Use with composer
Just require it!, (*2)
composer require wdalmut/php-deb-describe:dev-master
And use it!, (*3)
./vendor/bin/pdpkg package your.yml
Use it as phar
package
You can create your phar
package with clue/phar-composer, (*4)
phar-composer.phar build wdalmut/php-deb-describe:dev-master
Use the library directly
Just prepare a simple compile.php
file, (*5)
<?php
use Symfony\Component\Yaml\Parser;
use wdm\debian\Packager;
use wdm\debian\control\StandardFile;
$parser = new Parser();
$packager = new Packager();
$packager->setControl(new StandardFile());
$describer = new Describer($parser, $packager);
echo $describer->compose(file_get_contents("/path/to/file.yml"));
And run it!, (*6)
$(php compile.php)
Now you have your .deb
package!, (*7)