Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= cryptsetup
  5. PKG_VERSION:= 1.3.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 1f5b5a9d538e8a3c191fb7dd85b9b013
  8. PKG_DESCR:= LUKS cryptsetup tools
  9. PKG_SECTION:= crypto
  10. PKG_DEPENDS:= libgcrypt device-mapper libuuid libpopt
  11. PKG_DEPENDS+= kmod-dm-crypt kmod-crypto-aes kmod-crypto-cbc
  12. PKG_DEPENDS+= kmod-crypto-sha256 kmod-blk-dev-dm
  13. PKG_BUILDDEP:= libgcrypt popt e2fsprogs lvm
  14. PKG_URL:= http://cryptsetup.googlecode.com/
  15. PKG_SITES:= http://cryptsetup.googlecode.com/files/
  16. PKG_SUBPKGS:= CRYPTSETUP CRYPTSETUP_DEV
  17. PKGSC_CRYPTSETUP_DEV:= devel
  18. PKG_ARCH_DEPENDS:= !cris
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,CRYPTSETUP,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. $(eval $(call PKG_template,CRYPTSETUP_DEV,cryptsetup-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_CRYPTSETUP_DEV}))
  23. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  24. CONFIGURE_ARGS+= --disable-selinux
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_CRYPTSETUP}/usr/sbin ${IDIR_CRYPTSETUP}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libcryptsetup.so* \
  28. ${IDIR_CRYPTSETUP}/usr/lib
  29. ${INSTALL_BIN} ${WRKINST}/usr/sbin/cryptsetup \
  30. ${IDIR_CRYPTSETUP}/usr/sbin
  31. cryptsetup-dev-install:
  32. ${INSTALL_DIR} ${IDIR_CRYPTSETUP_DEV}/usr/include
  33. ${CP} ${WRKINST}/usr/include/* \
  34. ${IDIR_CRYPTSETUP_DEV}/usr/include
  35. include ${TOPDIR}/mk/pkg-bottom.mk