diff --git a/sample/builder-product.cfg b/sample/builder-product.cfg index 3ff61fc..95a94b2 100644 --- a/sample/builder-product.cfg +++ b/sample/builder-product.cfg @@ -8,34 +8,60 @@ RELEASE="3" PRIORITY="0" ADVICE="" -# Status integration, testing, release -STATUS="review" + ################# -# Setup url for downloading the binaries +# File object array ################ - -# all downloads should not have any traling parameters like ?downlaodid=1234 .....(should rewrite in python) -# You can setup many URL's separated by ";" - -# Format: basename ; URL1 ; URL2 ; ... -ICON_FILE_INDEX=0 - -# Format: basename ; URL1 ; URL2 ; ... -#FILE1="itWESS-Client_German.msi;http://ivyrepos.dtnet.de/v-$PN/itwatch/itwatch/4.10.19/itWESS-Client_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-Client_German.msi" -#FILE2="itWESS-64bit_German.msi;http://ivyrepos.dtnet.de/itwatch/itwatch/4.10.19/itWESS-64bit_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-64bit_German.msi" - +# +# To build the opsi-packet, some files are needed. The files are defined by a file object. +# A file object contains different attributes. All attributes (FILE, SOURCE, ..) are binded together +# using a file index. +# +# - Filename +# Filename used inside the builder and opsi package +# This parameter is mandatory. +# FILE[index]="cool-stuff.exe" +# +# - Source URL +# The source URL to download the file from. Multiple URLs are separted by a ";" +# The $DIST_PRIVATE_REPOS variable will be added as the first URL automatically +# Therefore, you download the non-public programs to your local/privagte repository. +# You can use variable like $PN or $Version inside the URLs +# This parameter is mandatory +# SOURCE[index]="http://cool-stuff.de/download/cool-stuff_1.001.exe;http://mirro5.cool-stuff.at/$PN_$VERSION.exe" +# +# - Architecture +# Definition of the architecture to separate different files. This will be used in +# the file structure inside the opsi-package. Also, you can use it in your repos-URL's +# or filenames (OPSI_REPOS_FILE_PATTERN, OPSI_REPOS_PRODUCT_DIR) to structure the repos. +# If it's a file for all architecture, the variable have not to be set. +# This parameter is optional, default value: , +# Valid values: , "X86", "X86_64" +# ARCH[index]="X86" +# +# - WINST Variabels: +# You can access the file (included in the opsi-package) using WINST script language. +# The target "package" will replace all occurence of the string "@@BUILDER_VARIABLES@@" +# by pairs of "DefVar/Set"-commands, if the WINST attribute is set. Default value: +# This parameter is ptional, default value: , +# WINST[index]=itWESS +# + FILE[0]="itWatchLogo.jpg" SOURCE[0]="http://www.itwatch.de/logos/itWatchLogo.jpg" WINST[0]=IconFile FILE[1]="itWESS-Client_German.msi" -SOURCE[1]="http://ivyrepos.dtnet.de/v-$PN/itwatch/itwatch/4.10.19/itWESS-Client_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-Client_German.msi" +SOURCE[1]="http://repos.dtnet.de/v-$PN/itwatch/itwatch/4.10.19/itWESS-Client_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-Client_German.msi" ARCH[1]="X86" WINST[1]=itWESS FILE[2]="itWESS-64bit_German.msi" -SOURCE[2]="http://ivyrepos.dtnet.de/itwatch/itwatch/4.10.19/itWESS-64bit_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-64bit_German.msi" +SOURCE[2]="http://repos.dtnet.de/itwatch/itwatch/4.10.19/itWESS-64bit_German.msi;http://internal.graz.disconnected-by-peer.at/Orig/itWatch/itWESS/HB/4.10.19/itWESS-64bit_German.msi" ARCH[2]="X86_64" WINST[2]=itWESS64 +# File array index for the image showing while installing the program +ICON_FILE_INDEX=0 + diff --git a/sample/builder-targets-cb.sh b/sample/builder-targets-cb.sh index 6525a3e..932c1c7 100644 --- a/sample/builder-targets-cb.sh +++ b/sample/builder-targets-cb.sh @@ -3,14 +3,20 @@ # # You can overwrite target functions like # config, prepare, retrieve, create, package, publish, commit, cleanup -# and define callback functions +# +# You can define callback functions like # cb_package_makeproductfile # +# You can use every variable defined in any configuration file or by +# the defined builder script itself. Also, calling the predefined +# targets builder_ is possible. +# ############################################################################## #function config() { -# echo "Config" +# echo "Config - doing some commands before calling the builder_config" # builder_config +# echo "Config - doing some commands after calling the builder_config" #} #function prepare() {