-
Notifications
You must be signed in to change notification settings - Fork 1
/
repository.lua.m4
32 lines (27 loc) · 1.14 KB
/
repository.lua.m4
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
include(utils.m4)dnl
local feeds = { "base", "core" eesyscmd(`awk "/^src-git/{printf \", \\\"%s\\\"\", \$'`2}" '_FEEDS_)}
local rroot
if features.relative_uri then
rroot = ".."
else
rroot = (repo_base_uri or "https://repo.turris.cz/hbs") .. "/" .. board
end
local extra = {}
if features.fatal_missing_pkg_hash then
extra["pkg_hash_required"] = true
end
for _, feed in ipairs(feeds) do
-- Standard Turris OS package repository
Repository(feed, rroot .. "/packages/" .. feed, extra)
dnl Note: to test just package lists you can replace preceding line with:
dnl Repository(feed, "https://repo.turris.cz/hbs/" .. board .. "/packages/" .. feed, {
dnl pubkey = {
dnl -- Turris release key
dnl "data:base64,dW50cnVzdGVkIGNvbW1lbnQ6IFR1cnJpcyByZWxlYXNlIGtleSBnZW4gMQpSV1Rjc2c1VFhHTGRXOWdObEdITi9vZmRzTTBLQWZRSVJCbzVPVlpJWWxWVGZ5STZGR1ZFT0svZQo=",
dnl -- Turris development key
dnl "data:base64,dW50cnVzdGVkIGNvbW1lbnQ6IFR1cnJpcyBPUyBkZXZlbCBrZXkKUldTMEZBMU51bjdKRHQwTDhTalJzRFJKR0R2VUNkRGRmczIxZmVpVytxcEdITk1oVlo5MzBoa3kK",
dnl }
dnl }, extra)
end
INFO("Target Turris OS: _TURRIS_OS_VERSION_")
DBG("Current Turris OS: " .. tostring(os_release.VERSION))