| 6247 |
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 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 ("Jats Installer");
|
|
|
23 |
|
|
|
24 |
#
|
|
|
25 |
# Insert the JATS script - enough to access JATS on a server
|
|
|
26 |
#
|
|
|
27 |
CopyFile ('jats.unix.sh', '/usr/local/bin', 'jats');
|
|
|
28 |
|
|
|
29 |
#
|
|
|
30 |
# Extend profile
|
|
|
31 |
#
|
|
|
32 |
Section();
|
|
|
33 |
Section(IsTarget('UBUNTU16', 'RHEL7'));
|
|
|
34 |
CopyFile ('linux.profile.2.jats.sh', '/etc/profile.d', 'jats.sh', '--ConfFile');
|
|
|
35 |
|
|
|
36 |
Section(IsTarget('UBUNTU12','UBUNTU14'));
|
|
|
37 |
CopyFile ('linux.profile.1.jats.sh', '/etc/profile.d', 'jats.sh', '--ConfFile');
|
|
|
38 |
|
|
|
39 |
Section();
|
|
|
40 |
ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_x64') if IsTarget('UBUNTU16', 'UBUNTU14');
|
|
|
41 |
ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_el7_x64') if IsTarget('RHEL7');
|
|
|
42 |
ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_i386') if IsTarget('UBUNTU12');
|
|
|
43 |
ReplaceTags( '/etc/profile.d', 'jats.sh', "--Tag=TAG_BUILDFILTER,$opt_target");
|
|
|
44 |
|
|
|
45 |
#
|
|
|
46 |
# Make every thing executable
|
|
|
47 |
# This is good for directories
|
|
|
48 |
# This is good for all files in this package.
|
|
|
49 |
#
|
|
|
50 |
Message ("Mark files as executable");
|
|
|
51 |
SetFilePerms ('a+rx', '/' , '--Recurse');
|
|
|
52 |
|
|
|
53 |
#
|
|
|
54 |
# All done
|
|
|
55 |
# The wrapper scripts will build and package the complete package
|
|
|
56 |
|