Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.76
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1a43a943c218cb00ce1a6ce39889a6ae
  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
  14. PKGSD_DEVICE_MAPPER:= device-mapper utility
  15. PKGSD_LIBDEVMAPPER:= device-mapper library
  16. PKGSC_LIBDEVMAPPER:= libs
  17. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  18. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_DEVICE_MAPPER},${PKG_SECTION}))
  22. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER},${PKGSC_LIBDEVMAPPER}))
  23. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  24. --with-optimisation="" \
  25. --with-lvm1=none
  26. post-install:
  27. # lvm
  28. ${INSTALL_DIR} ${IDIR_LVM}/usr/sbin
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/lvm ${IDIR_LVM}/usr/sbin/lvm
  30. # libdevmapper
  31. ${INSTALL_DIR} ${IDIR_LIBDEVMAPPER}/usr/lib
  32. ${CP} ${WRKINST}/usr/lib/libdevmapper.so* \
  33. ${IDIR_LIBDEVMAPPER}/usr/lib
  34. # device-mapper
  35. ${INSTALL_DIR} ${IDIR_DEVICE_MAPPER}/usr/sbin
  36. ${INSTALL_BIN} ${WRKINST}/usr/sbin/dmsetup \
  37. ${IDIR_DEVICE_MAPPER}/usr/sbin
  38. include ${TOPDIR}/mk/pkg-bottom.mk