Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= pacemaker
  5. PKG_VERSION:= 1.1.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 3aaa95da2bdce96e0c244a2fb0e8b1e3
  8. PKG_DESCR:= scalable High-Availability cluster resource manager
  9. PKG_SECTION:= ha
  10. PKG_BUILDDEP:= resource-agents cluster-glue pam gnutls corosync libtool
  11. PKG_DEPENDS:= python2 python2-readline python2-bzip2 cluster-glue libuuid
  12. PKG_DEPENDS+= bash resource-agents pam libgnutls glib libxslt libxml2 libltdl librt
  13. PKG_URL:= http://www.clusterlabs.org/
  14. PKG_SITES:= http://openadk.org/distfiles/
  15. PKG_LIBC_DEPENDS:= eglibc glibc musl
  16. PKG_ARCH_DEPENDS:= x86 x86_64
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,PACEMAKER,pacemaker,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ARGS+= --disable-fatal-warnings \
  20. --with-corosync \
  21. --without-ais \
  22. --without-heartbeat
  23. CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
  24. pacemaker-install:
  25. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib/heartbeat
  26. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib/ocf
  27. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  28. $(IDIR_PACEMAKER)/usr/lib
  29. $(CP) $(WRKINST)/usr/lib/ocf/* \
  30. $(IDIR_PACEMAKER)/usr/lib/ocf
  31. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/share/pacemaker
  32. $(CP) $(WRKINST)/usr/share/pacemaker/* \
  33. $(IDIR_PACEMAKER)/usr/share/pacemaker
  34. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/sbin
  35. $(CP) $(WRKINST)/usr/sbin/* \
  36. $(IDIR_PACEMAKER)/usr/sbin
  37. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/libexec
  38. $(CP) $(WRKINST)/usr/libexec/* \
  39. $(IDIR_PACEMAKER)/usr/libexec
  40. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages
  41. $(CP) $(WRKINST)/usr/lib/python2.7/site-packages/* \
  42. $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages/
  43. -find ${IDIR_PACEMAKER} -name "\*.pyc" -o -name "*\.pyo" -exec rm {} \;
  44. include ${TOPDIR}/mk/pkg-bottom.mk