diff options
| author | Daniel Golle <daniel@makrotopia.org> | 2017-11-20 17:49:34 +0100 |
|---|---|---|
| committer | Daniel Golle <daniel@makrotopia.org> | 2017-11-20 17:49:34 +0100 |
| commit | 0230af3b20274597d5258c8f425a6883d1fa3d2a (patch) | |
| tree | e74e82815175d886deb4d1db6b38ad00d78d2260 | |
| parent | feda1e4ba614dac71107a08870506ca28f070374 (diff) | |
attendedsysupgrade-common: add package
This package provides the UCI config shared by both, the CLI and Web
clients used for attended-sysupgrade.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
| -rw-r--r-- | utils/attendedsysupgrade-common/Makefile | 56 | ||||
| -rw-r--r-- | utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults | 17 |
2 files changed, 73 insertions, 0 deletions
diff --git a/utils/attendedsysupgrade-common/Makefile b/utils/attendedsysupgrade-common/Makefile new file mode 100644 index 000000000..d1419ae1a --- /dev/null +++ b/utils/attendedsysupgrade-common/Makefile @@ -0,0 +1,56 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=attendedsysupgrade-common +PKG_VERSION:=0.1 +PKG_RELEASE:=2 +PKG_LICENSE:=GPL-2.0 + +include $(INCLUDE_DIR)/package.mk + +define Package/attendedsysupgrade-common + SECTION:=utils + CATEGORY:=Base system + TITLE:=Common files neede by attendedsysupgrade packages + MAINTAINER:=Paul Spooren <paul@spooren.de> + DEPENDS:=+rpcd +rpcd-mod-rpcsys +endef + +define Package/attendedsysupgrade-common/description + Common needed files for attendedsysupgrade tool + + Manages dependencies and brings settings used by clients. + + UCI options: + + attendedsysupgrade.server.url + URL of compatible upgrade server [1] + + attendedsysupgrade.client.upgrade_packages + Client should request image also if no new release but new packages upgrade are available. + + attendedsysupgrade.client.advanced_mode + Offer advanced options like editing packages before request and show additional information. + + attendedsysupgrade.client.auto_search + Tells the client to automattically search for upgrades + This can be done when opening luci or login in to console - depends on client. + + [1]: https://github.com/aparcar/gsoc17-attended-sysupgrade +endef + +define Build/Compile +endef + +define Build/Configure +endef + +define Package/attendedsysupgrade-common/install + $(INSTALL_DIR) $(1)/etc/uci-defaults/ + $(INSTALL_BIN) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade +endef + +$(eval $(call BuildPackage,attendedsysupgrade-common)) diff --git a/utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults b/utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults new file mode 100644 index 000000000..f7fb1ebde --- /dev/null +++ b/utils/attendedsysupgrade-common/files/attendedsysupgrade.defaults @@ -0,0 +1,17 @@ +#!/bin/sh + +[ -e /etc/config/attendedsysupgrade ] && return 0 + +touch /etc/config/attendedsysupgrade + +uci -q batch <<EOF +set attendedsysupgrade.server=server +set attendedsysupgrade.server.url='https://example.org' + +set attendedsysupgrade.client=client +set attendedsysupgrade.client.upgrade_packages='1' +set attendedsysupgrade.client.auto_search='0' +set attendedsysupgrade.client.advanced_mode='0' + +commit attendedsysupgrade +EOF |
