aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-03-20 13:48:27 +0100
committerKarel Kočí <karel.koci@nic.cz>2017-03-20 13:48:27 +0100
commit67fb2bf06b08e987f5f6a4c644b08702f5ea95b9 (patch)
treefdfdee65da71b99edce99d551c15693954c643ab
parentee5d5fc0c123931512a0340dafe31205febd2cc1 (diff)
downloadturris-myrepo-67fb2bf06b08e987f5f6a4c644b08702f5ea95b9.tar.gz
turris-myrepo-67fb2bf06b08e987f5f6a4c644b08702f5ea95b9.tar.bz2
turris-myrepo-67fb2bf06b08e987f5f6a4c644b08702f5ea95b9.zip
Fix turris target
-rwxr-xr-xbuild_repo.sh10
-rw-r--r--turris.lua7
2 files changed, 12 insertions, 5 deletions
diff --git a/build_repo.sh b/build_repo.sh
index 2dcc79f..ddb6744 100755
--- a/build_repo.sh
+++ b/build_repo.sh
@@ -62,17 +62,17 @@ fi
deploy() {
echo -e "\e[1;34mSign and deploy $1\e[0m"
- SEC=$PWD/myrepo-cert/files/key.sec
+ SEC=../myrepo-cert/files/key.sec
pushd .$1-sdk
- staging_dir/host/bin/usign -S -s $SEC -m bin/mvebu-musl/packages/base/Packages
- scp bin/mvebu-musl/packages/base/* freebsd@cynerd.cz:/usr/local/www/data/myrepo/$1/
+ staging_dir/host/bin/usign -S -s $SEC -m bin/$2/packages/base/Packages
+ scp bin/$2/packages/base/* freebsd@cynerd.cz:/usr/local/www/data/myrepo/$1/
popd
scp $1.lua freebsd@cynerd.cz:/usr/local/www/data/myrepo/$1.lua
}
if [ "$BOARD" = "omnia" ] || [ "$BOARD" = "all" ]; then
- deploy omnia
+ deploy omnia mvebu-musl
fi
if [ "$BOARD" = "turris" ] || [ "$BOARD" = "all" ]; then
- deploy turris
+ deploy turris mpc85xx
fi
diff --git a/turris.lua b/turris.lua
new file mode 100644
index 0000000..903cab7
--- /dev/null
+++ b/turris.lua
@@ -0,0 +1,7 @@
+-- This is myrepo omnia configuration
+INFO("Using myrepo")
+Repository "myrepo" "http://cynerd.cz/myrepo/turris/" {
+ priority = 50, pubkey = "file:///etc/updater/keys/myrepo.pub"
+}
+
+Install "myrepo-cert" {critical=true}