packages/memcached: use new service functions
[openwrt/svn-archive/archive.git] / net / memcached / Makefile
1 #
2 # Copyright (C) 2009-2011 OpenWrt.org
3 # Copyright (C) 2009-2010 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=memcached
12 PKG_VERSION:=1.2.6
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://memcached.googlecode.com/files
17 PKG_MD5SUM:=200d22f7ac2d114f74a6904552e9eb70
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/memcached
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libevent
25 TITLE:=The high-performance, distributed memory object caching system
26 MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
27 URL:=http://memcached.org/
28 endef
29
30 define Package/memcached/description
31 Free and open source, high-performance, distributed memory object caching system
32 endef
33
34 define Package/memcached/conffiles
35 /etc/config/memcached
36 endef
37
38 ifeq ($(CONFIG_BIG_ENDIAN),y)
39 CONFIGURE_VARS += ac_cv_c_endian=big
40 else
41 CONFIGURE_VARS += ac_cv_c_endian=little
42 endif
43
44 CONFIGURE_ARGS += \
45 --disable-docs \
46 --disable-dtrace \
47 --disable-sasl
48
49 define Package/memcached/install
50 $(INSTALL_DIR) $(1)/usr/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/memcached $(1)/usr/bin/
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_CONF) ./files/memcached.config $(1)/etc/config/memcached
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./files/memcached.init $(1)/etc/init.d/memcached
56 endef
57
58 $(eval $(call BuildPackage,memcached))