| 6868 |
dpurdie |
1 |
########################################################################
|
|
|
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
|
|
3 |
#
|
|
|
4 |
# Module name : PackageApp
|
|
|
5 |
# Module type : Makefile system
|
|
|
6 |
# Compiler(s) : n/a
|
|
|
7 |
# Environment(s): jats
|
|
|
8 |
#
|
|
|
9 |
# Description : Script to be processed by the Debian Packager
|
|
|
10 |
# This script is not directly processed by JATS
|
|
|
11 |
#
|
|
|
12 |
# This file is processed by the Debian Packager in order to construct
|
|
|
13 |
# the RPM package. It contains simple directives to construct the package
|
|
|
14 |
#
|
|
|
15 |
#......................................................................#
|
|
|
16 |
|
|
|
17 |
#SetVerbose (2);
|
|
|
18 |
|
|
|
19 |
#
|
|
|
20 |
# Specify the DEBIAN packaging files
|
|
|
21 |
#
|
|
|
22 |
PackageDescription ("VIX VM First Use Configuration");
|
|
|
23 |
|
|
|
24 |
RpmFiles('--PostInst=postinstall.sh', '--PreRm=preRm.sh');
|
|
|
25 |
|
|
|
26 |
#
|
|
|
27 |
# Insert the hook file into lightdm
|
|
|
28 |
# This will cause our script to run on startup
|
|
|
29 |
CopyFile ('gdm_init_0.sh', '/etc/gdm/Init', ':0');
|
|
|
30 |
|
|
|
31 |
# Insert doco to assist future creation
|
|
|
32 |
CopyFile ('Create Golden Image.txt', '/root/Desktop');
|
|
|
33 |
|
|
|
34 |
#
|
|
|
35 |
# Insert the Application
|
|
|
36 |
CopyFile ('configureVM.sh', '/root/vix', 'configureVM');
|
|
|
37 |
|
|
|
38 |
#
|
|
|
39 |
# Make every thing executable
|
|
|
40 |
# This is good for directories
|
|
|
41 |
# This is good for all files in this package.
|
|
|
42 |
#
|
|
|
43 |
Message ("Mark files as executable");
|
|
|
44 |
SetFilePerms ('a+rx', '/' , '--Recurse');
|
|
|
45 |
|
|
|
46 |
#
|
|
|
47 |
# All done
|
|
|
48 |
# The wrapper scripts will build and package the complete package
|
|
|
49 |
|