3bedb09bc9e4ba5c304034b63b8db0c64fd82147
[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.xz
15 PKG_MIRROR_HASH:=6d5155ab347b731640495b1f0df6a4a849e84194d2ef0c2ec6af3879ee1aca2c
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-v$(PKG_VERSION)
17 PKG_HASH:=6d5155ab347b731640495b1f0df6a4a849e84194d2ef0c2ec6af3879ee1aca2c
18
19 PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>
20 PKG_LICENSE:=MIT
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_CPE_ID:=cpe:/a:wildbit:beanstalkd
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/beanstalkd
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=Beanstalk
30 endef
31
32 define Package/beanstalkd/description
33 Beanstalk is a simple, fast work queue.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 cd $(PKG_BUILD_DIR) && make CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" PREFIX=/usr
41 endef
42
43 define Package/beanstalkd/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/beanstalkd $(1)/usr/bin/beanstalkd
46
47 $(INSTALL_DIR) $(1)/etc/init.d
48 $(INSTALL_BIN) ./files/beanstalkd.init $(1)/etc/init.d/beanstalkd
49 endef
50
51 $(eval $(call BuildPackage,beanstalkd))