Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= lvm
  5. PKG_VERSION:= 2.02.62
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 72e3d66dc42aaf67dca475196a113528
  8. PKG_DESCR:= logical volume management
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libdevmapper libncurses
  11. PKG_URL:= http://sourceware.org/lvm2/
  12. PKG_SITES:= ftp://sources.redhat.com/pub/lvm2/
  13. PKG_DESCR_DM:= device-mapper utility
  14. PKG_DESCR_LIBDM:= device-mapper library
  15. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  16. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_DM},${PKG_SECTION}))
  20. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_LIBDM},${PKG_SECTION}))
  21. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  22. --with-optimisation="" \
  23. --with-lvm1=none
  24. post-install:
  25. # lvm
  26. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  27. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  28. # libdevmapper
  29. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
  30. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  31. ${IDIR_LIBDEVMAPPER}/usr/lib
  32. chmod u+w ${IDIR_LIBDEVMAPPER}/usr/lib/*.so*
  33. # device-mapper
  34. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  36. ${IDIR_DEVICE_MAPPER}/usr/sbin
  37. include ${TOPDIR}/mk/pkg-bottom.mk