define Package/memcached
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libevent librt
+ DEPENDS:=+libevent
TITLE:=The high-performance, distributed memory object caching system
- SUBMENU:=Web
MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
endef
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/memcached $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/config
- $(INSTALL_CONF) ./files/memcached $(1)/etc/config/memcached
+ $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
endef
#!/bin/sh /etc/rc.common
-# Copyright (C) 2007 OpenWrt.org
+# Copyright (C) 2010 OpenWrt.org
START=80
start_service () {
config_get port "$section" port
config_get memory "$section" memory
- memcached_args="-d -p ${port:-"11211"} -u ${user:-"nobody"} -c ${maxconn:-"1024"} -l ${listen:-"0.0.0.0"} -U ${port:-"11211"} -m${memory:-"64"}"
+ memcached_args="-d -u ${user:-nobody} -c ${maxconn:-1024} -l ${listen:-0.0.0.0} -p ${port:-11211} -U ${port:-11211} -m ${memory:-64}"
memcached $memcached_args >/dev/null 2>&1
}