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.

50 lines
1.4 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_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. include $(INCLUDE_DIR)/package.mk
  19. define Package/beanstalkd
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Beanstalk
  23. endef
  24. define Package/beanstalkd/description
  25. Beanstalk is a simple, fast work queue.
  26. endef
  27. define Build/Configure
  28. endef
  29. define Build/Compile
  30. cd $(PKG_BUILD_DIR) && make CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" PREFIX=/usr
  31. endef
  32. define Package/beanstalkd/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/beanstalkd $(1)/usr/bin/beanstalkd
  35. $(INSTALL_DIR) $(1)/etc/init.d
  36. $(INSTALL_BIN) ./files/beanstalkd.init $(1)/etc/init.d/beanstalkd
  37. endef
  38. $(eval $(call BuildPackage,beanstalkd))