Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 46 lines (43 sloc) 1.284 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
$configure = array(
    'packagename' => 'mypackage',
    'arch' => 'all',
    'version' => '1.0',
    'maintainer' => 'me myself <me@myself.com>',
    'description' => '',
    'url' => '',
    'packagetype' => 'deb',
    'depends' => array(
        'apache2',
        'libapache2-mod-php5',
    ),

    'tmpdir' => '/tmp',
    'templatedir' => 'templates',
    'postinst' => '',
    'preinst' => '',
    'postrm' => '',
    'prerm' => '',
    'debconfconfig' => '', // only for debian: config file for debconf
    'debconftemplate' => '', // only for debian: template file for debconf
    'configfile' => '', // mark a file as configuration file
);

/* here you can define which files or directories should go where in the target system.
 * You can use placeholders defined in your $configure array
 * The syntax is dest => src so you don't have to repeat dest if you have lots
 * of stuff to put in the same directory
 * To prevent some files or directories from ending up in the package you can exclude
 * them by prepending them with '- ' (see also example).
 *
 * Example:
 *
 * $filemapping = array(
 * 'var/www/@PACKAGENAME@' => array(
 * 'app/',
 * )
 * )
 */
$filemapping = array(
    'var/www/@PACKAGENAME@' => array(
        '*',
        '- /templates',
    ),
);
Something went wrong with that request. Please try again.