Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| module:install-xtrn [2021/02/13 12:31] – [Install-xtrn] mortifis | module:install-xtrn [2025/08/25 18:25] (current) – Started cleaning this page up digital man | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | This script parses a .ini file (default filename is install-xtrn.ini) and installs the external programs defined within into the Synchronet BBS configuration file: ctrl/ | + | This script parses a '' |
| - | If the door is included with Synchronet, or Synchronet already has a configuration for it (in xtrn/ | + | This script can by invoked in a more user-friendly automated fashion by running [[person: |
| + | |||
| + | If the door is included with Synchronet, or Synchronet already has a configuration for it (in '' | ||
| ===== Running the Script ==== | ===== Running the Script ==== | ||
| Line 23: | Line 25: | ||
| ^ Command ^ Description ^ | ^ Command ^ Description ^ | ||
| - | ^ -auto ^ Don't prompt for a list of doors to install | + | | -auto | Don't prompt for a list of doors to install |
| - | ^ -debug | + | | -debug |
| - | ^ -overwrite | + | | -overwrite |
| ===== Third Party External Programs (Doors) ===== | ===== Third Party External Programs (Doors) ===== | ||
| - | Configs | + | Configurations |
| The general instructions are: | The general instructions are: | ||
| Line 35: | Line 37: | ||
| - Download the file from the program author' | - Download the file from the program author' | ||
| - Extract the file into the destination directory of your xtrn folder | - Extract the file into the destination directory of your xtrn folder | ||
| - | - Inside that directory, do any actions you need to get the files into their final state. For example, extracting any included zip files, running any uncompressors or installer programs, installing any patches (like tppatch for Turbo Basic programs), etc. | + | - Inside that directory, do any actions you need to get the files into their final state. For example, extracting any included zip files, running any uncompressors or installer programs, installing any patches (like '' |
| - Review the sysop documentation for the program | - Review the sysop documentation for the program | ||
| - | - Run the install-xtrn.js. If it finds a match (based on a MD5 sum of the executable), | + | - Run the '' |
| - Perform any required tasks according to the sysop documentation, | - Perform any required tasks according to the sysop documentation, | ||
| - Apply any registration codes you have for the program | - Apply any registration codes you have for the program | ||
| + | |||
| + | ===== install_xtrn.ini ===== | ||
| + | |||
| + | This script is intended for use by sysops using JSexec, for example: | ||
| + | $ jsexec install-xtrn ../ | ||
| + | |||
| + | This script can aso be invoked using the ;EXEC sysop command while logged | ||
| + | into the terminal server, for example: | ||
| + | ;exec ? | ||
| + | |||
| + | '' | ||
| + | |||
| + | The .ini root section keys supported: | ||
| + | |||
| + | Name = Name of the program being installed (79 chars or less)\\ | ||
| + | Desc = Description of the program being installed (79 chars or less)\\ | ||
| + | | ||
| + | Cats = Comma-separated list of applicable categories (e.g. " | ||
| + | Subs = Comma-separated list of applicable sub-categories (e.g. " | ||
| + | Inst = Installer .ini file source/ | ||
| + | |||
| + | The .ini sections and keys supported (zero or more of each may be included): | ||
| + | |||
| + | | ||
| + | startup_dir = directory to make current before execution | ||
| + | |||
| + | | ||
| + | cmd = evaluate this string rather than the js-expression | ||
| + | |||
| + | | ||
| + | | ||
| + | cats = additional target installation categories (sections) | ||
| + | cmd = command-line to execute (63 chars max) | ||
| + | clean_cmd = clean-up command-line, | ||
| + | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
| + | ars = access requirements string (40 chars max) | ||
| + | execution_ars = execution requirements string (40 chars max) | ||
| + | type = drop-file type (see XTRN_* in sbbsdefs.js) | ||
| + | event = event-type (see EVENT_* in sbbsdefs.j) | ||
| + | cost = cost to run, in credits | ||
| + | startup_dir = directory to make current before execution | ||
| + | textra = extra time (minutes) to allow to run this program | ||
| + | max_time = maximum time (minutes) allowed to run this program | ||
| + | |||
| + | | ||
| + | cmd = command-line to execute (63 chars max) | ||
| + | days = bit-field representing days of the week to execute | ||
| + | time = time of day to run this event | ||
| + | node_num = node number to run this event | ||
| + | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
| + | startup_dir = directory to make current before execution | ||
| + | freq = frequency of execution | ||
| + | mdays = days of month (if non-zero) for execution | ||
| + | months = bit-field representing which months to execute | ||
| + | |||
| + | | ||
| + | name = editor name or description (40 chars max) | ||
| + | cmd = command-line to execute (63 chars max) | ||
| + | type = drop-file type (see XTRN_* in sbbsdefs.js) | ||
| + | settings = bit-flags (see XTRN_* in sbbsdefs.js) | ||
| + | ars = access requirements string (40 chars max) | ||
| + | |||
| + | | ||
| + | see ctrl/ | ||
| + | |||
| + | | ||
| + | startup_dir = directory to make current before execution | ||
| + | |||
| + | | ||
| + | cmd = evaluate this string rather than the js-expression | ||
| + | |||
| + | | ||
| + | keys = comma-separated list of keys to add/update in .ini | ||
| + | values | ||
| + | Note: string values must be enclosed in quotes! | ||
| + | |||
| + | | ||
| + | only used by this script (i.e. not written to any configuration files): | ||
| + | note = note to sysop displayed before installation | ||
| + | fail = note to sysop displayed upon failure | ||
| + | prompt | ||
| + | required = if true, this item must be successful to continue | ||
| + | last = if true, this item will be the last of its type | ||
| + | done = if true, no more installer items will be processed | ||
| + | |||
| + | | ||
| + | |||
| + | - The startup_dir will default to the location of the .ini file if this | ||
| + | key is not defined within the .ini file. | ||
| + | |||
| + | - The only required values are the < | ||
| + | cmd; all other keys will have functional default values if not defined in | ||
| + | the .ini file. | ||
| + | |||
| + | ===== Example install-xtrn.ini ===== | ||
| + | | ||
| + | Name: AlleyCat! BBS Game Server Games | ||
| + | Desc: Available Programs for use with acgs rgate.js connector | ||
| + | By: | ||
| + | Cats: Games | ||
| + | Subs: GAMES, SBBS DEMOS | ||
| + | Inst: 2021/01/02 | ||
| + | | ||
| + | [prog: | ||
| + | name =Synchronet | ||
| + | startup_dir = | ||
| + | cmd=? | ||
| + | execution_ars | ||
| + | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
| + | type = | ||
| + | | ||
| + | [prog: | ||
| + | name =Synchronet | ||
| + | startup_dir = | ||
| + | cmd=? | ||
| + | execution_ars | ||
| + | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
| + | type = | ||
| + | | ||
| + | [prog: | ||
| + | name =Synchronet | ||
| + | startup_dir = | ||
| + | cmd=? | ||
| + | execution_ars | ||
| + | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
| + | type = | ||
| + | | ||
| + | [prog: | ||
| + | name = TW2002 Gergovia | ||
| + | cmd = ?rgate.js tw2g2 | ||
| + | execution_ars | ||
| + | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
| + | type = XTRN_GAP | ||
| + | |||
| + | [prog: | ||
| + | name = TW2002 Hoboistica | ||
| + | cmd = ?rgate.js tw2g3 | ||
| + | execution_ars | ||
| + | settings = XTRN_ANSI | XTRN_SH | XTRN_MULTIUSER | ||
| + | type = XTRN_GAP | ||
| + | |||
| + | |||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[: | * [[: | ||