add quacamole sqlpage

This commit is contained in:
Thomas Legay 2023-11-21 01:24:31 +01:00
parent 337df6c751
commit a31db48ad0
43 changed files with 421 additions and 14 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.108.0-b.48 VERSION=0.108.0-b.49
APP=adguardhome APP=adguardhome
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.9.3 VERSION=0.9.4
APP=baikal APP=baikal
DEPOT=https://github.com/sabre-io/Baikal.git DEPOT=https://github.com/sabre-io/Baikal.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}

View File

@ -19,7 +19,7 @@ main(){
envinit() { envinit() {
configure_depot_yarn configure_depot_yarn
configure_depot_nodejs 14 configure_depot_nodejs 16
install_package_dependency install_package_dependency
npm install -g lerna npm install -g lerna
} }

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.11.38 VERSION=1.11.49
APP=element-web APP=element-web
DEPOT=https://github.com/vector-im/element-web.git DEPOT=https://github.com/vector-im/element-web.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=3.3.2 VERSION=4.0.3
APP=grocy APP=grocy
DEPOT=https://github.com/grocy/grocy.git DEPOT=https://github.com/grocy/grocy.git
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION

View File

@ -0,0 +1,8 @@
Package: guacamole-server
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Depends: libwebp6, libcairo2
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: guacamole-server

View File

@ -0,0 +1,37 @@
#!/bin/sh
#
# Simple postinst script for guacd which creates a "guacd" user and group
# and sets the permissions and ownership of /var/run/guacd (the location
# of the guacd.pid file).
#
# Exit on errors
set -e
GUACD_USER="guacd" # guacd username
GUACD_GROUP="guacd" # guacd group
GUACD_HOME="/var/run/guacd" # guacd home directory
# Convenience function for error conditions.
fail() {
echo "$1" >&2
exit 1
}
# Create guacd group if it does not exist
groupadd -fr "$GUACD_GROUP" ||\
fail "Could not create group \"$GUACD_GROUP\""
# Create guacd user if it does not exist
useradd -g "$GUACD_GROUP" -d "$GUACD_HOME" -s /bin/false -r "$GUACD_USER" || (
if [ "$?" != "9" ]
then
fail "Could not create user \"$GUACD_USER\""
fi
)
#DEBHELPER#
# Exit successfully
exit 0

View File

@ -0,0 +1,20 @@
#### mautrix-whatsapp
##### Information
Site : https://docs.mau.fi/bridges/go/whatsapp/index.html
Source : https://github.com/mautrix/whatsapp
##### Install
```
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y mautrix-whatsapp
#see https://docs.mau.fi/bridges/go/whatsapp/setup/index.html#configuring-and-running
systemctl enable --now mautrix-whatsapp
```

View File

@ -0,0 +1,39 @@
#!/bin/bash
VERSION=1.5.3
APP=guacamole-server
DEPOT=https://github.com/apache/guacamole-server.git
GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4
PACKAGE_DEPENDENCY="build-essential automake autoconf libjpeg62-turbo-dev libcairo2-dev libpng-dev libtool-bin uuid-dev libossp-uuid-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev freerdp2-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libwebsockets-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev"
main(){
base_package_upgrade
install_package_dependency
get_git_source
build
makedeb
}
build(){
mkdir /tmp/src/rootfs
cd /tmp/${APP}
libtoolize --force
aclocal
autoheader
automake --force-missing --add-missing
autoconf
./configure --prefix=/
make DESTDIR=/tmp/src/rootfs install
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/src/DEBIAN ${PATH_DEB}
sed -i "s/%VERSION%/$DEB_VERSION/" /tmp/src/rootfs/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build /tmp/src/rootfs/ /tmp/dist
}

View File

@ -0,0 +1,11 @@
# Environment for guacd
# Address and port to listen on for network connections
LISTEN_ADDRESS=127.0.0.1
LISTEN_PORT=4822
# Other arguments to guacd
DAEMON_ARGS=

View File

@ -0,0 +1,16 @@
[Unit]
Description=Guacamole proxy daemon
Documentation=man:guacd(8)
After=network.target
[Service]
Type=forking
User=guacd
Group=guacd
RuntimeDirectory=guacd
PIDFile=/var/run/guacd/guacd.pid
EnvironmentFile=-/etc/default/guacd
ExecStart=/usr/sbin/guacd $DAEMON_ARGS -b $LISTEN_ADDRESS -l $LISTEN_PORT -p /var/run/guacd/guacd.pid
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,19 @@
#### homeassistant
##### Information
Site : https://www.home-assistant.io
Source : https://github.com/home-assistant
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y homeassistant
systemctl enable --now homeassistant
```

View File

@ -0,0 +1,32 @@
#!/bin/bash
VERSION=2023.10.3
APP=homeassistant
DEPOT=https://github.com/home-assistant/core.git
GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=10
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
}

View File

@ -0,0 +1 @@
/etc/babybuddy/production.py

View File

@ -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 <thomas@lgy.fr>
Description: babybuddy

View File

@ -0,0 +1,19 @@
#!/bin/bash
APP=homeassistant
HOMEDIR=/var/lib/homeassistant/
[ -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

View File

@ -0,0 +1 @@
DJANGO_SETTINGS_MODULE=babybuddy.settings.production

View File

@ -0,0 +1,20 @@
[Unit]
Description=homeassistant
After=network.target
[Service]
User=homeassistant
Group=homeassistant
EnvironmentFile=/etc/default/homeassistant
ExecStartPre=python3 -m venv /var/lib/homeassistant/.venv
ExecStartPre=/var/lib/homeassistant/.venv/bin/pip install -r /usr/share/homeassistant/requirements.txt
ExecStartPre=/var/lib/homeassistant/.venv/bin/python3 /usr/share/homeassistant/manage.py migrate
ExecStartPre=/var/lib/homeassistant/.venv/bin/python3 /usr/share/homeassistant/manage.py createcachetable
ExecStart=/var/lib/homeassistant/.venv/bin/python3 /usr/share/homeassistant/manage.py runserver 0.0.0.0:8000
WorkingDirectory=/var/lib/homeassistant
StandardOutput=inherit
StandardError=inherit
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.13.4 VERSION=2.13.6
APP=joplin-desktop APP=joplin-desktop
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.13.3 VERSION=2.13.5
APP=joplin-server APP=joplin-server
GIT_VERSION=server-v${VERSION} GIT_VERSION=server-v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.1.0 VERSION=2.4.1
APP=kimai2 APP=kimai2
DEPOT=https://github.com/kevinpapst/kimai2.git DEPOT=https://github.com/kevinpapst/kimai2.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.10.3 VERSION=0.10.4
APP=mautrix-whatsapp APP=mautrix-whatsapp
DEPOT=https://github.com/mautrix/whatsapp.git DEPOT=https://github.com/mautrix/whatsapp.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.47.6 VERSION=0.47.8
APP=metabase APP=metabase
DEPOT=https://github.com/metabase/metabase.git DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION

View File

@ -0,0 +1,17 @@
#### moodle
##### Information
Site : https://moodle.org/
Source : git://git.moodle.org/moodle.git
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y moodle
```

31
ressources/moodle/debmaker Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
VERSION=4.3.0
APP=moodle
DEPOT=git://git.moodle.org/moodle.git
GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=2
PACKAGE_DEPENDENCY=""
main(){
base_package_upgrade
install_package_dependency
default_prebuild
build
makedeb
}
build(){
cd /tmp/${APP}
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mv /tmp/${APP} ${PATH_DEB_INSTALL}/usr/share/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View File

@ -0,0 +1,8 @@
Package: moodle
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr>
Depends: php-gd, php-soap, php-intl, php-mbstring, php-xml, php-pgsql, php-curl, php-zip
Description: moodle

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2023-07-13 VERSION=2023-09-24
APP=rss-bridge APP=rss-bridge
DEPOT=https://github.com/RSS-Bridge/rss-bridge.git DEPOT=https://github.com/RSS-Bridge/rss-bridge.git
GIT_VERSION=$VERSION GIT_VERSION=$VERSION

View File

@ -0,0 +1,20 @@
#### vaultwarden
##### Information
Site : https://github.com/dani-garcia/vaultwarden
Source : https://github.com/dani-garcia/vaultwarden
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt install vaultwarden vaultwarden-web
#Edit /etc/default/vaultwarden
systemctl enable --now vaultwarden
```

33
ressources/sqlpage/debmaker Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
VERSION=0.15.1
APP=sqlpage
GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=8
DEPOT=https://github.com/lovasoa/SQLpage.git
PACKAGE_DEPENDENCY="build-essential"
main(){
base_package_upgrade
install_package_dependency
install_rust
default_prebuild
build
#makedeb
}
build() {
cd /tmp/${APP}
source ~/.cargo/env
cargo build --profile superoptimized --locked
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/${APP}/target/release/vaultwarden ${PATH_DEB}/usr/lib/vaultwarden/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

View File

@ -0,0 +1 @@
/etc/default/vaultwarden

View File

@ -0,0 +1,9 @@
Package: vaultwarden
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Depends: libmariadb-dev, libpq-dev, libmysql++-dev
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: vaultwarden service

View File

@ -0,0 +1,4 @@
#!/bin/bash
id vaultwarden&> /dev/null || useradd vaultwarden -r -s /bin/false -md /var/lib/vaultwarden
chown vaultwarden:vaultwarden /var/lib/vaultwarden

View File

@ -0,0 +1,20 @@
#See src/config.rs
WEB_VAULT_FOLDER=/usr/share/vaultwarden-web/
DATA_FOLDER=/var/lib/vaultwarden/
SIGNUPS_ALLOWED=false
WEBSOCKET_ENABLED=true
ADMIN_TOKEN=
SMTP_HOST=
SMTP_FROM=
SMTP_PORT=
SMTP_SSL=true
SMTP_USERNAME=
SMTP_PASSWORD=
RUST_BACKTRACE=full
DOMAIN=https://vaultwarden.domain.com
ADMIN_TOKEN=
ROCKET_ADDRESS=0.0.0.0
WEBSOCKET_ENABLED=true
WEBSOCKET_ADDRESS=0.0.0.0
DATABASE_URL=

View File

@ -0,0 +1,32 @@
[Unit]
Description=vaultwarden Server (Rust Edition)
Documentation=https://github.com/dani-garcia/vaultwarden
After=network.target
# MariaDB
# After=network.target mariadb.service
# Requires=mariadb.service
# Mysql
# After=network.target mysqld.service
# Requires=mysqld.service
# PostgreSQL
# After=network.target postgresql.service
# Requires=postgresql.service
[Service]
User=vaultwarden
Group=vaultwarden
EnvironmentFile=/etc/default/vaultwarden
ExecStart=/usr/lib/vaultwarden/vaultwarden
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
WorkingDirectory=/var/lib//vaultwarden/
ReadWriteDirectories=/var/lib/vaultwarden/
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.23.3 VERSION=1.23.6
APP=uptime-kuma APP=uptime-kuma
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2023.8.2 VERSION=2023.10.0
APP=vaultwarden-web APP=vaultwarden-web
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.29.2 VERSION=1.30.1
APP=vaultwarden APP=vaultwarden
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)