You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2009-2012 OpenWrt.org
  3. # Copyright (C) 2009-2014 Thomas Heil <heil@terminal-consulting.de>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=memcached
  10. PKG_VERSION:=1.5.14
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://memcached.org/files
  14. PKG_HASH:=9c5bdf29a780fb6c6f7c9eaaeeda0583efdf663193758c3e316c969a510af2a9
  15. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/memcached
  21. SECTION:=net
  22. CATEGORY:=Network
  23. DEPENDS:=+libevent2 +libpthread
  24. TITLE:=The high-performance, distributed memory object caching system
  25. URL:=https://memcached.org/
  26. endef
  27. define Package/memcached/description
  28. Free and open source, high-performance, distributed memory object caching system
  29. endef
  30. define Package/memcached/conffiles
  31. /etc/config/memcached
  32. endef
  33. ifeq ($(CONFIG_BIG_ENDIAN),y)
  34. CONFIGURE_VARS += ac_cv_c_endian=big
  35. else
  36. CONFIGURE_VARS += ac_cv_c_endian=little
  37. endif
  38. CONFIGURE_ARGS += \
  39. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  40. --disable-docs \
  41. --disable-dtrace \
  42. --disable-coverage \
  43. --disable-sasl
  44. define Package/memcached/install
  45. $(INSTALL_DIR) $(1)/usr/bin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  47. $(INSTALL_DIR) $(1)/etc/config
  48. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  51. endef
  52. $(eval $(call BuildPackage,memcached))