
#
# generated by mkskel 0.0.2r28
#

VERSION="1.95.10"
ARCH="i386"
RELEASE="1"

# --------- |-----handy-ruler------------------------------------------------------|
DESCRIPTION="The Linux Logical Volume Manager\n
             \n
             This is LVM2, the rewrite of The Linux Logical Volume Manager.  LVM\n
             supports enterprise level volume management of disk and disk\n
             subsystems by grouping arbitrary disks into volume groups. The total\n
             capacity of volume groups can be allocated to logical volumes, which\n
             are accessed as regular block devices."
# --------- |-----handy-ruler------------------------------------------------------|

PREFIX="/"
SYSCONFDIR="/etc"

SOURCE_DIRECTORY="LVM2.${VERSION}"

PACKAGE_NAME="lvm2-${VERSION}-${ARCH}-${RELEASE}"

INSTALL_MODE="normal"

DOWNLOAD () { return 0; }

EXTRACT ()
{
  do_extract "LVM2.1.95.10.tgz"
}

CONFIGURE ()
{
  ./configure --prefix=${PREFIX} \
              --sysconfdir=${SYSCONFDIR} \
              --disable-readline
}

BUILD ()
{
  make
}

INSTALL ()
{
  make -e prefix=${DESTDIR}${PREFIX} mandir=${DESTDIR}/usr/man infodir=${DESTDIR}/usr/info install
  chmod 755 ${DESTDIR}/sbin/lvm
  mkdir -p ${DESTDIR}${SYSCONFDIR}/lvm
  cat doc/example.conf > ${DESTDIR}${SYSCONFDIR}/lvm/lvm.conf.new
}
