summaryrefslogtreecommitdiff
path: root/package/pacemaker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/pacemaker/Makefile')
-rw-r--r--package/pacemaker/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/pacemaker/Makefile b/package/pacemaker/Makefile
new file mode 100644
index 000000000..e0991855f
--- /dev/null
+++ b/package/pacemaker/Makefile
@@ -0,0 +1,42 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= pacemaker
+PKG_VERSION:= 1.0.11
+PKG_RELEASE:= 1
+PKG_MD5SUM:= bfe2127d31e5244d0106a5c290fd0dc2
+PKG_DESCR:= scalable High-Availability cluster resource manager
+PKG_SECTION:= ha
+PKG_DEPENDS:= python2
+PKG_URL:= http://www.clusterlabs.org/
+PKG_SITES:= http://openadk.org/distfiles/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,PACEMAKER,pacemaker,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+# disable honour cflags stuff
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
+
+CONFIGURE_ARGS+= --includedir=$(STAGING_TARGET_DIR)/usr/include
+CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
+CFLAGS_FOR_BUILD+= -I$(STAGING_TARGET_DIR)/usr/include/heartbeat
+
+pacemaker-install:
+ $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/lib*.so* \
+ $(IDIR_PACEMAKER)/usr/lib
+ $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/sbin
+ $(CP) $(WRKINST)/usr/sbin/* \
+ $(IDIR_PACEMAKER)/usr/sbin
+ $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/libexec
+ $(CP) $(WRKINST)/usr/libexec/* \
+ $(IDIR_PACEMAKER)/usr/libexec
+ $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages
+ $(CP) $(WRKINST)/usr/lib/python2.7/site-packages/* \
+ $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages/
+ -find ${IDIR_PACEMAKER} -name "\*.pyc" -o -name "*\.pyo" -exec rm {} \;
+
+include ${TOPDIR}/mk/pkg-bottom.mk