Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-mgmt
  5. PKG_VERSION:= 2.0.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= be16a38588d1c518f53e64e7e48e1c90
  8. PKG_DESCR:= Pacemaker management daemon
  9. PKG_SECTION:= ha
  10. PKG_BUILDDEP:= swig-host pacemaker gnutls pam python2
  11. PKG_URL:= http://hg.clusterlabs.org/pacemaker/pygui/
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. PKG_LIBC_DEPENDS:= eglibc glibc musl
  14. PKG_ARCH_DEPENDS:= x86 x86_64
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,PACEMAKER_MGMT,pacemaker-mgmt,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. include $(TOPDIR)/mk/python.mk
  18. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  19. CONFIGURE_ARGS+= --with-initdir=/etc/init.d \
  20. --with-ocf-root=/usr/lib/ocf \
  21. --without-ais-support \
  22. --disable-fatal-warnings
  23. TARGET_CFLAGS+= -I$(STAGING_DIR)/usr/include/python2.7 \
  24. -I$(STAGING_DIR)/usr/include/pacemaker \
  25. -I$(STAGING_DIR)/usr/include/heartbeat
  26. pacemaker-mgmt-install:
  27. $(INSTALL_DIR) $(IDIR_PACEMAKER_MGMT)/usr/lib
  28. $(CP) $(WRKINST)/usr/lib/libhbmgmt*so* \
  29. $(IDIR_PACEMAKER_MGMT)/usr/lib
  30. $(INSTALL_DIR) $(IDIR_PACEMAKER_MGMT)/usr/lib/heartbeat
  31. $(INSTALL_BIN) $(WRKINST)/usr/lib/heartbeat/mgmtd \
  32. $(IDIR_PACEMAKER_MGMT)/usr/lib/heartbeat
  33. include ${TOPDIR}/mk/pkg-bottom.mk