You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.4 KiB

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