File Name: /etc/lunar/config


Contains the initial defines required for the entirety of the Lunar core toolset's operation.

The following tables contain a list of global variables defined for use throughout the Lunar tool set. These are used by /sbin/lget,/sbin/lin,/sbin/lrm,/sbin/lunar, and /bin/lvu and many of the subroutines and functions which make up the toolset.

Environmental Defines


Define

Explanation

DIALOGRC=/etc/lunar/dialogrc Configuration file for the dialog binary used by the lunar core tools.

Global Variable Defines


Define

Explanation

CONFIG_CACHE=/etc/lunar/local Directory containing configs which are system specific.
LOCAL_CONFIG=/etc/lunar/local/config
File containing system specific local defines.
DEPENDS_CONFIG=/etc/lunar/local/depends
Each file in this directory contains information about how the module was configured at install time.
LOCAL_EXCLUDED=/etc/lunar/local/excluded
Local list of files that are excluded during a lin or lrm.
MIRRORS=/etc/lunar/mirrors
List of mirrors known to contain alternate download locations for sources.
LUNAR_MODULES="lunar theedge"
Two versions of Lunar core tools.
BUILD_DIRECTORY=/usr/src
The directory Lunar uses to build modules.
DOCUMENT_DIRECTORY=/usr/share/doc
Location for documentation.
EXCLUDED=/var/lib/lunar/excluded Default list of files that are excluded during a lin or lrm.
MOONBASE=/var/lib/lunar/moonbase
Default location of the moonbase (may be over ridden in /etc/lunar/local/config).
PROTECTED=/var/lib/lunar/protected
Contains a list of files that will not be removed.
SOLO=/var/lib/lunar/solo
List of modules which cannot be compiled while other modules are being installed.
SUBROUTINES=/var/lib/lunar/subroutines
File containing core subroutines which are used by many of the core tools. It sources all of the files in $FUNCTIONS.
FUNCTIONS=/var/lib/lunar/functions
Directory containing subroutines in separate files
MENUS=/var/lib/lunar/menu
Directory containing shell scripts which generate menus used by dialog for the lunar menuing system.
SUSTAINED=/var/lib/lunar/sustained
List of modules that are essential to system. Removal of these modules is not permitted. Installing and upgrading is fine.
SOUND_DIRECTORY=/var/lib/lunar/sound
Directory which stores sound themes for the lunar tools.
SOUND_THEME=startrek
Current sound theme for use by the subroutines.
BOOST_LOCK=/var/lock/boost
Locks the archive and track functions so they are never run in parallel.
ACTIVITY_LOG=/var/log/lunar/activity
Log file which is written to by various lunar subroutines to record actions executed by the lunar tools.
INSTALL_LOGS=/var/log/lunar/install
Directory containing log files which record the installation of modules.
COMPILE_LOGS=/var/log/lunar/compile
Directory containing log files which record the compilation of modules.
MD5SUM_LOGS=/var/log/lunar/md5sum
Directory containing md5sums for modules which use them.
INSTALL_QUEUE=/var/log/lunar/queue/install
This file holds the the queues for installation that are used by the lunar core tools.
REMOVE_QUEUE=/var/log/lunar/queue/remove
This file holds the the queues for removal that are used by the lunar core tools.
DEPENDS_STATUS=/var/state/lunar/depends
Flat file dependency database for lunar.
DEPENDS_STATUS_BACKUP=/var/state/lunar/depends.backup
Backup flat file dependency database for lunar.
MODULE_STATUS=/var/state/lunar/packages
List of installed modules with their install date and version info.
MODULE_STATUS_BACKUP=/var/state/lunar/packages.backup
Backup list of installed modules with their install date and version info.
MODULE_INDEX=/var/state/lunar/module.index
Module list which contains the moonbase group to which each module belongs.
INSTALL_CACHE=/var/cache/lunar
Backup copy of compiled modules which are installed on the system.
SOURCE_CACHE=${SOURCE_CACHE:=/var/spool/lunar}
If the value of $SOURCE_CACHE is empty make it equal to /var/spool/lunar else it continues to equal the value of its previous define.
LIN=lin
The name of the script used to install lunar modules.
ARCHIVE=${ARCHIVE:=on}
AUTOFIX=${AUTOFIX:=on}
AUTOPRUNE=${AUTOPRUNE:=off}
MAIL_REPORTS=${MAIL_REPORTS:=off}
PRESERVE=${PRESERVE:=on}
REAP=${REAP:=on}
ADMIN=${ADMIN:=root}
SOUND=${SOUND:=off}
SUSTAIN=${SUSTAIN:=on}
VIEW_REPORTS=${VIEW_REPORTS:=on}
VOYEUR=${VOYEUR:=on}
GARBAGE=${GARBAGE:=on}
PROMPT_DELAY=${PROMPT_DELAY:=150}
LUNAR_PRIORITY="+10"
MAX_SOURCES=100
LDD_CHECK=${LDD_CHECK:=on}
FIND_CHECK=${FIND_CHECK:=on}
MD5SUM_CHECK=${MD5SUM_CHECK:=on}
SYM_CHECK=${SYM_CHECK:=off}
A comprehensive list of variables which may be locally assigned in /etc/lunar/local/config or by using the lunar tool.
GNU_URL=ftp://ftp.gnu.org/pub/gnu
KDE_URL=ftp://ftp.kde.org/pub/kde
GNOME_URL=ftp://ftp.gnome.org/pub/GNOME
KERNEL_URL=ftp://ftp.kernel.org
SFORGE_URL=http://telia.dl.sourceforge.net/sourceforge
XFREE86_URL=ftp://ftp.xfree86.org/pub/XFree86
LRESORT_URL=http://lunar-linux.org/lunar/cache
URL variables used in modules and subroutines.
MOONBASE_URL=http://lunar-linux.org/lunar/moonbase.tar.bz2
Direct URL for the default Lunar moonbase.
PATCH_URL=http://lunar-linux.org/lunar/patches
Direct URL for all the Lunar patches.
TRACKED="/bin /boot /etc /lib /sbin /usr /var /opt/lunar"
Install locations which are tracked (recorded) by the lunar installation routines. Interactive use provided mostly by lvu.
DEFAULT="\e[0m"
BOLD="\e[1m"
BLACK="\e[30m"
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
BLUE="\e[34m"
VIOLET="\e[35m"
CYAN="\e[36m"
WHITE="\e[37m"
MODULE_COLOR="${WHITE}${BOLD}\e[40m"
VERSION_COLOR="${WHITE}${BOLD}\e[40m"
QUERY_COLOR="${YELLOW}${BOLD}"
LRM_COLOR="${YELLOW}${BOLD}"
CHECK_COLOR="${CYAN}"
RESURRECT_COLOR="${GREEN}${BOLD}"
FILE_COLOR="${GREEN}${BOLD}"
SYMLINK_COLOR="${CYAN}${BOLD}"
PROBLEM_COLOR="${RED}${BOLD}"
MESSAGE_COLOR="${BLUE}${BOLD}"
MESSAGE_COLOR="${CYAN}"
DEFAULT_COLOR="${DEFAULT}"
Variables defining the default colors used by the Lunar tool set.
TAB_ENTER_IFS="
"
Enabling modification of IFS (internal field separator) which is a bash shell default.
ENTER_IFS="
"
Enabling modification of IFS (internal field separator) which is a bash shell default.
STANDARD_IFS="
"
Enabling modification of IFS (internal field separator) which is a bash shell default.
. $SUBROUTINES
Sourcing the subroutines file  /var/lib/lunar/subroutines.
[ -s "$LOCAL_CONFIG" ] && . $LOCAL_CONFIG
If /etc/lunar/local/config exists and is not empty it is sourced. Some variables assigned in this file may over-ride those assigned here.


© 2003, Lunar-Linux.org
Written by: Chuck Mead <csm@lunar-linux.org>
Last edited: 16 Feb 2003