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.

64 lines
1.7 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.9
  11. PKG_RELEASE:=$(AUTORELEASE)
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://memcached.org/files
  14. PKG_HASH:=d5a62ce377314dbffdb37c4467e7763e3abae376a16171e613cbe69956f092d1
  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. USERID:=memcached=441:memcached=441
  29. endef
  30. define Package/memcached/description
  31. Free and open source, high-performance, distributed memory object caching system
  32. endef
  33. define Package/memcached/conffiles
  34. /etc/config/memcached
  35. endef
  36. CONFIGURE_ARGS += \
  37. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  38. --disable-docs \
  39. --disable-dtrace \
  40. --disable-coverage \
  41. --disable-sasl
  42. CONFIGURE_VARS += ac_cv_c_endian=$(if $(CONFIG_BIG_ENDIAN),big,little)
  43. define Package/memcached/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  46. $(INSTALL_DIR) $(1)/etc/config
  47. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  50. endef
  51. $(eval $(call BuildPackage,memcached))