| 4900 |
dpurdie |
1 |
########################################################################
|
|
|
2 |
# Copyright (C) 1998-2013 Vix Technology, 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 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 |
DebianFiles('--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 |
#
|
|
|
30 |
CopyFile ('50-vix-hook.conf', '/usr/share/lightdm/lightdm.conf.d');
|
|
|
31 |
|
|
|
32 |
# Insert doco to assist future creation
|
|
|
33 |
CopyFile ('Create Golden Image.txt', '/root/Desktop');
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
#
|
|
|
37 |
# Insert the Application
|
|
|
38 |
#
|
|
|
39 |
CopyFile ('configureVM.sh', '/root/vix', 'configureVM');
|
|
|
40 |
|
|
|
41 |
#
|
|
|
42 |
# Make every thing executable
|
|
|
43 |
# This is good for directories
|
|
|
44 |
# This is good for all files in this package.
|
|
|
45 |
#
|
|
|
46 |
Message ("Mark files as executable");
|
|
|
47 |
SetFilePerms ('a+rx', '/' , '--Recurse');
|
|
|
48 |
|
|
|
49 |
#
|
|
|
50 |
# All done
|
|
|
51 |
# The wrapper scripts will build and package the complete package
|
|
|
52 |
|