Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.80
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 816f4cee75674e3a21fd40f1961279f2
  8. PKG_DESCR:= logical volume management
  9. PKG_SECTION:= fs
  10. PKG_DEPENDS:= libdevmapper libncurses
  11. PKG_URL:= http://sourceware.org/lvm2/
  12. PKG_SITES:= ftp://sources.redhat.com/pub/lvm2/
  13. PKG_LIBNAME:= libdevmapper
  14. PKG_OPTS:= dev
  15. PKG_SUBPKGS:= LVM DEVICE_MAPPER LIBDEVMAPPER
  16. PKGSD_DEVICE_MAPPER:= device-mapper utility
  17. PKGSS_DEVICE_MAPPER:= libdevmapper
  18. PKGSD_LIBDEVMAPPER:= device-mapper library
  19. PKGSC_LIBDEVMAPPER:= libs
  20. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  21. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  22. ifeq ($(ADK_STATIC),y)
  23. PKG_OPTS+= libmix
  24. endif
  25. include ${TOPDIR}/mk/package.mk
  26. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_DEVICE_MAPPER},${PKG_SECTION}))
  28. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER},${PKGSC_LIBDEVMAPPER},${PKG_OPTS}))
  29. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  30. --with-optimisation="" \
  31. --with-lvm1=none
  32. lvm-install:
  33. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  34. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  35. libdevmapper-install:
  36. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  38. ${IDIR_LIBDEVMAPPER}/usr/lib
  39. device-mapper-install:
  40. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  42. ${IDIR_DEVICE_MAPPER}/usr/sbin
  43. include ${TOPDIR}/mk/pkg-bottom.mk