-
Notifications
You must be signed in to change notification settings - Fork 6
/
packaging_config.php
47 lines (45 loc) · 1.41 KB
/
packaging_config.php
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
46
47
$configure = array(
'packagename' => 'codebender-library-manager',
'arch' => 'all',
'version' => '1.0',
'maintainer' => 'Vasilis Georgitzikis <[email protected]>',
'description' => 'A RESTful compiler for Arduino cores',
'url' => 'htpp://github.com/codebendercc/libs',
'packagetype' => 'deb',
'depends' => array(
'apache2',
'libapache2-mod-php5',
'php-pear',
'acl'
),
'tmpdir' => '/tmp',
'templatedir' => 'scripts',
'postinst' => 'scripts/postinst.sh',
'preinst' => '',
'postrm' => 'scripts/postrm.sh',
'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(
'opt/codebender/@PACKAGENAME@' => array(
'*',
'- /templates',
),
);