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.

60 lines
1.6 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:=attendedsysupgrade-common
  6. PKG_VERSION:=0.2
  7. PKG_RELEASE:=1
  8. PKG_LICENSE:=GPL-2.0
  9. include $(INCLUDE_DIR)/package.mk
  10. define Package/attendedsysupgrade-common
  11. SECTION:=utils
  12. CATEGORY:=Base system
  13. TITLE:=Common files neede by attendedsysupgrade packages
  14. MAINTAINER:=Paul Spooren <paul@spooren.de>
  15. DEPENDS:=+rpcd +rpcd-mod-rpcsys
  16. PKGARCH:=all
  17. endef
  18. define Package/attendedsysupgrade-common/description
  19. Common needed files for attendedsysupgrade tool
  20. Manages dependencies and brings settings used by clients.
  21. UCI options:
  22. attendedsysupgrade.server.url
  23. URL of compatible upgrade server [1]
  24. attendedsysupgrade.client.upgrade_packages
  25. Client should request image also if no new release but new packages upgrade are available.
  26. attendedsysupgrade.client.advanced_mode
  27. Offer advanced options like editing packages before request and show additional information.
  28. attendedsysupgrade.client.auto_search
  29. Tells the client to automattically search for upgrades
  30. This can be done when opening luci or login in to console - depends on client.
  31. [1]: https://github.com/aparcar/gsoc17-attended-sysupgrade
  32. endef
  33. define Build/Compile
  34. endef
  35. define Build/Configure
  36. endef
  37. define Package/attendedsysupgrade-common/install
  38. $(INSTALL_DIR) $(1)/etc/uci-defaults/
  39. $(INSTALL_BIN) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade
  40. $(INSTALL_DIR) $(1)/etc/opkg/keys/
  41. $(INSTALL_BIN) ./files/c06d891233ba699 $(1)/etc/opkg/keys/c06d891233ba699
  42. endef
  43. $(eval $(call BuildPackage,attendedsysupgrade-common))