# FreeDOS Software Repository Maintenance Utility Script Configuration File # The server's identification name SERVERNAME="www.example.com" # Webmaster Email CONTACT="someone@somewhere.com" # Webmaster Name WEBMASTER="Nobody" # The default/current repository identification label REPOSITORY="current" # Directory for temporary files and things PATH_TEMP="${HOME}/tmp" # Log file FILE_LOG="${HOME}/fdrepo.log" # Sub-directory for static LSM meta data files PATH_DATA="pkg-info" # Sub-directory for static HTML pages PATH_HTML="pkg-html" # Prefix for HTML group files PREFIX_GROUP="group-" # File extension for static LSM meta data files EXTENSION_DATA="txt" # File extension for static HTML pages EXTENSION_HTML="html" # Filename character used for versioning DATA and HTML files VERSIONING="." # Ignored file names if package group directories. Must be surrounded by ; # (note all files in repository root directory are ignored automatically) FILE_IGNORE=";index.lst;index.gz;" # Ignored meta-data fields of packages when creating CSV files. Must be # surrounded by ; (note all fields not set to be displayed are # automatically excluded) CSV_EXCLUDE=";versions;download;changes;" # All generated files are also compared before being placed. These filters # are used to filter out generation time stamps to prevent updating # existing unchanged files and preserve their modification time stamps. FILTER_META="" FILTER_LST="Build time:" FILTER_TXT="Build time:" FILTER_HTML="last-updated" FILTER_CSS="" FILTER_XML="\|" # The following FUNCTIONS are automatically configured for Linux and OS X # systems. Others may require modifications. # External function shortcuts # FUNCTION_DATELOG='date +"%Y-%m-%d @ %H:%M:%S"' # FUNCTION_DATEMOD='date +"%Y-%m-%d"' # FUNCTION_DATESTAMP='date' # FUNCTION_EPOCH_TO_DATE='date -d @$1' # Platform specific routines. Change these when you want to break everything. # FUNCTION_STAT='stat --format %Y "$1" 2>/dev/null' # FUNCTION_CRC='' # FUNCTION_MD5='md5sum "$1" | cut -d " " -f 1' # FUNCTION_SHA='sha256sum "$1" | cut -d " " -f 1' # FUNCTION_FILESIZE='echo $(ls -lh "$1" 2>/dev/null || echo "0 0 0 0 ?") | cut -d " " -f 5' # FUNCTION_BUILDIDX='' # FUNCTION_BUILDCSV='' # FUNCTION_BUILDHTML='' # FUNCTION_CDISO='mkisofs -input-charset utf-8 -V $(date +"%Y%m%d")FDREPOCD -r -f -b boot.img -c boot.cat -o ../cdrom.iso .' # FUNCTION_CDTITLE='echo Repository CD \($(date +"%Y-%m-%d")\)' # FUNCTION_ALTISO='mkisofs -o ../cdrom.iso -V $(date +"%Y%m%d")FDREPOCD -r -b ISOLINUX/ISOLINUX.BIN -c ISOLINUX/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table CDROOT' # FUNCTION_ALTTITLE='echo Repository CD \($(date +"%Y-%m-%d")\)' # FUNCTION_EDIT='vi "$1"' # CD/DVD ISO image file settings FILE_CD_ISO="cdrom.iso" FILE_CD_FLOPPY="boot.img" FILE_CD_FILES="" # Alternate CD/DVD ISO image file settings FILE_ALT_ISO="alternate.iso" FILE_ALT_FLOPPY="boot.img" FILE_ALT_FILES="${CONFIG%/*}/fdrepo.isolinux.tgz" # Maximum description width in index data files MAX_WIDTH='2048' # Maximum items in rss feeds and initial new feed item count MAX_RSS='200' MAX_RSS_NEW='10' # Individual repository configuration information REPO_ID[0]="current" REPO_TITLE[0]="Current" REPO_PATH[0]="/var/www/html/repos/current" REPO_URL[0]="https://${SERVERNAME}/repos/current" # Put these groups first. (by ID, ';' separated) GROUP_ORDER="base" # Group renaming. 'ID, Title, Description' GROUP_DATA[0]="base,FreeDOS Base,Programs that provide the functionality of classic DOS" GROUP_DATA[1]="archiver,Archivers,Tools to compress files and create archives" GROUP_DATA[2]="boot,Boot Tools,Utilities to help you boot your computer" GROUP_DATA[3]="devel,Development,Development tools such as compilers and assemblers" GROUP_DATA[4]="edit,Editors,Editors and simple word processors that let you edit text files" GROUP_DATA[5]="emulator,Emulators,Programs that emulate other systems" GROUP_DATA[6]="games,Games,Fun games that you can play" GROUP_DATA[7]="net,Networking,Utilities that support networks and connectivity" GROUP_DATA[8]="sound,Sound Tools,Programs that play music and sound files" GROUP_DATA[9]="util,Utilities,Tools and other useful programs that you might like to use" GROUP_DATA[10]="extra,Extras,Miscellaneous programs" GROUP_DATA[11]="gui,G.U.I.,Text & Graphical User Interfaces" GROUP_DATA[12]="obsolete,Obsolete Packages,Base programs that have been replaced by other core programs" # Package configuration information (fields not in this list are hidden) # LSM-Metadata-ID,ITEM:HANDLER,Displayed description META_DATA[0]="Title" META_DATA[1]="Version" META_DATA[2]="Entered-date,,Date Entered" META_DATA[3]="Description" META_DATA[4]="Summary" META_DATA[5]="Changes,,Whats New" META_DATA[6]="Keywords" META_DATA[7]="Author" META_DATA[8]="Maintained-by,,Maintained by" META_DATA[9]="Primary-site,LINKS,Primary site" META_DATA[10]="Alternate-site,LINKS,Alternate site" META_DATA[11]="Original-site,LINKS,Original site" META_DATA[12]="Wiki-site,LINKS,Wiki" META_DATA[13]="Platforms" META_DATA[14]="Copying-policy,,Copying policy" META_DATA[15]="Group,GROUP" META_DATA[16]="CRC,,CRC32" META_DATA[17]="MD5" META_DATA[18]="SHA,,SHA256" META_DATA[19]="Download,DOWNLOAD" META_DATA[20]="Versions,VERSIONS,Alternate Versions" # Website URL alaises. If a URL resides under the alias, most of the link text # will be replaced with it's title. Never include WWW., it is always assumed # to be the default server for http urls and is stripped prior to matching. # Including it will cause the alias to never match a URL. SITE_ALIAS[0]="http://ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/" SITE_TITLE[0]="FreeDOS Repository -- " SITE_ALIAS[1]="http://ibiblio.org/pub/micro/pc-stuff/freedos/files/" SITE_TITLE[1]="FreeDOS Archive -- " SITE_ALIAS[2]="http://wiki.freedos.org/wiki/index.php/" SITE_TITLE[2]="FreeDOS Wiki -- " SITE_ALIAS[3]="http:/freedos.org/" SITE_TITLE[3]="The FreeDOS Website -- " SITE_ALIAS[4]="http://freedos.org" SITE_TITLE[4]="The FreeDOS Website" SITE_ALIAS[5]="http://github.com/" SITE_TITLE[5]="GitHub -- " SITE_ALIAS[6]="http://sourceforge.net/projects/" SITE_TITLE[6]="SourceForge -- " SITE_ALIAS[7]="http://up.lod.bz/" SITE_TITLE[7]="LOD.BZ -- "