Blame | Last modification | View Log | RSS feed
######################################################################### COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.## 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 ("Jats Installer");## Insert the JATS script - enough to access JATS on a server#CopyFile ('jats.unix.sh', '/usr/local/bin', 'jats');## Extend profile#Section();Section(IsTarget('UBUNTU16', 'RHEL7'));CopyFile ('linux.profile.2.jats.sh', '/etc/profile.d', 'jats.sh', '--ConfFile');Section(IsTarget('UBUNTU12','UBUNTU14'));CopyFile ('linux.profile.1.jats.sh', '/etc/profile.d', 'jats.sh', '--ConfFile');Section();ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_x64') if IsTarget('UBUNTU16', 'UBUNTU14');ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_el7_x64') if IsTarget('RHEL7');ReplaceTags( '/etc/profile.d', 'jats.sh', '--Tag=TAG_MACHTYPE,linux_i386') if IsTarget('UBUNTU12');ReplaceTags( '/etc/profile.d', 'jats.sh', "--Tag=TAG_BUILDFILTER,$opt_target");## 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