Skip to content

Commit

Permalink
Add jethome repository mirror. use via DOWNLOAD_MIRROR = "jethome"
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn authored and github-actions[bot] committed Dec 31, 2024
1 parent 6fcc613 commit ed7b3b3
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 5 deletions.
42 changes: 42 additions & 0 deletions config/jethome.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
-----BEGIN PGP ARMORED FILE-----
Comment: Use "gpg --dearmor" for unpacking

mQGNBF8NjGIBDADzw9+4z+hvonSiEbggG5V5y9LLFI8bDQt3Kci0qfhuH9ahnxpI
qMPE7X7O3d3hn1wropSFnMFE2oK6rMVRTLm8UXGlrA2ivhDiNglttv4WHPMPn3Vb
6gVofSvtrSQREmg7I42ri5ve51pASPRd8auZUU4RlWceCZfUYtSYET6WAfJ+oTck
d+ueWY/Aj/MTe4LMmNkilCIuJV52nkj5LY97lZfhS/GL4Ox0xf7eAc1jQa+q9ArH
yDVfDgSzQJqhPTYZgaQFk/XOcD9jazQs/P92+0ApOPFuXnUyL3+jgymU5PrJhsDE
ZE7eFWfA75MxCRoShu+a38Y5BsCTiUQxC93Ty9wjd3SD+ZyUYfMCgnHSbPOjc6Hq
M6Ao857Gcs+ZzaaXjKHu3Mi32h/IxVPyJx9Y81MpNU8QnABXxF+afJfXtKttKho7
diyLygdoiPAylHbWAMbxKTRmeVexRHyRKfQEh81jzQG8pW/M5jMqiO2vIsYaNs6h
08ljNuWvKhPnx60AEQEAAbQZSmV0SG9tZSA8cmVwb0BqZXRob21lLnJ1PokB1AQT
AQoAPgIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBOFHxWiT2TDKwdLeG9as
cbMNX3NlBQJfDYyvBQkSzANNAAoJENascbMNX3NlS+EL/03e2TmeBmLZwQPG33rr
tYtUaOHE4nisskNiKFMC+QXnEiZCO2A/2bRSO4qjWFTO+tIb84zm2Pw2+PsNAa/J
XfzErvBbcF0mazBId3G7tJQWqDb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FlAA6LSKy
Kx+7DlynWPwvNCVTkwDGi8O5UERYu8Vv0BHFV654pCaCUEtDoGOXIw547ODPcCUO
bkp60DdJe20qev6ltmrLBp+6CqhKuqg2WGQmlMy51/JA7KM82fG+qbMRy2KPX5kI
s/hcIqyyLTg8ZjdXgcLpUEVKpOJhrQO+QBe93n3raVh7++lMBFpvABGa24/3g0lq
L/FrlvZAeaYMhFc7fual14apZ/cmLFCsp2u+3ifWQpnqRM8gZaWeL3JpWBZY8rMW
zCnnOhLzAxOrEaChoJARnafHAofx7F+zYx5CV40u1TM0O3PPjFjhGoM7Be6vyOLt
ajEUPpft1kMg1amtS434d47y8qo3U7x3ps1dywfjd+hacrIPC+KH+7hGGJ/6GylR
5WhOg6p+ubictlit5asgNpIMl9i+eRMwsVsP2n/7Xw4DwSQ8yyJZdtU/hDL7k7rN
GNca1ww8oGIkPSdd1Wezkhg=
=k584
-----END PGP ARMORED FILE-----
13 changes: 8 additions & 5 deletions config/sources/families/jethub.conf
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,14 @@ family_tweaks() {
chroot_sdcard systemctl mask suspend.target
fi

display_alert "Adding JetHome repository and authentication key" "/etc/apt/sources.list.d/jethome.list" "info"
run_host_command_logged cp -pv "${SRC}"/packages/bsp/jethub/jethome.gpg "${SDCARD}/etc/apt/trusted.gpg.d/"

echo "deb http://repo.jethome.ru"$([[ $BETA == yes ]] && echo "/beta")" ${RELEASE} jethome-${RELEASE}" \
>> "${SDCARD}"/etc/apt/sources.list.d/jethome.list
if [[ "$DOWNLOAD_MIRROR" == "jethome" ]]; then
display_alert "JetHome repository and authentication key already added" "family_tweaks" "info"
else
display_alert "Adding JetHome repository and authentication key" "/etc/apt/sources.list.d/jethome.list" "info"
run_host_command_logged cp -pv "${SRC}"/packages/bsp/jethub/jethome.gpg "${SDCARD}/etc/apt/trusted.gpg.d/"
echo "deb http://repo.jethome.ru"$([[ $BETA == yes ]] && echo "/beta")" ${RELEASE} jethome-${RELEASE}" \
>> "${SDCARD}"/etc/apt/sources.list.d/jethome.list
fi
}

family_tweaks_bsp() {
Expand Down
3 changes: 3 additions & 0 deletions lib/functions/rootfs/distro-specific.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ function create_sources_list_and_deploy_repo_key() {
echo "deb ${SIGNED_BY}https://mirrors.tuna.tsinghua.edu.cn/armbian $RELEASE ${components[*]}" > "${basedir}"/etc/apt/sources.list.d/armbian.list
elif [[ $DOWNLOAD_MIRROR == "bfsu" ]]; then
echo "deb ${SIGNED_BY}http://mirrors.bfsu.edu.cn/armbian $RELEASE ${components[*]}" > "${basedir}"/etc/apt/sources.list.d/armbian.list
elif [[ "$DOWNLOAD_MIRROR" == "jethome" ]]; then
echo "deb http://repo.jethome.ru"$([[ $BETA == yes ]] && echo "/beta")" ${RELEASE} jethome-${RELEASE}" > "${basedir}"/etc/apt/sources.list.d/armbian.list
gpg --dearmor < "${SRC}"/config/jethome.key > "${basedir}"/etc/apt/trusted.gpg.d/jethome.gpg
else
echo "deb ${SIGNED_BY}http://$([[ $BETA == yes ]] && echo "beta" || echo "apt").armbian.com $RELEASE ${components[*]}" > "${basedir}"/etc/apt/sources.list.d/armbian.list
fi
Expand Down

0 comments on commit ed7b3b3

Please sign in to comment.