Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:= 2
  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_SUBPKGS:= LVM DEVICE_MAPPER LIBDEVMAPPER LIBDEVMAPPER_DEV
  14. PKGSD_DEVICE_MAPPER:= device-mapper utility
  15. PKGSS_DEVICE_MAPPER:= libdevmapper
  16. PKGSD_LIBDEVMAPPER:= device-mapper library
  17. PKGSC_LIBDEVMAPPER:= libs
  18. PKGSD_LIBDEVMAPPER_DEV:=device-mapper headers
  19. PKGSC_LIBDEVMAPPER_DEV:=devel
  20. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  21. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_DEVICE_MAPPER},${PKG_SECTION}))
  25. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER},${PKGSC_LIBDEVMAPPER}))
  26. $(eval $(call PKG_template,LIBDEVMAPPER_DEV,libdevmapper-dev,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER_DEV},${PKGSC_LIBDEVMAPPER_DEV}))
  27. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  28. --with-optimisation="" \
  29. --with-lvm1=none
  30. lvm-install:
  31. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  32. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  33. libdevmapper-install:
  34. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  36. ${IDIR_LIBDEVMAPPER}/usr/lib
  37. libdevmapper-dev-install:
  38. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER_DEV}/usr/include
  39. ${CP} ${WRKINST}/usr/include/* \
  40. ${IDIR_LIBDEVMAPPER_DEV}/usr/include
  41. device-mapper-install:
  42. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  44. ${IDIR_DEVICE_MAPPER}/usr/sbin
  45. include ${TOPDIR}/mk/pkg-bottom.mk