           SPELL=device-mapper

###
# 2006-09-27
# DEVICE_MAPPER_DEVEL -> DEVICE_MAPPER_BRANCH

if [ "$DEVICE_MAPPER_DEVEL" == "y" ]; then
  DEVICE_MAPPER_BRANCH="DEFAULT"
fi

if [ "$DEVICE_MAPPER_DEVEL" == "n" ]; then
  DEVICE_MAPPER_BRANCH="1.01"
fi
###

if [ -z "$DEVICE_MAPPER_BRANCH" ] || [ "$DEVICE_MAPPER_BRANCH" == "DEFAULT" ]; then
  DEVICE_MAPPER_BRANCH="1.02"
fi

case $DEVICE_MAPPER_BRANCH in
  1.01)
         VERSION=1.01.05
      PATCHLEVEL=1
  ;;
  1.02)
         VERSION=1.02.24
  ;;
esac

          SOURCE=$SPELL.$VERSION.tgz
         SOURCE2=$SPELL.$VERSION.tgz.asc
  SOURCE2_IGNORE=signature
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL.$VERSION
   SOURCE_URL[0]=ftp://sources.redhat.com/pub/dm/$SOURCE
  SOURCE2_URL[0]=$SOURCE_URL.asc
      SOURCE_GPG=dm.gpg:$SOURCE2:UPSTREAM_KEY
        WEB_SITE=http://sources.redhat.com/dm/
         ENTERED=20031210
        KEYWORDS="kernels"
           SHORT="userspace files of device-mapper"
      LICENSE[0]=GPL
cat << EOF
The Device-mapper is a new component of the linux kernel that supports logical 
volume management. It is required by LVM2 and EVMS. The original LVM (included 
in stock 2.4 kernels) does not use it.

If you intend to use Device-mapper, as well as adding it to your kernel, you 
should install the userspace configuration tool (dmsetup) and library 
(libdevmapper), you should install this spell.
EOF
