2010-02-28 12:26:53 +00:00
|
|
|
#
|
2012-01-19 00:46:53 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
|
|
|
# Copyright (C) 2009-2012 Thomas Heil <heil@terminal-consulting.de>
|
2010-02-28 12:26:53 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
2011-11-13 22:15:49 +00:00
|
|
|
#
|
2010-02-28 12:26:53 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=memcached
|
2012-02-06 15:04:53 +00:00
|
|
|
PKG_VERSION:=1.4.12
|
2011-11-20 04:01:49 +00:00
|
|
|
PKG_RELEASE:=1
|
2010-02-28 12:26:53 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://memcached.googlecode.com/files
|
2012-02-06 15:04:53 +00:00
|
|
|
PKG_MD5SUM:=4194de21b58a92de684ce69b8e501c44
|
2012-01-19 00:46:53 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2010-02-28 12:26:53 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/memcached
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2012-08-03 09:15:20 +00:00
|
|
|
DEPENDS:=+libevent +libpthread
|
2010-02-28 12:26:53 +00:00
|
|
|
TITLE:=The high-performance, distributed memory object caching system
|
|
|
|
MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://memcached.org/
|
2010-02-28 12:26:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/memcached/description
|
|
|
|
Free and open source, high-performance, distributed memory object caching system
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/memcached/conffiles
|
|
|
|
/etc/config/memcached
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_BIG_ENDIAN),y)
|
|
|
|
CONFIGURE_VARS += ac_cv_c_endian=big
|
|
|
|
else
|
|
|
|
CONFIGURE_VARS += ac_cv_c_endian=little
|
|
|
|
endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2012-08-03 09:15:20 +00:00
|
|
|
--with-libevent=$(STAGING_DIR)/usr/include/libevent \
|
2010-02-28 12:26:53 +00:00
|
|
|
--disable-docs \
|
|
|
|
--disable-dtrace \
|
2012-01-19 00:46:53 +00:00
|
|
|
--disable-coverage \
|
2010-02-28 12:26:53 +00:00
|
|
|
--disable-sasl
|
|
|
|
|
2012-01-19 00:46:53 +00:00
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-std=gnu99
|
2011-11-20 04:01:49 +00:00
|
|
|
|
2012-08-03 09:15:20 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libevent
|
|
|
|
|
2010-02-28 12:26:53 +00:00
|
|
|
define Package/memcached/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2012-01-19 00:46:53 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/memcached $(1)/usr/bin/
|
2010-02-28 12:26:53 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
2010-02-28 17:19:34 +00:00
|
|
|
$(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
|
2010-02-28 12:26:53 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,memcached))
|