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

@ -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