From f6f7521ffef7e447b7ef083c1164efaa54df98d0 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 1 May 2023 00:17:30 +0200 Subject: [PATCH] Add budybase --- ressources/adguardhome/debmaker | 3 +- ressources/babybuddy/README.MD | 21 ++++++++++++ ressources/babybuddy/debmaker | 32 +++++++++++++++++++ ressources/babybuddy/rootfs/DEBIAN/changelog | 0 ressources/babybuddy/rootfs/DEBIAN/conffiles | 1 + ressources/babybuddy/rootfs/DEBIAN/control | 8 +++++ ressources/babybuddy/rootfs/DEBIAN/postinst | 19 +++++++++++ .../babybuddy/rootfs/etc/default/babybuddy | 1 + .../usr/lib/systemd/system/babybuddy.service | 20 ++++++++++++ ressources/bitwarden-desktop/debmaker | 2 +- ressources/element-web/debmaker | 2 +- ressources/gitea/debmaker | 2 +- ressources/glpi/debmaker | 2 +- ressources/kimai2/debmaker | 2 +- ressources/mautrix-whatsapp/debian/changelog | 6 ++++ ressources/mautrix-whatsapp/debmaker | 2 +- ressources/metabase/debmaker | 4 +-- ressources/rustdesk-server/debmaker | 2 +- ressources/vaultwarden/debmaker | 2 +- ressources/zigbee2mqtt/debmaker | 3 +- 20 files changed, 122 insertions(+), 12 deletions(-) create mode 100644 ressources/babybuddy/README.MD create mode 100755 ressources/babybuddy/debmaker create mode 100644 ressources/babybuddy/rootfs/DEBIAN/changelog create mode 100644 ressources/babybuddy/rootfs/DEBIAN/conffiles create mode 100644 ressources/babybuddy/rootfs/DEBIAN/control create mode 100755 ressources/babybuddy/rootfs/DEBIAN/postinst create mode 100644 ressources/babybuddy/rootfs/etc/default/babybuddy create mode 100644 ressources/babybuddy/rootfs/usr/lib/systemd/system/babybuddy.service diff --git a/ressources/adguardhome/debmaker b/ressources/adguardhome/debmaker index 068a7b7..9ebb51c 100755 --- a/ressources/adguardhome/debmaker +++ b/ressources/adguardhome/debmaker @@ -1,9 +1,10 @@ #!/bin/bash -VERSION=0.108.0-b.31 +VERSION=0.108.0-b.34 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 IMAGE_SIZE=4 diff --git a/ressources/babybuddy/README.MD b/ressources/babybuddy/README.MD new file mode 100644 index 0000000..71ff357 --- /dev/null +++ b/ressources/babybuddy/README.MD @@ -0,0 +1,21 @@ +#### babybuddy + +##### Information +Site : https://docs.baby-buddy.net/ + +Source : https://github.com/babybuddy/babybuddy + +##### Install + +```bash +apt install -y wget ca-certificates +wget -qO - https://deb.lgy.fr/install.sh | bash +apt-get update + + +apt-get install -y babybuddy + +#Edit /etc/babybuddy/production.py + +systemctl enable --now babybuddy +``` diff --git a/ressources/babybuddy/debmaker b/ressources/babybuddy/debmaker new file mode 100755 index 0000000..58d2af0 --- /dev/null +++ b/ressources/babybuddy/debmaker @@ -0,0 +1,32 @@ +#!/bin/bash + +VERSION=1.15.1 +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 +IMAGE_SIZE=6 +PACKAGE_DEPENDENCY="" + +main(){ + base_package_upgrade + install_package_dependency + get_git_source + makedeb +} + +makedeb(){ + PATH_DEB=/tmp/src/rootfs + + mkdir -p ${PATH_DEB}/etc/babybuddy/ + mv /tmp/${APP}/babybuddy/settings/production.example.py ${PATH_DEB}/etc/babybuddy/production.py + + mkdir -p ${PATH_DEB}/usr/share/ + cp -fr /tmp/${APP}/ ${PATH_DEB}/usr/share/ + + ln -s /etc/babybuddy/production.py ${PATH_DEB}/usr/share/babybuddy/babybuddy/settings/production.py + + sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control + fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist +} diff --git a/ressources/babybuddy/rootfs/DEBIAN/changelog b/ressources/babybuddy/rootfs/DEBIAN/changelog new file mode 100644 index 0000000..e69de29 diff --git a/ressources/babybuddy/rootfs/DEBIAN/conffiles b/ressources/babybuddy/rootfs/DEBIAN/conffiles new file mode 100644 index 0000000..fd497bc --- /dev/null +++ b/ressources/babybuddy/rootfs/DEBIAN/conffiles @@ -0,0 +1 @@ +/etc/babybuddy/production.py diff --git a/ressources/babybuddy/rootfs/DEBIAN/control b/ressources/babybuddy/rootfs/DEBIAN/control new file mode 100644 index 0000000..acef0fa --- /dev/null +++ b/ressources/babybuddy/rootfs/DEBIAN/control @@ -0,0 +1,8 @@ +Package: babybuddy +Version: %VERSION% +Section: contrib +Priority: optional +Architecture: all +Depends: python3 ( >= 3.7 ), python-is-python3, python3-venv +Maintainer: Thomas Legay +Description: babybuddy diff --git a/ressources/babybuddy/rootfs/DEBIAN/postinst b/ressources/babybuddy/rootfs/DEBIAN/postinst new file mode 100755 index 0000000..84b4566 --- /dev/null +++ b/ressources/babybuddy/rootfs/DEBIAN/postinst @@ -0,0 +1,19 @@ +#!/bin/bash +APP=babybuddy +HOMEDIR=/var/lib/babybuddy/ + +[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR} +id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR} + +chown ${APP}:${APP} ${HOMEDIR} + +systemctl | grep ${APP} | grep -q running && systemctl daemon-reload && systemctl restart ${APP} + +if [[ $(systemctl list-unit-files | grep ${APP}.services) -eq 0 ]] +then + systemctl daemon-reload + if [ "$(systemctl is-active ${APP}.service)" != "inactive" ] + then + systemctl restart ${APP} + fi +fi diff --git a/ressources/babybuddy/rootfs/etc/default/babybuddy b/ressources/babybuddy/rootfs/etc/default/babybuddy new file mode 100644 index 0000000..e0d94a1 --- /dev/null +++ b/ressources/babybuddy/rootfs/etc/default/babybuddy @@ -0,0 +1 @@ +DJANGO_SETTINGS_MODULE=babybuddy.settings.production diff --git a/ressources/babybuddy/rootfs/usr/lib/systemd/system/babybuddy.service b/ressources/babybuddy/rootfs/usr/lib/systemd/system/babybuddy.service new file mode 100644 index 0000000..181afc2 --- /dev/null +++ b/ressources/babybuddy/rootfs/usr/lib/systemd/system/babybuddy.service @@ -0,0 +1,20 @@ +[Unit] +Description=babybuddy +After=network.target + +[Service] +User=babybuddy +Group=babybuddy +EnvironmentFile=/etc/default/babybuddy +ExecStartPre=python3 -m venv /var/lib/babybuddy/.venv +ExecStartPre=/var/lib/babybuddy/.venv/bin/pip install -r /usr/share/babybuddy/requirements.txt +ExecStartPre=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py migrate +ExecStartPre=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py createcachetable +ExecStart=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py runserver 0.0.0.0:8000 +WorkingDirectory=/var/lib/babybuddy +StandardOutput=inherit +StandardError=inherit +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/ressources/bitwarden-desktop/debmaker b/ressources/bitwarden-desktop/debmaker index dc97468..b04b6ac 100755 --- a/ressources/bitwarden-desktop/debmaker +++ b/ressources/bitwarden-desktop/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=2023.3.1 +VERSION=2023.4.0 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 cf34710..e891b7f 100755 --- a/ressources/element-web/debmaker +++ b/ressources/element-web/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.11.26 +VERSION=1.11.30 APP=element-web DEPOT=https://github.com/vector-im/element-web.git GIT_VERSION=v${VERSION} diff --git a/ressources/gitea/debmaker b/ressources/gitea/debmaker index df56990..7c63300 100755 --- a/ressources/gitea/debmaker +++ b/ressources/gitea/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.19.0 +VERSION=1.19.2 APP=gitea DEPOT=https://github.com/go-gitea/gitea.git GIT_VERSION=v${VERSION} diff --git a/ressources/glpi/debmaker b/ressources/glpi/debmaker index 42e700d..bf89d0b 100755 --- a/ressources/glpi/debmaker +++ b/ressources/glpi/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=10.0.6 +VERSION=10.0.7 APP=glpi DEPOT=https://github.com/glpi-project/glpi.git GIT_VERSION=${VERSION} diff --git a/ressources/kimai2/debmaker b/ressources/kimai2/debmaker index bd26ef9..b919781 100755 --- a/ressources/kimai2/debmaker +++ b/ressources/kimai2/debmaker @@ -1,7 +1,7 @@ #!/bin/bash VERSION=1.30.11 -VERSION=2.0.13 +VERSION=2.0.16 APP=kimai2 DEPOT=https://github.com/kevinpapst/kimai2.git GIT_VERSION=${VERSION} diff --git a/ressources/mautrix-whatsapp/debian/changelog b/ressources/mautrix-whatsapp/debian/changelog index d6e4eb7..5c9072e 100644 --- a/ressources/mautrix-whatsapp/debian/changelog +++ b/ressources/mautrix-whatsapp/debian/changelog @@ -1,3 +1,9 @@ +mautrix-whatsapp (0.8.4) UNRELEASED; urgency=medium + + * First deb version + + -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 + mautrix-whatsapp (0.8.1) UNRELEASED; urgency=medium * First deb version diff --git a/ressources/mautrix-whatsapp/debmaker b/ressources/mautrix-whatsapp/debmaker index 9b8398e..7c50a4f 100755 --- a/ressources/mautrix-whatsapp/debmaker +++ b/ressources/mautrix-whatsapp/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.8.3 +VERSION=0.8.4 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 635d8a8..4a0ec56 100755 --- a/ressources/metabase/debmaker +++ b/ressources/metabase/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=0.46.0 +VERSION=0.46.2 APP=metabase DEPOT=https://github.com/metabase/metabase.git GIT_VERSION=v$VERSION @@ -23,7 +23,7 @@ main(){ build() { cd /tmp/${APP}/ PATH=$PATH:/usr/local/bin - ./bin/build + ./bin/build.sh } makedeb(){ diff --git a/ressources/rustdesk-server/debmaker b/ressources/rustdesk-server/debmaker index 96c2694..f808fd2 100755 --- a/ressources/rustdesk-server/debmaker +++ b/ressources/rustdesk-server/debmaker @@ -1,7 +1,7 @@ #!/bin/bash APP=rustdesk-server -VERSION=1.1.7-3 +VERSION=1.1.7-4 GIT_VERSION=$VERSION DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEBIAN_VERSION_CODENAME=bullseye diff --git a/ressources/vaultwarden/debmaker b/ressources/vaultwarden/debmaker index 9f95e80..a9baf60 100755 --- a/ressources/vaultwarden/debmaker +++ b/ressources/vaultwarden/debmaker @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=1.28.0 +VERSION=1.28.1 APP=vaultwarden GIT_VERSION=$VERSION DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) diff --git a/ressources/zigbee2mqtt/debmaker b/ressources/zigbee2mqtt/debmaker index 9e8054b..0549063 100755 --- a/ressources/zigbee2mqtt/debmaker +++ b/ressources/zigbee2mqtt/debmaker @@ -1,10 +1,11 @@ #!/bin/bash +VERSION=1.30.3 VERSION=1.30.2 APP=zigbee2mqtt DEPOT=https://github.com/Koenkk/zigbee2mqtt.git GIT_VERSION=${VERSION} -DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) +DEB_VERSION=1.30.3.1-$(date +%Y%m%d%H%M) DEBIAN_VERSION_CODENAME=bullseye IMAGE_SIZE=2 PACKAGE_DEPENDENCY="nodejs make g++ gcc"