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.

48 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=bluld
  3. PKG_VERSION:=1.1.2
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  6. PKG_SOURCE_URL:=https://github.com/ktgeek/$(PKG_NAME)/releases/download/v$(PKG_VERSION)
  7. PKG_HASH:=94e42999bf701ea01296d614fe298af3bd5b91d3bdab6adda7ecc24af69f8230
  8. PKG_MAINTAINER:=Keith T. Garner <kgarner@kgarner.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/nls.mk
  13. include $(INCLUDE_DIR)/kernel.mk
  14. EXTRA_CXXFLAGS = -I$(LINUX_DIR)/include
  15. EXTRA_CFLAGS = -I$(LINUX_DIR)/include
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/bluld
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Blinkstick User space LED Daemon
  21. DEPENDS:=+kmod-usb-hid +kmod-leds-uleds +libstdcpp +hidapi
  22. endef
  23. define Package/bluld/description
  24. A daemon to expose a Blinkstick to the Linux kernel LED class via /dev/uleds. (Kernel 4.10+ required.)
  25. endef
  26. define Package/bluld/conffiles
  27. /etc/config/bluld
  28. endef
  29. define Package/bluld/install
  30. $(INSTALL_DIR) $(1)/usr/sbin
  31. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bluld $(1)/usr/sbin
  32. $(INSTALL_DIR) $(1)/etc/config
  33. $(INSTALL_CONF) ./files/bluld.conf $(1)/etc/config/bluld
  34. $(INSTALL_DIR) $(1)/etc/init.d
  35. $(INSTALL_BIN) ./files/bluld.init $(1)/etc/init.d/bluld
  36. endef
  37. $(eval $(call BuildPackage,bluld))