########################################################################
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
#
# Module name   : PackageApp
# Module type   : Makefile system
# Compiler(s)   : n/a
# Environment(s): jats
#
# Description   : Script to be processed by the Debian Packager
#                 This script is not directly processed by JATS
#
#   This file is processed by the Debian Packager in order to construct
#   the package. It contains simple directives to construct the package
#
#......................................................................#

#SetVerbose (2);

#
#   Specify the DEBIAN packaging files
#
PackageDescription ("VIX VM First Use Configuration");

DebianFiles('--PostInst=postinstall.sh', '--PreRm=preRm.sh');

#
#   Insert the hook file into lightdm
#   This will cause our script to run on startup
#
CopyFile ('50-vix-hook.conf', '/usr/share/lightdm/lightdm.conf.d');

#   Insert doco to assist future creation
CopyFile ('Create Golden Image.txt', '/root/Desktop');


#
#   Insert the Application
#
CopyFile ('configureVM.sh', '/root/vix', 'configureVM');

#
#   Make every thing executable
#       This is good for directories
#       This is good for all files in this package.
#
Message ("Mark files as executable");
SetFilePerms ('a+rx', '/' , '--Recurse');

#
#   All done
#   The wrapper scripts will build and package the complete package

