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.

49 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=beanstalkd
  3. PKG_VERSION:=1.9
  4. PKG_RELEASE:=1
  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_SOURCE_SUBDIR:=$(PKG_NAME)-v$(PKG_VERSION)
  13. PKG_HASH:=6d5155ab347b731640495b1f0df6a4a849e84194d2ef0c2ec6af3879ee1aca2c
  14. PKG_MAINTAINER:=Philip Prindeville <philipp@redfish-solutions.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/beanstalkd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Beanstalk
  22. endef
  23. define Package/beanstalkd/description
  24. Beanstalk is a simple, fast work queue.
  25. endef
  26. define Build/Configure
  27. endef
  28. define Build/Compile
  29. cd $(PKG_BUILD_DIR) && make CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" PREFIX=/usr
  30. endef
  31. define Package/beanstalkd/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/beanstalkd $(1)/usr/bin/beanstalkd
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) ./files/beanstalkd.init $(1)/etc/init.d/beanstalkd
  36. endef
  37. $(eval $(call BuildPackage,beanstalkd))