The format of a application definition is:
Between the OPTION, the = and the VALUE are no spaces.
Rows starting with a # are considered as comments.
You should not comment out any OPTION. If you like to use default settings simply do not specify a VALUE.
Normally there are multiple application settings defined in one configuration file.
The setting APPLICATION_default must be defined in a configuration file.
Example: LOG=/var/opt/edrc/log
Default: LOG=var/log
The options recognized in a application definition are:
Example: PACKAGE_NAME="WA2L/edrc"
Default: PACKAGE_NAME="?"
Example: DESCRIPTION="WA2L/edrc complete"
Default: DESCRIPTION=""
Example: APPLICATION_PREFIX="edrc"
Default: APPLICATION_PREFIX="myApp"
Example: APPLICATION_RELEASE="``approot`/sbin/edrc -V`"
Default: APPLICATION_RELEASE=<has to be specified interactively>
Example: TIMESTAMP_PREFIX="edrc"
Default: TIMESTAMP_PREFIX="<APPLICATION_PREFIX>"
Example: APPLICATION_BASEDIR="`approot`"
Default: APPLICATION_BASEDIR="`approot`"
Example: PACKAGE_COMPONENTS="edrc"
Default: PACKAGE_COMPONENTS=<APPLICATION_PREFIX>
Example: OUTPUT_DIRECTORY="/dat/sw/apps"
Default: OUTPUT_DIRECTORY="/tmp"
Example: EXCLUDE_LIST="/.sav/ ^edrc/var/log/.+.log$"
Default: EXCLUDE_LIST=""
Example: CONFIGFILE_LIST="^edrc/etc/.+"
Default: CONFIGFILE_LIST=""
To avoid defining the same settings multiple times it is allowed to chain application definitions by "calling" another definition at the beginning of an application definition. In fact you should do this at least in the APPLICATION_default definition. Therefore it is allowed to use the application setting variables to enhance a definition. This makes especially sense to enhance an EXCLUDE_LIST by first including another definition and then using the $EXCLUDE_LIST variable in the definition of the EXCLUDE_LIST. See also definitions in the edrc/etc/pack.cfg file and the EXAMPLE section for examples for the method of chaining definitions.
See the "call" of APPLICATION_edrc in the APPLICATION_default and APPLICATION_edrc_NOSECURITY definition to chain the definitions to save definition effort.
# edrc: WA2L/edrc complete # APPLICATION_edrc(){ PACKAGE_NAME="WA2L/edrc" DESCRIPTION="WA2L/edrc complete" APPLICATION_PREFIX="edrc" APPLICATION_RELEASE="`\`approot\`/sbin/edrc -V`" APPLICATION_BASEDIR="`approot`" PACKAGE_COMPONENTS="edrc" OUTPUT_DIRECTORY="/tmp" EXCLUDE_LIST="\ /\.sav/ \ /\.\[^ssh\] \ /\..*\.swp\$ \ ^edrc/etc/.*\.2[0-9]{7}$ \ ^edrc/bin/.*\.2[0-9]{7}$ \ ^edrc/doc/.man/.+\.ps$ \ ^edrc/doc/.man/.+\.pdf$ \ ^edrc/doc/.man/.+\.html$ \ ^edrc/lib/.*\.2[0-9]{7}$ \ ^edrc/lib/edrcpack/ \ ^edrc/src/.+\.o$ \ ^edrc/var/backup/.+ \ ^edrc/var/barbedwire/cache/.+ \ ^edrc/var/connection/cache/.+ \ ^edrc/var/contrib/edrc/.+ \ ^edrc/var/edrcpack/ \ ^edrc/var/lock/.+\.lock$ \ ^edrc/var/log/.+\.log$ \ ^edrc/var/repl/.+ \ ^edrc/var/sfi/app_mgmt/applications/.+ \ ^edrc/var/sfi/csdocs/hosts/data/.+ \ ^edrc/var/sfi/db/.+ \ ^edrc/var/settings/.+ \ ^edrc/var/shell/sh_history\..* \ ^edrc/var/shell/sh_var\..* \ ^edrc/var/shell/edrc_history\..* \ ^edrc/var/passwdsyncd/.+ \ ^edrc/var/pwsync/ \ " CONFIGFILE_LIST="\ ^edrc/etc/.+ \ " } # edrc_NOSECURITY: WA2L/edrc without security files # APPLICATION_edrc_NOSECURITY(){ APPLICATION_edrc PACKAGE_NAME="WA2L/edrc" DESCRIPTION="WA2L/edrc without security files" APPLICATION_PREFIX="edrc" APPLICATION_RELEASE="`\`approot\`/sbin/edrc -V`" APPLICATION_BASEDIR="`approot`" PACKAGE_COMPONENTS="edrc" OUTPUT_DIRECTORY="/tmp" EXCLUDE_LIST="\ $EXCLUDE_LIST \ ^edrc/var/connection/security/edrc/+/+/+/ \ ^edrc/var/connection/security/edrc/.ssh/ \ " CONFIGFILE_LIST="\ ^edrc/etc/.+ \ " } # default: Default setting. This setting is effective when pack is # execute without options. # APPLICATION_default(){ APPLICATION_edrc }
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.