diff --git a/lib/exec_in_chroot.sh b/lib/exec_in_chroot.sh index fcfd43d..e6e7e09 100755 --- a/lib/exec_in_chroot.sh +++ b/lib/exec_in_chroot.sh @@ -29,11 +29,16 @@ configure_depot_nodejs() { NODE_VERSION=16 [ ! "$1" == "" ] && NODE_VERSION=$1 XNODE_VERSION=${NODE_VERSION}.x - grep -q ${XNODE_VERSION} /etc/apt/sources.list.d/nodesource.list - if [ $? -ne 0 ] - then - wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash - fi + if [ -e /etc/apt/sources.list.d/nodesource.list ] + then + grep -q ${XNODE_VERSION} /etc/apt/sources.list.d/nodesource.list + if [ $? -ne 0 ] + then + wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash + fi + else + wget -qO - https://deb.nodesource.com/setup_${XNODE_VERSION} | bash + fi echo -e "Package: nodejs\\nPin: version ${NODE_VERSION}.*\\nPin-Priority: 1000" > /etc/apt/preferences.d/nodejs } @@ -41,11 +46,14 @@ install_go() { GO_VERSION=1.20.5 [ ! "$1" == "" ] && GO_VERSION=$1 PATH=$PATH:/usr/local/go/bin - if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ; - then - rm -rvf /usr/local/go/ - wget -qO - https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xz - fi + if [ "$(whereis go | cut -d ":" -f 2)" == "" ] + then + if [ ! "$(go version)" == "go version go${GO_VERSION} linux/amd64" ] ; + then + rm -rvf /usr/local/go + wget -qO - https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xz + fi + fi } install_rust() { @@ -57,11 +65,6 @@ install_clojure() { wget -qO - https://download.clojure.org/install/linux-install-1.11.1.1155.sh | bash } - -minimum_package() { - base_package_upgrade -} - default_prebuild(){ get_git_source } diff --git a/ressources/adguardhome/debmaker b/ressources/adguardhome/debmaker index 686275c..2ee09fe 100755 --- a/ressources/adguardhome/debmaker +++ b/ressources/adguardhome/debmaker @@ -1,12 +1,12 @@ #!/bin/bash -VERSION=0.108.0-b.35 +VERSION=0.108.0-b.39 APP=adguardhome DEPOT=https://github.com/AdguardTeam/AdGuardHome.git GIT_VERSION=v${VERSION} GIT_VERSION=v0.108.0-b.30 DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=4 PACKAGE_DEPENDENCY="build-essential nodejs yarn" diff --git a/ressources/babybuddy/debmaker b/ressources/babybuddy/debmaker index a37d89c..267210d 100755 --- a/ressources/babybuddy/debmaker +++ b/ressources/babybuddy/debmaker @@ -5,7 +5,7 @@ APP=babybuddy DEPOT=https://github.com/babybuddy/babybuddy.git GIT_VERSION=v${VERSION} DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=6 PACKAGE_DEPENDENCY="" diff --git a/ressources/bitwarden-desktop/debmaker b/ressources/bitwarden-desktop/debmaker index b16480c..9c10acd 100755 --- a/ressources/bitwarden-desktop/debmaker +++ b/ressources/bitwarden-desktop/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2023.5.0 +VERSION=2023.5.1 APP=bitwarden-desktop DEPOT=https://github.com/bitwarden/clients.git GIT_VERSION=desktop-v${VERSION} diff --git a/ressources/element-web/debmaker b/ressources/element-web/debmaker index e24663f..52f3fe0 100755 --- a/ressources/element-web/debmaker +++ b/ressources/element-web/debmaker @@ -1,11 +1,11 @@ #!/bin/bash -VERSION=1.11.33 +VERSION=1.11.35 APP=element-web DEPOT=https://github.com/vector-im/element-web.git GIT_VERSION=v${VERSION} DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=5 PACKAGE_DEPENDENCY="yarn nodejs" diff --git a/ressources/forgejo/debmaker b/ressources/forgejo/debmaker index 96af513..8163986 100755 --- a/ressources/forgejo/debmaker +++ b/ressources/forgejo/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.19.3-0 +VERSION=1.19.4-0 APP=forgejo DEPOT=https://codeberg.org/forgejo/forgejo GIT_VERSION=v${VERSION} diff --git a/ressources/glpi/debmaker b/ressources/glpi/debmaker index 7d12c9f..c0d73ac 100755 --- a/ressources/glpi/debmaker +++ b/ressources/glpi/debmaker @@ -1,13 +1,13 @@ #!/bin/bash -VERSION=10.0.7 +VERSION=10.0.8 APP=glpi DEPOT=https://github.com/glpi-project/glpi.git GIT_VERSION=${VERSION} DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=4 -PACKAGE_DEPENDENCY="patch composer php-json php-xml php-curl php-gd php-intl php-ldap php-zip php-mysql gettext nodejs" +PACKAGE_DEPENDENCY="patch composer php-json php-xml php-curl php-gd php-intl php-ldap php-zip php-mysql gettext nodejs unzip" main() { base_package_upgrade @@ -29,7 +29,7 @@ makedeb(){ mkdir -p ${PATH_DEB}/usr/share/doc/glpi/ mkdir -p ${PATH_DEB}/var/lib/glpi/ - mkdir -p ${PATH_DEB}/etc/ + mkdir -p ${PATH_DEB}/etc/cron.d tar -zxvf /tmp/${APP}-${VERSION}.tgz -C ${PATH_DEB}/usr/share/ @@ -47,7 +47,7 @@ makedeb(){ mv ${PATH_DEB}/downstream.php ${PATH_DEB}/usr/share/glpi/inc/ mv ${PATH_DEB}/local_define.php ${PATH_DEB}/etc/glpi mv ${PATH_DEB}/apache2-glpi.conf ${PATH_DEB}/usr/share/doc/glpi/ - mv ${PATH_DEB}glpi.cron ${PATH_DEB}/etc/cron.d/glpi + mv ${PATH_DEB}/glpi.cron ${PATH_DEB}/etc/cron.d/glpi sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist diff --git a/ressources/gotify/debmaker b/ressources/gotify/debmaker index ed993a6..5dbead4 100755 --- a/ressources/gotify/debmaker +++ b/ressources/gotify/debmaker @@ -1,27 +1,23 @@ #!/bin/bash APP=gotify -VERSION=2.2.4 +VERSION=2.2.5 GIT_VERSION=v$VERSION DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=6 DEPOT=https://github.com/gotify/server.git PACKAGE_DEPENDENCY="build-essential nodejs yarn" main(){ base_package_upgrade - envinit - get_git_source - build - makedeb -} - -envinit() { configure_depot_yarn configure_depot_nodejs install_package_dependency install_go + get_git_source + build + makedeb } build() { diff --git a/ressources/joplin-desktop/debmaker b/ressources/joplin-desktop/debmaker index ba02689..d8cafb7 100755 --- a/ressources/joplin-desktop/debmaker +++ b/ressources/joplin-desktop/debmaker @@ -1,13 +1,13 @@ #!/bin/bash -VERSION=2.11.9 +VERSION=2.11.11 APP=joplin-desktop GIT_VERSION=v${VERSION} DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEPOT=https://github.com/laurent22/joplin.git -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=10 -PACKAGE_DEPENDENCY="build-essential python nodejs rsync yarn" +PACKAGE_DEPENDENCY="build-essential python3 nodejs rsync yarn nodejs" main(){ base_package_upgrade diff --git a/ressources/joplin-server/debmaker b/ressources/joplin-server/debmaker index c7c2cd5..92060ab 100755 --- a/ressources/joplin-server/debmaker +++ b/ressources/joplin-server/debmaker @@ -1,19 +1,22 @@ #!/bin/bash -VERSION=2.11.1 +VERSION=2.11.2 APP=joplin-server GIT_VERSION=server-v${VERSION} DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEPOT=https://github.com/laurent22/joplin.git -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm +PACKAGE_DEPENDENCY="build-essential python-is-python3 nodejs rsync yarn" IMAGE_SIZE=12 -STEP="base_package_upgrade envinit default_prebuild build makedeb" - -envinit() { +main(){ + base_package_upgrade configure_depot_yarn configure_depot_nodejs - apt install -y --no-install-recommends build-essential python nodejs rsync yarn + install_package_dependency + get_git_source + build + makedeb } build() { diff --git a/ressources/kimai2/debmaker b/ressources/kimai2/debmaker index 7876193..5ca1b59 100755 --- a/ressources/kimai2/debmaker +++ b/ressources/kimai2/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2.0.25 +VERSION=2.0.27 APP=kimai2 DEPOT=https://github.com/kevinpapst/kimai2.git GIT_VERSION=${VERSION} diff --git a/ressources/mautrix-whatsapp/debmaker b/ressources/mautrix-whatsapp/debmaker index 7c50a4f..824ca44 100755 --- a/ressources/mautrix-whatsapp/debmaker +++ b/ressources/mautrix-whatsapp/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.8.4 +VERSION=0.8.6 APP=mautrix-whatsapp DEPOT=https://github.com/mautrix/whatsapp.git GIT_VERSION=v${VERSION} diff --git a/ressources/metabase/debmaker b/ressources/metabase/debmaker index a7a8624..8310019 100755 --- a/ressources/metabase/debmaker +++ b/ressources/metabase/debmaker @@ -1,18 +1,18 @@ #!/bin/bash -VERSION=0.46.4 +VERSION=0.46.6 APP=metabase DEPOT=https://github.com/metabase/metabase.git GIT_VERSION=v$VERSION DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=10 PACKAGE_DEPENDENCY="build-essential default-jdk curl nodejs yarn" main(){ base_package_upgrade configure_depot_yarn - configure_depot_nodejs + configure_depot_nodejs 18 install_package_dependency install_clojure get_git_source @@ -23,6 +23,9 @@ main(){ build() { cd /tmp/${APP}/ PATH=$PATH:/usr/local/bin +# export NODE_OPTIONS=--max-old-space-size=2048 +# export JVM_MAX_HEAP_SIZE=12 + npx browserslist@latest --update-db ./bin/build.sh } diff --git a/ressources/mysqlfdw/debmaker b/ressources/mysqlfdw/debmaker index 1ab1c7f..369c6fc 100755 --- a/ressources/mysqlfdw/debmaker +++ b/ressources/mysqlfdw/debmaker @@ -1,7 +1,7 @@ #!/bin/bash VERSION=2_9_0 -APP=mysql_fdw +APP=mysqlfdw DEPOT=https://github.com/EnterpriseDB/mysql_fdw.git GIT_VERSION=REL-${VERSION} DEB_VERSION=$(echo ${VERSION} | sed 's/_/./g' )-$(date +%Y%m%d%H%M) diff --git a/ressources/roundcubemail/debmaker b/ressources/roundcubemail/debmaker index f6046e5..4f0d9eb 100755 --- a/ressources/roundcubemail/debmaker +++ b/ressources/roundcubemail/debmaker @@ -1,11 +1,11 @@ #!/bin/bash -VERSION=1.6.1 +VERSION=1.6.2 APP=roundcubemail DEPOT=https://github.com/roundcube/roundcubemail.git GIT_VERSION=${VERSION} DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=4 PACKAGE_DEPENDENCY="make curl npm nodejs jq php-xml php-pear php-mbstring unzip" diff --git a/ressources/wallabag/debmaker b/ressources/wallabag/debmaker index d8dd155..bb639cc 100755 --- a/ressources/wallabag/debmaker +++ b/ressources/wallabag/debmaker @@ -1,10 +1,10 @@ #!/bin/bash -VERSION=2.5.4 +VERSION=2.6.1 APP=wallabag GIT_VERSION=$VERSION DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) -DEBIAN_VERSION_CODENAME=bullseye +DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=4 DEPOT=https://github.com/wallabag/wallabag.git diff --git a/ressources/zigbee2mqtt/debmaker b/ressources/zigbee2mqtt/debmaker index 7095205..1279d34 100755 --- a/ressources/zigbee2mqtt/debmaker +++ b/ressources/zigbee2mqtt/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.31.2 +VERSION=1.32.0 APP=zigbee2mqtt DEPOT=https://github.com/Koenkk/zigbee2mqtt.git GIT_VERSION=${VERSION}