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.

73 lines
2.0 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=rpcd-mod-attendedsysupgrade
  6. PKG_VERSION:=1.1
  7. PKG_RELEASE:=2
  8. PKG_LICENSE:=GPL-2.0
  9. include $(INCLUDE_DIR)/package.mk
  10. define Package/rpcd-mod-attendedsysupgrade
  11. SECTION:=utils
  12. CATEGORY:=Base system
  13. TITLE:=OpenWrt ubus RPC backend server (attendedsysupgrade)
  14. MAINTAINER:=Paul Spooren <paul@spooren.de>
  15. DEPENDS:=rpcd +cgi-io +rpcd-mod-packagelist
  16. endef
  17. define Package/rpcd-mod-attendedsysupgrade/description
  18. Implements a sysupgrade procedure which can be used to invoke sysupgrade via ubus calls
  19. The sysupgrade image must be placed at /tmp/sysupgrade.bin
  20. After a successfull installation the device will perform a restart.
  21. Usage:
  22. ubus call attendedsysupgrade sysupgrade
  23. Example output:
  24. {
  25. "message": "starting sysupgrade"
  26. }
  27. Possible parameters:
  28. keep_settings: bool # preserve /config/
  29. UCI options:
  30. attendedsysupgrade.server.url
  31. URL of compatible upgrade server [1]
  32. attendedsysupgrade.client.upgrade_packages
  33. Client should request image also if no new release but new packages upgrade are available.
  34. attendedsysupgrade.client.advanced_mode
  35. Offer advanced options like editing packages before request and show additional information.
  36. attendedsysupgrade.client.auto_search
  37. Tells the client to automattically search for upgrades
  38. This can be done when opening luci or login in to console - depends on client.
  39. [1]: https://github.com/aparcar/gsoc17-attended-sysupgrade
  40. endef
  41. define Build/Compile
  42. endef
  43. define Build/Configure
  44. endef
  45. define Package/rpcd-mod-attendedsysupgrade/install
  46. $(INSTALL_DIR) $(1)/usr/libexec/rpcd/
  47. $(INSTALL_BIN) ./files/attendedsysupgrade.rpcd $(1)/usr/libexec/rpcd/attendedsysupgrade
  48. $(INSTALL_DIR) $(1)/etc/uci-defaults/
  49. $(INSTALL_BIN) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade
  50. endef
  51. $(eval $(call BuildPackage,rpcd-mod-attendedsysupgrade))