diff --git a/ressources/babybuddy/debmaker b/ressources/babybuddy/debmaker index 9d56204..cb1dd7b 100755 --- a/ressources/babybuddy/debmaker +++ b/ressources/babybuddy/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2.3.0 +VERSION=2.4.0 APP=babybuddy DEPOT=https://github.com/babybuddy/babybuddy.git GIT_VERSION=v${VERSION} diff --git a/ressources/bitwarden-desktop/debmaker b/ressources/bitwarden-desktop/debmaker index 3b697a5..87ff539 100755 --- a/ressources/bitwarden-desktop/debmaker +++ b/ressources/bitwarden-desktop/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2024.4.1 +VERSION=2024.4.3 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 0fc5dfc..6639254 100755 --- a/ressources/element-web/debmaker +++ b/ressources/element-web/debmaker @@ -1,11 +1,11 @@ #!/bin/bash -VERSION=1.11.64 +VERSION=1.11.66 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 3708214..476f6f7 100755 --- a/ressources/forgejo/debmaker +++ b/ressources/forgejo/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.21.10-0 +VERSION=7.0.2 APP=forgejo DEPOT=https://codeberg.org/forgejo/forgejo GIT_VERSION=v${VERSION} diff --git a/ressources/joplin-desktop/debmaker b/ressources/joplin-desktop/debmaker index 8495c3f..686ae2a 100755 --- a/ressources/joplin-desktop/debmaker +++ b/ressources/joplin-desktop/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=3.0.2 +VERSION=3.0.6 APP=joplin-desktop GIT_VERSION=v${VERSION} DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) diff --git a/ressources/keycloak/debmaker b/ressources/keycloak/debmaker index f108c95..81a678a 100755 --- a/ressources/keycloak/debmaker +++ b/ressources/keycloak/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=24.0.2 +VERSION=24.0.4 APP=keycloak DEPOT=https://github.com/keycloak/keycloak.git GIT_VERSION=${VERSION} diff --git a/ressources/kimai2/debmaker b/ressources/kimai2/debmaker index c4c9719..02b2487 100755 --- a/ressources/kimai2/debmaker +++ b/ressources/kimai2/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2.14.0 +VERSION=2.16.1 APP=kimai2 DEPOT=https://github.com/kevinpapst/kimai2.git GIT_VERSION=${VERSION} diff --git a/ressources/metabase/debmaker b/ressources/metabase/debmaker index ef44aba..e46c285 100755 --- a/ressources/metabase/debmaker +++ b/ressources/metabase/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.49.5 +VERSION=0.49.9 APP=metabase DEPOT=https://github.com/metabase/metabase.git GIT_VERSION=v$VERSION diff --git a/ressources/moodle-editor-tiny-c4l/debmaker b/ressources/moodle-editor-tiny-c4l/debmaker index 30c98f9..e246ba2 100755 --- a/ressources/moodle-editor-tiny-c4l/debmaker +++ b/ressources/moodle-editor-tiny-c4l/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2.1.1 +VERSION=3.0.0 APP=moodle-editor-tiny-c4l DEPOT=https://github.com/reskit/moodle-tiny_c4l.git GIT_VERSION=v$VERSION diff --git a/ressources/moodle-format-tiles/debmaker b/ressources/moodle-format-tiles/debmaker index 0bee0f6..788e48b 100755 --- a/ressources/moodle-format-tiles/debmaker +++ b/ressources/moodle-format-tiles/debmaker @@ -1,9 +1,9 @@ #!/bin/bash -VERSION=4.3 +VERSION=4.4.0.2 APP=moodle-format-tiles DEPOT=https://bitbucket.org/dw8/moodle-format_tiles.git -GIT_VERSION=last +GIT_VERSION=moodle44 DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=1 diff --git a/ressources/moodle/debmaker b/ressources/moodle/debmaker index d1d85d6..d8ba1f1 100755 --- a/ressources/moodle/debmaker +++ b/ressources/moodle/debmaker @@ -1,9 +1,9 @@ #!/bin/bash -VERSION=4.3.0 +VERSION=4.4.0 APP=moodle DEPOT=git://git.moodle.org/moodle.git -GIT_VERSION=MOODLE_403_STABLE +GIT_VERSION=MOODLE_404_STABLE DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEBIAN_VERSION_CODENAME=bookworm IMAGE_SIZE=2 diff --git a/ressources/paperless-ngx/README.MD b/ressources/paperless-ngx/README.MD new file mode 100644 index 0000000..3babf90 --- /dev/null +++ b/ressources/paperless-ngx/README.MD @@ -0,0 +1,17 @@ +#### paperless-ngx + +##### Information +Site : https://paperless-ngx.com/ + +Source : https://github.com/paperless-ngx/ + +##### Install + +```bash +apt install -y wget ca-certificates +wget -qO - https://deb.lgy.fr/install.sh | bash +apt-get update + +apt-get install -y paperless-ngx + +``` diff --git a/ressources/paperless-ngx/debmaker b/ressources/paperless-ngx/debmaker new file mode 100755 index 0000000..c8c4d86 --- /dev/null +++ b/ressources/paperless-ngx/debmaker @@ -0,0 +1,65 @@ +#!/bin/bash + +VERSION=2.8.1 +APP=paperless-ngx +DEPOT=https://github.com/paperless-ngx/paperless-ngx.git +GIT_VERSION=v${VERSION} +DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=8 +PACKAGE_DEPENDENCY="nodejs python3 python3-pip python3-dev imagemagick fonts-liberation gnupg libpq-dev default-libmysqlclient-dev pkg-config libmagic-dev mime-support libzbar0 poppler-utils unpaper ghostscript icc-profiles-free qpdf liblept5 libxml2 pngquant zlib1g tesseract-ocr" + +main(){ + base_package_upgrade + configure_depot_nodejs 20 + install_package_dependency + default_prebuild + build + makedeb +} + +build(){ + cd /tmp/${APP} + /tmp/venv/bin/pip install --upgrade pipenv==2023.12.1 setuptools wheel + /tmp/venv/bin/pipenv sync --dev + + + cd /tmp/${APP}/src-ui + export NODE_OPTIONS=--max-old-space-size=8192 + npm ci + npx playwright install --with-deps + ./node_modules/.bin/ng build --configuration production + + cd /tmp/${APP} + /tmp/venv/bin/pipenv requirements > requirements.txt + + cd /tmp/${APP}/src + /tmp/venv/bin/pipenv run python3 manage.py compilemessages + /tmp/venv/bin/pipenv run python3 manage.py collectstatic --no-input +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + mkdir -p ${PATH_DEB}/usr/lib/systemd/system/ + mkdir -p ${PATH_DEB}/usr/share/paperless-ngx + mkdir -p ${PATH_DEB}/usr/share/doc/paperless-ngx + mkdir -p ${PATH_DEB}/etc/default + mkdir -p ${PATH_DEB}/var/cache/paperless-ngx + + cp -fr /tmp/${APP}/src/ ${PATH_DEB}/usr/share/paperless-ngx + cp -fr /tmp/${APP}/requirements.txt ${PATH_DEB}/usr/share/paperless-ngx + cp -fr /tmp/${APP}/static ${PATH_DEB}/usr/share/paperless-ngx + cp -fr /tmp/${APP}/gunicorn.conf.py ${PATH_DEB}/usr/share/paperless-ngx + cp -fr /tmp/${APP}/paperless.conf.example ${PATH_DEB}/etc/default/paperless-ngx + + cp -fr /tmp/${APP}/README.md ${PATH_DEB}/usr/share/doc/paperless-ngx + cp -fr /tmp/${APP}/LICENSE ${PATH_DEB}/usr/share/doc/paperless-ngx + + mv /tmp/src/prestart.sh ${PATH_DEB}/usr/share/paperless-ngx + + mv /tmp/src/*.service ${PATH_DEB}/usr/lib/systemd/system/ + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist + +} diff --git a/ressources/paperless-ngx/paperless-consumer.service b/ressources/paperless-ngx/paperless-consumer.service new file mode 100644 index 0000000..57d22df --- /dev/null +++ b/ressources/paperless-ngx/paperless-consumer.service @@ -0,0 +1,14 @@ +[Unit] +Description=Paperless consumer +#Requires=redis.service + +[Service] +User=paperless-ngx +Group=paperless-ngx +EnvironmentFile=/etc/default/paperless-ngx +WorkingDirectory=/usr/share/paperless-ngx/src +ExecStartPre=/usr/share/paperless-ngx/prestart.sh +ExecStart=/var/cache/paperless-ngx/python-venv/bin/python3 manage.py document_consumer + +[Install] +WantedBy=multi-user.target diff --git a/ressources/paperless-ngx/paperless-scheduler.service b/ressources/paperless-ngx/paperless-scheduler.service new file mode 100644 index 0000000..3b8addf --- /dev/null +++ b/ressources/paperless-ngx/paperless-scheduler.service @@ -0,0 +1,14 @@ +[Unit] +Description=Paperless Celery Beat +#Requires=redis.service + +[Service] +User=paperless-ngx +Group=paperless-ngx +EnvironmentFile=/etc/default/paperless-ngx +WorkingDirectory=/usr/share/paperless-ngx/src +ExecStartPre=/usr/share/paperless-ngx/prestart.sh +ExecStart=/var/cache/paperless-ngx/python-venv/bin/celery --app paperless beat --loglevel INFO + +[Install] +WantedBy=multi-user.target diff --git a/ressources/paperless-ngx/paperless-task-queue.service b/ressources/paperless-ngx/paperless-task-queue.service new file mode 100644 index 0000000..75d0a8c --- /dev/null +++ b/ressources/paperless-ngx/paperless-task-queue.service @@ -0,0 +1,14 @@ +[Unit] +Description=Paperless Celery Workers +#Requires=redis.service + +[Service] +User=paperless-ngx +Group=paperless-ngx +EnvironmentFile=/etc/default/paperless-ngx +WorkingDirectory=/usr/share/paperless-ngx/src +ExecStartPre=/usr/share/paperless-ngx/prestart.sh +ExecStart=/var/cache/paperless-ngx/python-venv/bin/celery --app paperless worker --loglevel INFO + +[Install] +WantedBy=multi-user.target diff --git a/ressources/paperless-ngx/paperless-webserver.service b/ressources/paperless-ngx/paperless-webserver.service new file mode 100644 index 0000000..2580304 --- /dev/null +++ b/ressources/paperless-ngx/paperless-webserver.service @@ -0,0 +1,17 @@ +[Unit] +Description=Paperless webserver +After=network.target +Wants=network.target +#Requires=redis.service +#Requires=paperless-webserver.socket + +[Service] +User=paperless-ngx +Group=paperless-ngx +EnvironmentFile=/etc/default/paperless-ngx +WorkingDirectory=/usr/share/paperless-ngx/src +ExecStartPre=/usr/share/paperless-ngx/prestart.sh +ExecStart=/var/cache/paperless-ngx/python-venv/bin/gunicorn -c ../gunicorn.conf.py paperless.asgi:application + +[Install] +WantedBy=multi-user.target diff --git a/ressources/paperless-ngx/prestart.sh b/ressources/paperless-ngx/prestart.sh new file mode 100755 index 0000000..0b7031d --- /dev/null +++ b/ressources/paperless-ngx/prestart.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +( +flock 9 +if [ -e /var/cache/paperless-ngx/lastcheck ] && [ "$(cat /var/cache/paperless-ngx/lastcheck)" == "$(date +%y%m%d)" ] +then + echo allready check today +else + python3 -m venv /var/cache/paperless-ngx/python-venv + /var/cache/paperless-ngx/python-venv/bin/pip3 install -r /usr/share/paperless-ngx/requirements.txt + date +%y%m%d > /var/cache/paperless-ngx/lastcheck +fi +) 9>python3 -m venv /tmp/paperless-ngx-python-venv diff --git a/ressources/paperless-ngx/rootfs/DEBIAN/changelog b/ressources/paperless-ngx/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/paperless-ngx/rootfs/DEBIAN/conffiles b/ressources/paperless-ngx/rootfs/DEBIAN/conffiles new file mode 100644 index 0000000..1a87dd8 --- /dev/null +++ b/ressources/paperless-ngx/rootfs/DEBIAN/conffiles @@ -0,0 +1 @@ +/etc/default/paperless-ngx diff --git a/ressources/paperless-ngx/rootfs/DEBIAN/control b/ressources/paperless-ngx/rootfs/DEBIAN/control new file mode 100644 index 0000000..dd24845 --- /dev/null +++ b/ressources/paperless-ngx/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: paperless-ngx +Version: %VERSION% +Section: contrib +Priority: optional +Architecture: all +Maintainer: Thomas Legay +Depends: python3, python3-pip, python3-dev, imagemagick, fonts-liberation, gnupg, libpq-dev, default-libmysqlclient-dev, pkg-config, libmagic-dev, mime-support, libzbar0, poppler-utils, unpaper, ghostscript, icc-profiles-free, qpdf, liblept5, libxml2, pngquant, zlib1g, tesseract-ocr, gcc +Description: Paperless-ngx is a document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper. diff --git a/ressources/paperless-ngx/rootfs/DEBIAN/postinst b/ressources/paperless-ngx/rootfs/DEBIAN/postinst new file mode 100755 index 0000000..daf8774 --- /dev/null +++ b/ressources/paperless-ngx/rootfs/DEBIAN/postinst @@ -0,0 +1,15 @@ +#!/bin/bash +APP=paperless-ngx +HOMEDIR=/var/lib/paperless-ngx +LOGDIR=/var/log/paperless-ngx +CACHEDIR=/var/cache/paperless-ngx + +[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR} +id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR} + +chown ${APP}:${APP} ${HOMEDIR} + +[ -d ${LOGDIR} ] || mkdir -p ${LOGDIR} +chown ${APP}:${APP} ${LOGDIR} +[ -d ${CACHEDIR} ] || mkdir -p ${CACHEDIR} +chown ${APP}:${APP} ${CACHEDIR} diff --git a/ressources/smbnetfs-utils/debmaker b/ressources/smbnetfs-utils/debmaker new file mode 100755 index 0000000..54b05ec --- /dev/null +++ b/ressources/smbnetfs-utils/debmaker @@ -0,0 +1,31 @@ +#!/bin/bash + +VERSION=0.1 +APP=smbnetfs-utils +GIT_VERSION=${VERSION} +DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) +DEPOT=N/A +DEBIAN_VERSION_CODENAME=bookworm +IMAGE_SIZE=1 +PACKAGE_DEPENDENCY="" + +main(){ + base_package_upgrade + install_package_dependency + makedeb +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs/ + + mkdir -p ${PATH_DEB}/usr/bin/ + mkdir -p ${PATH_DEB}/etc/default/ + mkdir -p ${PATH_DEB}/usr/lib/systemd/system/ + + mv /tmp/src/smbnetfs@.service ${PATH_DEB}/usr/lib/systemd/system/ + mv /tmp/src/smbnetfs-utils ${PATH_DEB}/usr/bin/ + mv /tmp/src/smbnetfs-utils.default ${PATH_DEB}/etc/default/smbnetfs-utils + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/smbnetfs-utils/rootfs/DEBIAN/changelog b/ressources/smbnetfs-utils/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/smbnetfs-utils/rootfs/DEBIAN/conffiles b/ressources/smbnetfs-utils/rootfs/DEBIAN/conffiles new file mode 100644 index 0000000..95b7724 --- /dev/null +++ b/ressources/smbnetfs-utils/rootfs/DEBIAN/conffiles @@ -0,0 +1 @@ +/etc/default/smbnetfs-utils diff --git a/ressources/smbnetfs-utils/rootfs/DEBIAN/control b/ressources/smbnetfs-utils/rootfs/DEBIAN/control new file mode 100644 index 0000000..f736273 --- /dev/null +++ b/ressources/smbnetfs-utils/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: smbnetfs-utils +Version: %VERSION% +Section: contrib +Priority: optional +Architecture: all +Depends: smbnetfs +Maintainer: Thomas Legay +Description: smbnetfs-utils diff --git a/ressources/smbnetfs-utils/smbnetfs-utils b/ressources/smbnetfs-utils/smbnetfs-utils new file mode 100755 index 0000000..71c441e --- /dev/null +++ b/ressources/smbnetfs-utils/smbnetfs-utils @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +source /etc/default/smbnetfs-utils + +ACTION=$1 +if [ ! -e ${HOME}/${CONF_FILE} ]; then + echo 'configuration file needed' + exit 1 +fi + +if [ "$ACTION" == "" ]; then + echo 'smbnetfs-utils [mount/unmount]' +elif [ "$ACTION" == "mount" ]; then + [ ! -e ${HOME}/${SMBNETFS_MOUNT_POINT} ] && mkdir -p ${HOME}/${SMBNETFS_MOUNT_POINT} + /usr/bin/smbnetfs -f ${HOME}/${SMBNETFS_MOUNT_POINT} -o config=${HOME}/${CONF_FILE} +elif [ "$ACTION" == "unmount" ] ; then + /usr/bin/fusermount -u ${HOME}/${SMBNETFS_MOUNT_POINT} +fi diff --git a/ressources/smbnetfs-utils/smbnetfs-utils.default b/ressources/smbnetfs-utils/smbnetfs-utils.default new file mode 100644 index 0000000..1b02edc --- /dev/null +++ b/ressources/smbnetfs-utils/smbnetfs-utils.default @@ -0,0 +1,2 @@ +SMBNETFS_MOUNT_POINT=network +CONF_FILE=.smb/smbnetfs.conf diff --git a/ressources/smbnetfs-utils/smbnetfs@.service b/ressources/smbnetfs-utils/smbnetfs@.service new file mode 100644 index 0000000..69858b6 --- /dev/null +++ b/ressources/smbnetfs-utils/smbnetfs@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Mount Samba Shares +After=network.target + +[Service] +User=%I +Group=%I +ExecStart=/usr/bin/smbnetfs-utils mount +ExecStop=/usr/bin/smbnetfs-utils unmount +Restart=on-failure +RestartSec=30s + +[Install] +WantedBy=multi-user.target diff --git a/ressources/zigbee2mqtt/debmaker b/ressources/zigbee2mqtt/debmaker index af3bdc6..9868fee 100755 --- a/ressources/zigbee2mqtt/debmaker +++ b/ressources/zigbee2mqtt/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.36.1 +VERSION=1.37.1 APP=zigbee2mqtt DEPOT=https://github.com/Koenkk/zigbee2mqtt.git GIT_VERSION=${VERSION}