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.

63 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.6.6
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://memcached.org/files
  14. PKG_HASH:=908f0eecfa559129c9e44edc46f02e73afe8faca355b4efc5c86d902fc3e32f7
  15. PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
  16. PKG_LICENSE:=BSD-3-Clause
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:memcachedb:memcached
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/memcached
  23. SECTION:=net
  24. CATEGORY:=Network
  25. DEPENDS:=+libevent2 +libpthread
  26. TITLE:=The high-performance, distributed memory object caching system
  27. URL:=https://memcached.org/
  28. endef
  29. define Package/memcached/description
  30. Free and open source, high-performance, distributed memory object caching system
  31. endef
  32. define Package/memcached/conffiles
  33. /etc/config/memcached
  34. endef
  35. CONFIGURE_ARGS += \
  36. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  37. --disable-docs \
  38. --disable-dtrace \
  39. --disable-coverage \
  40. --disable-sasl
  41. CONFIGURE_VARS += ac_cv_c_endian=$(if $(CONFIG_BIG_ENDIAN),big,little)
  42. define Package/memcached/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  45. $(INSTALL_DIR) $(1)/etc/config
  46. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  47. $(INSTALL_DIR) $(1)/etc/init.d
  48. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  49. endef
  50. $(eval $(call BuildPackage,memcached))