# draft default NSRL configuration file

# the key=value mechanism here supports case sensitivity,
# and is close to a "chomp; ($k,$v)=split(/=/,$_,2)"

# root section

NSRL=NSRL
version=0.02
odbc=false
magic=true
extensions=true
recurse=true
processors=1
zombie_hours=8
use_hashes=SHA1,MD5,CRC32
# Assume magic file is local to us.
magicfile=NSRLmagic

[linux]
recurse_types=TAR,GZ,UU,ISO,ZIP,CAB,BZ,BZ2,RPM,INST,DEB
CAB=cabextract -d <$DESTDIR$> <$SRCFILE$>
INST=unshield -d <$DESTDIR$> -D 3 x <$SRCFILE$>
TAR=tar -xvf <$SRCFILE$> --directory=<$DESTDIR$> 
GZ=gunzip -c <$SRCFILE$> > <$DESTDIR$>/<$DESTFILE$>
ZIP=unzip <$SRCFILE$> -d <$DESTDIR$> 
BZ=bunzip2 -kcf <$SRCFILE$> > <$DESTDIR$>/<$DESTFILE$>
BZ2=bunzip2 -kcf <$SRCFILE$> > <$DESTDIR$>/<$DESTFILE$>
RPM=rpm2cpio <$SRCFILE$> | cpio --extract --make-directories
DEB=dpkg-deb --vextract <$SRCFILE$> <$DESTDIR$>
UU=uudecode -o <$DESTDIR$>/<$DESTFILE$> <$SRCFILE$> 
ISO=mkdir /mnt/NSRL;mount -t iso9660 -o ro -o loop <$SRCFILE$> /mnt/NSRL;cp -R /mnt/NSRL/* <$DESTDIR$>;umount /mnt/NSRL;rmdir /mnt/NSRL

recurse_extensions=.dd
.dd=mkdir /mnt/NSRL;mount -o ro -o loop <$SRCFILE$> /mnt/NSRL;cp -R /mnt/NSRL <$DESTDIR$>;umount /mnt/NSRL;rmdir /mnt/NSRL 

[win98]
recurse_types=
TAR=tar -xvf
GZ=winzipc -d
CAB=cabarc -x

[win2000]
recurse_types=

[macosx]
recurse_types=
DMG=mount
SIT=umstuff -R
# from perl %ENV 
# HOSTTYPE=powermac 
# MACHTYPE=powerpc 
# OSTYPE=darwin 
# VENDOR=apple