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.

66 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.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_CPE_ID:=cpe:/a:memcachedb:memcached
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/memcached
  22. SECTION:=net
  23. CATEGORY:=Network
  24. DEPENDS:=+libevent2 +libpthread
  25. TITLE:=The high-performance, distributed memory object caching system
  26. URL:=https://memcached.org/
  27. endef
  28. define Package/memcached/description
  29. Free and open source, high-performance, distributed memory object caching system
  30. endef
  31. define Package/memcached/conffiles
  32. /etc/config/memcached
  33. endef
  34. ifeq ($(CONFIG_BIG_ENDIAN),y)
  35. CONFIGURE_VARS += ac_cv_c_endian=big
  36. else
  37. CONFIGURE_VARS += ac_cv_c_endian=little
  38. endif
  39. CONFIGURE_ARGS += \
  40. --with-libevent=$(STAGING_DIR)/usr/include/libevent \
  41. --disable-docs \
  42. --disable-dtrace \
  43. --disable-coverage \
  44. --disable-sasl
  45. define Package/memcached/install
  46. $(INSTALL_DIR) $(1)/usr/bin
  47. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
  52. endef
  53. $(eval $(call BuildPackage,memcached))