Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:= drbd
  5. PKG_VERSION:= 8.4.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= b51815343c1a9151e2936b3b97520388
  8. PKG_DESCR:= admin tools for drbd
  9. PKG_SECTION:= sys/fs
  10. PKG_URL:= http://www.drbd.org/
  11. PKG_SITES:= http://oss.linbit.com/drbd/8.4/
  12. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  13. PKG_LIBC_DEPENDS:= uclibc glibc
  14. include $(ADK_TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,DRBD,drbd,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. XAKE_FLAGS+= GENETLINK_H=$(STAGING_TARGET_DIR)/usr/include/linux/genetlink.h
  17. CONFIGURE_ARGS+= --with-distro=generic \
  18. --with-pacemaker \
  19. --without-heartbeat \
  20. --without-km \
  21. --without-xen \
  22. --without-udev
  23. drbd-install:
  24. $(INSTALL_DIR) $(IDIR_DRBD)/etc
  25. $(CP) ./files/drbd.conf $(IDIR_DRBD)/etc
  26. $(INSTALL_DIR) $(IDIR_DRBD)/usr/lib/drbd
  27. $(INSTALL_DIR) $(IDIR_DRBD)/usr/sbin
  28. $(CP) $(WRKINST)/usr/lib/drbd/* \
  29. $(IDIR_DRBD)/usr/lib/drbd/
  30. $(INSTALL_BIN) $(WRKINST)/usr/sbin/drbd* \
  31. $(IDIR_DRBD)/usr/sbin
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk