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.

47 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=bluld
  3. PKG_VERSION:=1.1.1
  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:=995474bca662cfd8a693a3ab48bdddb2e09c258183a9c29aeddfa341a5082d0e
  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)/kernel.mk
  13. EXTRA_CXXFLAGS = -I$(LINUX_DIR)/include
  14. EXTRA_CFLAGS = -I$(LINUX_DIR)/include
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/bluld
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. TITLE:=Blinkstick User space LED Daemon
  20. DEPENDS:=+kmod-usb-hid +kmod-leds-uleds +libstdcpp +hidapi
  21. endef
  22. define Package/bluld/description
  23. A daemon to expose a Blinkstick to the Linux kernel LED class via /dev/uleds. (Kernel 4.10+ required.)
  24. endef
  25. define Package/bluld/conffiles
  26. /etc/config/bluld
  27. endef
  28. define Package/bluld/install
  29. $(INSTALL_DIR) $(1)/usr/sbin
  30. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bluld $(1)/usr/sbin
  31. $(INSTALL_DIR) $(1)/etc/config
  32. $(INSTALL_CONF) ./files/bluld.conf $(1)/etc/config/bluld
  33. $(INSTALL_DIR) $(1)/etc/init.d
  34. $(INSTALL_BIN) ./files/bluld.init $(1)/etc/init.d/bluld
  35. endef
  36. $(eval $(call BuildPackage,bluld))