aboutsummaryrefslogtreecommitdiff
path: root/utils/attendedsysupgrade-common/Makefile
blob: 766e8b0b9dc4ed664a7b29e75027abdb4ce0fadd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: GPL-2.0

include $(TOPDIR)/rules.mk

PKG_NAME:=attendedsysupgrade-common
PKG_VERSION:=$(COMMITCOUNT)
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 <mail@aparcar.org>
  DEPENDS:=+rpcd +rpcd-mod-rpcsys
  PKGARCH:=all
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

	[1]: https://github.com/aparcar/asu
endef

define Build/Compile
endef

define Build/Configure
endef

define Package/attendedsysupgrade-common/install
	$(INSTALL_DIR) $(1)/etc/uci-defaults/
	$(INSTALL_DATA) ./files/attendedsysupgrade.defaults $(1)/etc/uci-defaults/attendedsysupgrade

	$(INSTALL_DIR) $(1)/etc/opkg/keys/
	$(INSTALL_DATA) ./files/8a11255d14aef6c8 $(1)/etc/opkg/keys/8a11255d14aef6c8
endef

$(eval $(call BuildPackage,attendedsysupgrade-common))