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.

58 lines
1.5 KiB

  1. # SPDX-License-Identifier: GPL-2.0
  2. include $(TOPDIR)/rules.mk
  3. PKG_NAME:=attendedsysupgrade-common
  4. PKG_VERSION:=$(COMMITCOUNT)
  5. PKG_LICENSE:=GPL-2.0
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/attendedsysupgrade-common
  8. SECTION:=utils
  9. CATEGORY:=Base system
  10. TITLE:=Common files neede by attendedsysupgrade packages
  11. MAINTAINER:=Paul Spooren <mail@aparcar.org>
  12. DEPENDS:=+rpcd +rpcd-mod-rpcsys
  13. PKGARCH:=all
  14. endef
  15. define Package/attendedsysupgrade-common/description
  16. Common needed files for attendedsysupgrade tool
  17. Manages dependencies and brings settings used by clients.
  18. UCI options:
  19. * attendedsysupgrade.server.url
  20. URL of compatible upgrade server [1]
  21. * attendedsysupgrade.client.upgrade_packages
  22. Client should request image also if no new release but new packages
  23. upgrade are available.
  24. * attendedsysupgrade.client.advanced_mode
  25. Offer advanced options like editing packages before request and show
  26. additional information.
  27. * attendedsysupgrade.client.auto_search
  28. Tells the client to automattically search for upgrades
  29. [1]: https://github.com/aparcar/asu
  30. endef
  31. define Build/Compile
  32. endef
  33. define Build/Configure
  34. endef
  35. define Package/attendedsysupgrade-common/install
  36. $(INSTALL_DIR) $(1)/etc/uci-defaults/
  37. $(INSTALL_BIN) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade
  38. $(INSTALL_DIR) $(1)/etc/opkg/keys/
  39. $(INSTALL_BIN) ./files/86241a707a30cb7f $(1)/etc/opkg/keys/86241a707a30cb7f
  40. endef
  41. $(eval $(call BuildPackage,attendedsysupgrade-common))