mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
commit
8aa6aad424
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="mmc-utils"
|
||||
PKG_VERSION="123fd8b2ac3933be1319486fb1f32236a4a86a7c"
|
||||
PKG_SHA256="d718338740cc75c8b0b54647a0522baff1824a31d4f9ee7d0d022405d07284f6"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_SHA256="39e6a89e06b53f99816f110af6743d1adc82220b26c51b0c3fd0a11ccf4206c2"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://www.kernel.org/doc/html/latest/driver-api/mmc/mmc-tools.html"
|
||||
PKG_URL="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${PKG_VERSION}.tar.gz"
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="smartmontools"
|
||||
PKG_VERSION="7.4"
|
||||
PKG_SHA256="e9a61f641ff96ca95319edfb17948cd297d0cd3342736b2c49c99d4716fb993d"
|
||||
PKG_VERSION="7.5"
|
||||
PKG_SHA256="690b83ca331378da9ea0d9d61008c4b22dde391387b9bbad7f29387f2595f76e"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://www.smartmontools.org"
|
||||
PKG_URL="https://downloads.sourceforge.net/sourceforge/smartmontools/smartmontools-${PKG_VERSION}.tar.gz"
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="hwdata"
|
||||
PKG_VERSION="0.380"
|
||||
PKG_SHA256="e5ca061d9e0b9b177bed8d16f94b4cd54ce9eebd1ec115f7cf2174d3a6052049"
|
||||
PKG_VERSION="0.397"
|
||||
PKG_SHA256="09eee39e73a63ab27af651ab6afdd13d6e5c3485872f2cd406b35e4d80ffdb0b"
|
||||
PKG_LICENSE="GPL-2.0"
|
||||
PKG_SITE="https://github.com/vcrhonek/hwdata"
|
||||
PKG_URL="https://github.com/vcrhonek/hwdata/archive/refs/tags/v${PKG_VERSION}.tar.gz"
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="nv-codec-headers"
|
||||
PKG_VERSION="12.1.14.0"
|
||||
PKG_SHA256="2fefaa227d2a3b4170797796425a59d1dd2ed5fd231db9b4244468ba327acd0b"
|
||||
PKG_VERSION="13.0.19.0"
|
||||
PKG_SHA256="86d15d1a7c0ac73a0eafdfc57bebfeba7da8264595bf531cf4d8db1c22940116"
|
||||
PKG_LICENSE="MIT"
|
||||
PKG_SITE="https://github.com/FFmpeg/nv-codec-headers"
|
||||
PKG_URL="https://github.com/FFmpeg/nv-codec-headers/archive/n${PKG_VERSION}.tar.gz"
|
||||
|
@ -3,8 +3,8 @@
|
||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="openvpn"
|
||||
PKG_VERSION="2.6.10"
|
||||
PKG_SHA256="1993bbb7b9edb430626eaa24573f881fd3df642f427fcb824b1aed1fca1bcc9b"
|
||||
PKG_VERSION="2.6.14"
|
||||
PKG_SHA256="9eb6a6618352f9e7b771a9d38ae1631b5edfeed6d40233e243e602ddf2195e7a"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://openvpn.net"
|
||||
PKG_URL="https://swupdate.openvpn.org/community/releases/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
||||
@ -13,12 +13,10 @@ PKG_LONGDESC="A full featured SSL VPN software solution that integrates OpenVPN
|
||||
PKG_TOOLCHAIN="configure"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="ac_cv_have_decl_TUNSETPERSIST=no \
|
||||
--disable-server \
|
||||
--disable-plugins \
|
||||
--enable-iproute2 IPROUTE=/sbin/ip \
|
||||
--enable-management \
|
||||
--enable-fragment \
|
||||
--disable-multihome \
|
||||
--disable-port-share \
|
||||
--disable-debug"
|
||||
|
||||
|
@ -3,14 +3,14 @@
|
||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="e2fsprogs"
|
||||
PKG_VERSION="1.47.0"
|
||||
PKG_SHA256="144af53f2bbd921cef6f8bea88bb9faddca865da3fbc657cc9b4d2001097d5db"
|
||||
PKG_VERSION="1.47.3"
|
||||
PKG_SHA256="857e6ef800feaa2bb4578fbc810214be5d3c88b072ea53c5384733a965737329"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://e2fsprogs.sourceforge.net/"
|
||||
PKG_URL="https://www.kernel.org/pub/linux/kernel/people/tytso/${PKG_NAME}/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_HOST="toolchain:host"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_DEPENDS_INIT="toolchain"
|
||||
PKG_DEPENDS_HOST="autotools:host"
|
||||
PKG_DEPENDS_TARGET="autotools:host gcc:host"
|
||||
PKG_DEPENDS_INIT="autotools:host gcc:host"
|
||||
PKG_LONGDESC="The filesystem utilities for the EXT2 filesystem, including e2fsck, mke2fs, dumpe2fs, fsck, and others."
|
||||
PKG_BUILD_FLAGS="-parallel"
|
||||
|
||||
@ -84,6 +84,7 @@ post_makeinstall_target() {
|
||||
rm -rf ${INSTALL}/usr/sbin/blkid
|
||||
rm -rf ${INSTALL}/usr/sbin/dumpe2fs
|
||||
rm -rf ${INSTALL}/usr/sbin/e2freefrag
|
||||
rm -rf ${INSTALL}/usr/sbin/e2mmpstatus
|
||||
rm -rf ${INSTALL}/usr/sbin/e2undo
|
||||
rm -rf ${INSTALL}/usr/sbin/e4defrag
|
||||
rm -rf ${INSTALL}/usr/sbin/filefrag
|
||||
|
@ -2,8 +2,8 @@
|
||||
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="exfatprogs"
|
||||
PKG_VERSION="1.2.2"
|
||||
PKG_SHA256="61d517231f8ec177eeb5955fd6edb89748d3f88ba412c48bcb32741b430e359a"
|
||||
PKG_VERSION="1.2.9"
|
||||
PKG_SHA256="d9a42197c6ff9e6a8e923789413008e317415cf7a4ab85c486c5ffcaf49ca175"
|
||||
PKG_LICENSE="GPLv2"
|
||||
PKG_SITE="https://github.com/exfatprogs/exfatprogs"
|
||||
PKG_URL="https://github.com/exfatprogs/exfatprogs/releases/download/${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||||
|
@ -3,10 +3,16 @@
|
||||
|
||||
PKG_NAME="amlogic-boot-fip"
|
||||
PKG_LICENSE="nonfree"
|
||||
PKG_VERSION="c4bf0e3b1ab1246c3176d6c3e420a5e1cdf40c4e"
|
||||
PKG_SHA256="77ba6437f105ae8feab25bfe8536e6741dd184975dc082d8ff73284d2037027d"
|
||||
PKG_VERSION="16d007ff61f8ba84be7cb47280bb2911eaa87aba"
|
||||
PKG_SHA256="c5910f7913bc1d634320952daf0afed62e383c4e2eafb71c952bc221cb6b150f"
|
||||
PKG_SITE="https://github.com/LibreELEC/amlogic-boot-fip"
|
||||
PKG_URL="https://github.com/LibreELEC/amlogic-boot-fip/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_LONGDESC="Firmware Image Package (FIP) sources used to sign Amlogic u-boot binaries in LibreELEC images"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
PKG_STAMP="${UBOOT_SYSTEM}"
|
||||
|
||||
post_unpack() {
|
||||
# rename dirs for alta/solitude
|
||||
mv ${PKG_BUILD}/aml-a311d-cc ${PKG_BUILD}/alta
|
||||
mv ${PKG_BUILD}/aml-s905d3-cc ${PKG_BUILD}/solitude
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ github_api_token=""
|
||||
github_api="no"
|
||||
|
||||
test_github_api() {
|
||||
# check for github user and token present at ~/.libreelec/options to activate github api checks
|
||||
# check for github user and token present at ~/.libreelec/options to activate github api checks
|
||||
if [[ -n "${github_token}" || -n "${github_user}" ]]; then
|
||||
github_api_token="-u ${github_user}:${github_token}"
|
||||
# check if token works
|
||||
@ -27,9 +27,11 @@ test_github_api() {
|
||||
echo "Github api usage activated"
|
||||
github_api="yes"
|
||||
else
|
||||
msg=$(curl -m 5 -sL -I "${github_api_token}" https://api.github.com/user || true)
|
||||
message="\n your Github token is not working\n"
|
||||
message+=" github_token=${github_token}\n"
|
||||
message+=" github_user=${github_user}\n"
|
||||
message+=" ${msg}\n"
|
||||
die "${message}"
|
||||
fi
|
||||
else
|
||||
@ -48,13 +50,25 @@ check_for_update() {
|
||||
|
||||
# source variables from package.mk
|
||||
PKG_NAME="$(grep -oP -m 1 '(?<=PKG_NAME=\").*(?=\")' ${1} || true)"
|
||||
PKG_VERSION="$(grep -oP -m 1 '(?<=PKG_VERSION=\").*(?=\")' ${1} || true)"
|
||||
eval PKG_URL="$(grep -oP -m 1 '(?<=PKG_URL=\").*(?=\")' ${1} || true)"
|
||||
case ${PKG_NAME} in
|
||||
jellyfin)
|
||||
PKG_VERSION="$(grep -oP -m 1 '(?<=PKG_VERSION_NUMBER=\").*(?=\")' ${1} || true)"
|
||||
;;
|
||||
*)
|
||||
PKG_VERSION="$(grep -oP -m 1 '(?<=PKG_VERSION=\").*(?=\")' ${1} || true)"
|
||||
;;
|
||||
esac
|
||||
|
||||
# check if version and url are empty or self hosted by us and ignore those packages
|
||||
if [ -z "${PKG_VERSION}" ] || [[ ${PKG_VERSION} == '$(get_pkg_version '* ]] || [ -z "${PKG_URL}" ] || [[ "${PKG_URL}" == "$DISTRO_SRC"* ]]; then
|
||||
PACKAGES_IGNORED+="${PKG_NAME} "
|
||||
return
|
||||
# check the version of some packages even if they do not have a PKG_URL
|
||||
# the PKG_WITHOUT_URLS is space separated
|
||||
PKGS_WITHOUT_URLS="jellyfin"
|
||||
if [[ ! " ${PKG_NAME} " == *" ${PKGS_WITHOUT_URLS} "* ]]; then
|
||||
# check if version and url are empty or self hosted by us and ignore those packages
|
||||
if [ -z "${PKG_VERSION}" ] || [[ ${PKG_VERSION} == '$(get_pkg_version '* ]] || [ -z "${PKG_URL}" ] || [[ "${PKG_URL}" == "$DISTRO_SRC"* ]]; then
|
||||
PACKAGES_IGNORED+="${PKG_NAME} "
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
upstream_version=""
|
||||
@ -91,8 +105,8 @@ check_for_update() {
|
||||
github_repos=$(echo "${PKG_URL}" | grep -oP '(?<=https:\/\/github.com\/)?[0-9A-Za-z._-]+\/[0-9A-Za-z._-]+(?=/archive|/tags|/releases)')
|
||||
le_master_version_date="Commit date: $(curl -m 5 -sL ${github_api_token} https://api.github.com/repos/${github_repos}/git/commits/${PKG_VERSION} | jq -r '.committer.date')"
|
||||
upstream_default_branch=$(curl -m 5 -sL "${github_api_token}" "https://api.github.com/repos/${github_repos}" | jq -r '.default_branch')
|
||||
upstream_latest_commit=$(curl -m 5 -sL "${github_api_token}" "https://api.github.com/repos/${github_repos}/git/refs/heads/${upstream_default_branch}" | jq -r '.object.url')
|
||||
upstream_latest_commit_date=$(curl -m 5 -sL "${github_api_token}" "${upstream_latest_commit}" | jq -r '.committer.date')
|
||||
upstream_latest_commit=$(curl -m 5 -sL "${github_api_token}" "https://api.github.com/repos/${github_repos}/git/refs/heads/${upstream_default_branch}" | jq -r '.object.url' || true)
|
||||
upstream_latest_commit_date=$(curl -m 5 -sL "${github_api_token}" "${upstream_latest_commit}" | jq -r '.committer.date' || true)
|
||||
GH_API_TAG=$(curl -m 5 -sL "${github_api_token}" "https://api.github.com/repos/${github_repos}/tags")
|
||||
upstream_latest_tag=$(echo "${GH_API_TAG}" | jq -r '.[0].name')
|
||||
upstream_latest_tag_url=$(echo "${GH_API_TAG}" | jq -r '.[0].commit.url')
|
||||
@ -125,15 +139,16 @@ check_for_update() {
|
||||
|
||||
# print version output line
|
||||
if [ ! -z "${API}" ]; then
|
||||
printf "%s %s %s" "${PKG_NAME}" "${PKG_VERSION}" "${upstream_version}"; printf '\n'
|
||||
printf "%s %s %s" "${PKG_NAME}" "${PKG_VERSION}" "${upstream_version}"
|
||||
printf '\n'
|
||||
elif [ "${PKG_VERSION}" != "${upstream_version}" ]; then
|
||||
printf "%-35s | %-40s | %-20s" "${PKG_NAME}" "${PKG_VERSION}" "${upstream_version}"; printf '\n'
|
||||
printf "%-35s | %-40s | %-20s" "${PKG_NAME}" "${PKG_VERSION}" "${upstream_version}"
|
||||
printf '\n'
|
||||
else
|
||||
PACKAGES_CURRENT+="${PKG_NAME} "
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# create list of packages
|
||||
if [ -n "${1}" ]; then
|
||||
PACKAGE_LIST="$(find packages/ -type d -name ${1})/package.mk"
|
||||
@ -141,13 +156,14 @@ if [ -n "${1}" ]; then
|
||||
die "Package not found: ${1}"
|
||||
fi
|
||||
else
|
||||
PACKAGE_LIST="$(find packages/ -type f -name package.mk \
|
||||
! -path "packages/addons/addon-depends/adafruit-libraries-depends/*" \
|
||||
! -path "packages/emulation/*" \
|
||||
! -path "packages/linux/*" \
|
||||
! -path "packages/mediacenter/*" \
|
||||
| awk '{FS="/" ; $0=$0 ; print $(NF-1)"|"$0}' | sort | cut -d"|" -f2 \
|
||||
)"
|
||||
PACKAGE_LIST="$(
|
||||
find packages/ -type f -name package.mk \
|
||||
! -path "packages/addons/addon-depends/adafruit-libraries-depends/*" \
|
||||
! -path "packages/emulation/*" \
|
||||
! -path "packages/linux/*" \
|
||||
! -path "packages/mediacenter/*" |
|
||||
awk '{FS="/" ; $0=$0 ; print $(NF-1)"|"$0}' | sort | cut -d"|" -f2
|
||||
)"
|
||||
fi
|
||||
|
||||
if [ -z "${API}" ]; then
|
||||
@ -156,7 +172,8 @@ if [ -z "${API}" ]; then
|
||||
|
||||
# output
|
||||
echo -e "\nUpdates found:\n"
|
||||
printf "%-35s | %-40s | %-20s" "Package" "LE git master" "upstream location"; printf '\n'
|
||||
printf "%-35s | %-40s | %-20s" "Package" "LE git master" "upstream location"
|
||||
printf '\n'
|
||||
echo -e ''$_{1..140}'\b-'
|
||||
|
||||
for check_version in ${PACKAGE_LIST}; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user