Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.51
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 725d07794007e021bfc592b1636100c7
  8. PKG_DESCR:= logical volume management
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= device-mapper libncurses
  11. PKG_URL:= http://sourceware.org/lvm2/
  12. PKG_SITES:= ftp://sources.redhat.com/pub/lvm2/
  13. PKG_DESCR_DM:= device-mapper library and utility
  14. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  15. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR_DM},${PKG_SECTION}))
  19. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  20. --with-optimisation="" \
  21. --with-lvm1=none
  22. post-install:
  23. # lvm
  24. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  25. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  26. # device-mapper
  27. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin ${IDIR_DEVICE_MAPPER}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  29. ${IDIR_DEVICE_MAPPER}/usr/lib
  30. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  31. ${IDIR_DEVICE_MAPPER}/usr/sbin
  32. chmod u+w ${IDIR_DEVICE_MAPPER}/usr/lib/*.so*
  33. include ${TOPDIR}/mk/pkg-bottom.mk