beanstalkd: add package
[feed/packages.git] / net / beanstalkd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=beanstalkd
4 PKG_VERSION:=1.9
5 PKG_RELEASE:=1
6
7 # for now, build from latest commit since releases are infrequent and
8 # useful fixes trickle in...
9 PKG_SOURCE_URL:=https://github.com/kr/beanstalkd.git
10 PKG_SOURCE_VERSION:=b7b4a6a14b7e8d096dc8cbc255b23be17a228cbb
11
12 PKG_SOURCE_PROTO:=git
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-v$(PKG_VERSION)
16
17 PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>
18 PKG_LICENSE:=MIT
19 PKG_LICENSE_FILES:=LICENSE
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/beanstalkd
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=Beanstalk
27 endef
28
29 define Package/beanstalkd/description
30 Beanstalk is a simple, fast work queue.
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 cd $(PKG_BUILD_DIR) && make CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" PREFIX=/usr
38 endef
39
40 define Package/beanstalkd/install
41 $(INSTALL_DIR) $(1)/usr/bin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/beanstalkd $(1)/usr/bin/beanstalkd
43
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/beanstalkd.init $(1)/etc/init.d/beanstalkd
46 endef
47
48 $(eval $(call BuildPackage,beanstalkd))