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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# -*-makefile-*-
#
# Copyright (C) 2015 by Enrico Joerns <e.joerns@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_RAUC) += rauc
#
# Paths and names
#
RAUC_VERSION := 1.1
RAUC_MD5 := c81644f96b14304b6bb9f2ac2de9d4fd
RAUC := rauc-$(RAUC_VERSION)
RAUC_SUFFIX := tar.xz
RAUC_URL := https://github.com/rauc/rauc/releases/download/v$(RAUC_VERSION)/$(RAUC).$(RAUC_SUFFIX)
RAUC_SOURCE := $(SRCDIR)/$(RAUC).$(RAUC_SUFFIX)
RAUC_DIR := $(BUILDDIR)/$(RAUC)
RAUC_LICENSE := LGPL-2.1-only
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#RAUC_CONF_ENV := $(CROSS_ENV)
#
# autoconf
#
RAUC_CONF_TOOL := autoconf
RAUC_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--enable-debug=info \
$(GLOBAL_LARGE_FILE_OPTION) \
--disable-code-coverage \
--disable-valgrind \
--$(call ptx/endis,PTXCONF_RAUC_SERVICE)-service \
--$(call ptx/endis,PTXCONF_RAUC_NETWORK)-network \
--$(call ptx/endis,PTXCONF_RAUC_JSON)-json \
--with-systemdunitdir=/usr/lib/systemd/system \
--with-dbuspolicydir=/usr/share/dbus-1/system.d \
--with-dbussystemservicedir=/usr/share/dbus-1/system-services
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/rauc.targetinstall:
@$(call targetinfo)
@$(call install_init, rauc)
@$(call install_fixup, rauc,PRIORITY,optional)
@$(call install_fixup, rauc,SECTION,base)
@$(call install_fixup, rauc,AUTHOR,"Enrico Joerns <e.joerns@pengutronix.de>")
@$(call install_fixup, rauc,DESCRIPTION,missing)
@$(call install_copy, rauc, 0, 0, 0755, -, /usr/bin/rauc)
ifdef PTXCONF_RAUC_CONFIGURATION
@$(call install_alternative, rauc, 0, 0, 0644, /etc/rauc/system.conf)
@$(call install_replace, rauc, /etc/rauc/system.conf, \
@RAUC_BUNDLE_COMPATIBLE@, \
"$(call remove_quotes,$(PTXCONF_RAUC_COMPATIBLE))")
@$(call install_alternative, rauc, 0, 0, 0644, /etc/rauc/ca.cert.pem)
endif
ifdef PTXCONF_RAUC_SERVICE
@$(call install_copy, rauc, 0, 0, 0644, -, \
/usr/share/dbus-1/system-services/de.pengutronix.rauc.service)
@$(call install_copy, rauc, 0, 0, 0644, -, \
/usr/share/dbus-1/system.d/de.pengutronix.rauc.conf)
endif
ifdef PTXCONF_INITMETHOD_SYSTEMD
@$(call install_alternative, rauc, 0, 0, 0644, \
/usr/lib/systemd/system/rauc.service)
@$(call install_alternative, rauc, 0, 0, 0644, \
/usr/lib/systemd/system/rauc-mark-good.service)
@$(call install_link, rauc, ../rauc-mark-good.service, \
/usr/lib/systemd/system/multi-user.target.wants/rauc-mark-good.service)
else
@$(call install_copy, rauc, 0, 0, 0755, -, \
/usr/libexec/rauc-service.sh)
endif
@$(call install_finish, rauc)
@$(call touch)
# vim: syntax=make
|