Merge pull request #4853 from StevenHessing/noddos
[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
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/beanstalkd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Beanstalk
29 endef
30
31 define Package/beanstalkd/description
32 Beanstalk is a simple, fast work queue.
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 cd $(PKG_BUILD_DIR) && make CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" PREFIX=/usr
40 endef
41
42 define Package/beanstalkd/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/beanstalkd $(1)/usr/bin/beanstalkd
45
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/beanstalkd.init $(1)/etc/init.d/beanstalkd
48 endef
49
50 $(eval $(call BuildPackage,beanstalkd))