1
0

Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= lvm
  5. PKG_VERSION:= 2.02.106
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 77f84279fb649b3dc4edad1c6d1a1b0e
  8. PKG_DESCR:= logical volume management
  9. PKG_SECTION:= sys/fs
  10. PKG_DEPENDS:= libdevmapper libncurses
  11. PKG_BUILDDEP:= ncurses util-linux
  12. PKG_URL:= http://sourceware.org/lvm2/
  13. PKG_SITES:= ftp://sources.redhat.com/pub/lvm2/
  14. PKG_LIBNAME:= libdevmapper
  15. PKG_OPTS:= dev
  16. PKG_SUBPKGS:= LVM DEVICE_MAPPER LIBDEVMAPPER
  17. PKGSD_DEVICE_MAPPER:= device-mapper utility
  18. PKGSS_DEVICE_MAPPER:= libdevmapper
  19. PKGSD_LIBDEVMAPPER:= device-mapper library
  20. PKGSC_LIBDEVMAPPER:= libs/misc
  21. DISTFILES:= LVM2.${PKG_VERSION}.tgz
  22. WRKDIST= ${WRKDIR}/LVM2.${PKG_VERSION}
  23. include ${ADK_TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,LVM,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. $(eval $(call PKG_template,DEVICE_MAPPER,device-mapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_DEVICE_MAPPER},${PKG_SECTION}))
  26. $(eval $(call PKG_template,LIBDEVMAPPER,libdevmapper,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBDEVMAPPER},${PKGSC_LIBDEVMAPPER},${PKG_OPTS}))
  27. CONFIGURE_ARGS+= --with-user="" --with-group="" \
  28. --with-optimisation="" \
  29. --disable-testing \
  30. --with-lvm1=none
  31. CONFIGURE_ENV+= ac_cv_flag_HAVE_PIE=no
  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 ${ADK_TOPDIR}/mk/pkg-bottom.mk