new version adguardhome element-web glpi grocy mautrix-whatsapp metabase rss-bridge tt-rss wallabag zigbee2mqtt

add rustdesk-server
This commit is contained in:
thomas 2022-06-11 22:16:17 +02:00
parent ad8ebb543c
commit f7730928e4
29 changed files with 272 additions and 59 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.108.0-b.8 VERSION=0.108.0-b.9
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.10.13 VERSION=1.10.14
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=10.0.0 VERSION=10.0.1
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=3.3.0 VERSION=3.3.1
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -0,0 +1,6 @@
The Debian Package vnctv
----------------------------
Comments regarding the Package
-- Thomas Leagy <thomas@lgy.fr> Sun, 03 Apr 2022 12:36:14 +0200

View file

@ -0,0 +1,11 @@
mautrix-whatsapp (0.4.0) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 May 2022 21:08:37 +0200
mautrix-whatsapp (0.3.1) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 18 Apr 2022 00:26:37 +0200

View file

@ -0,0 +1 @@
/etc/mautrix-whatsapp/config.yaml

View file

@ -0,0 +1,13 @@
Source: mautrix-whatsapp
Section: base
Priority: optional
Maintainer: Thomas Legay <thomas@lgy.fr>
Build-Depends: debhelper-compat (= 13), golang (>= 16)
Standards-Version: 3.9.8
Homepage: http://www.gnu.org/software/gawk/
https://github.com/mautrix/whatsapp/archive/refs/tags/v0.4.0.tar.gz
Package: mautrix-whatsapp
Architecture: all
Depends: libolm3
Description: mautrix-whatsapp bridge

View file

@ -0,0 +1,29 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mautrix-whatsapp
Upstream-Contact: <preferred name and address to reach the upstream project>
Source: <url://example.com>
Files: *
Copyright: 2022 tulir
License: GPL-3.0+
Files: debian/*
Copyright: 2022 Thomas Legay <thomas@lgy.fr>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

View file

@ -0,0 +1,2 @@
mautrix-whatsapp usr/lib/mautrix-whatsapp/
config.yaml etc/mautrix-whatsapp/

View file

@ -0,0 +1,35 @@
[Unit]
Description=mautrix-whatsapp bridge
[Service]
Type=exec
User=mautrix-whatsapp
WorkingDirectory=/var/lib/mautrix-whatsapp
ExecStart=/usr/lib/mautrix-whatsapp/mautrix-whatsapp -c /etc/mautrix-whatsapp/config.yaml
Restart=on-failure
RestartSec=30s
# Optional hardening to improve security
ReadWritePaths=/var/lib/mautrix-whatsapp /etc/mautrix-whatsapp
NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
PrivateUsers=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target

View file

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

View file

@ -0,0 +1,28 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- \
# -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
override_dh_auto_build:
./build.sh
cp example-config.yaml config.yaml

View file

@ -0,0 +1 @@
3.0 (native)

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.43.1 VERSION=0.43.2
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh

View file

@ -1,28 +1,31 @@
#!/bin/bash #!/bin/bash
VERSION=2022-06-10
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
APP=rss-bridge APP=rss-bridge
VERSION=2022-01-20 DEPOT=https://github.com/RSS-Bridge/rss-bridge.git
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-3 DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1 IMAGE_SIZE=1
STEP="envinit prebuild makedeb" STEP="envinit prebuild makedeb"
envinit() { envinit() {
apt install -y --no-install-recommends git fakeroot dpkg apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends git fakeroot dpkg git
} }
prebuild(){ prebuild(){
GIT_VERSION=$1 [ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 -b ${GIT_VERSION} https://github.com/RSS-Bridge/rss-bridge.git /tmp/rss-bridge git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/${APP}
} }
makedeb(){ makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/rss-bridge ${PATH_DEB}/usr/share/ cp -fr /tmp/rss-bridge ${PATH_DEB}/usr/share/
@ -30,11 +33,11 @@ makedeb(){
cp ${PATH_DEB}/usr/share/rss-bridge/config.default.ini.php ${PATH_DEB}/etc/rss-bridge/config.ini.php cp ${PATH_DEB}/usr/share/rss-bridge/config.default.ini.php ${PATH_DEB}/etc/rss-bridge/config.ini.php
cp ${PATH_DEB}/usr/share/rss-bridge/whitelist.default.txt ${PATH_DEB}/etc/rss-bridge/whitelist.txt cp ${PATH_DEB}/usr/share/rss-bridge/whitelist.default.txt ${PATH_DEB}/etc/rss-bridge/whitelist.txt
ln -s /etc/rss-bridge/config.ini.php ${PATH_DEB}/usr/share/rss-bridge/config.ini.php ln -s /etc/${APP}/config.ini.php ${PATH_DEB}/usr/share/rss-bridge/config.ini.php
ln -s /etc/rss-bridge/whitelist.txt ${PATH_DEB}/usr/share/rss-bridge/whitelist.txt ln -s /etc/${APP}/whitelist.txt ${PATH_DEB}/usr/share/rss-bridge/whitelist.txt
mkdir -p ${PATH_DEB}/var/cache/rss-bridge/cache/ mkdir -p ${PATH_DEB}/var/cache/rss-bridge/cache/
rm ${PATH_DEB}/usr/share/rss-bridge/cache rm -r ${PATH_DEB}/usr/share/rss-bridge/cache
ln -s /var/cache/rss-bridge/cache/ ${PATH_DEB}/usr/share/rss-bridge/cache ln -s /var/cache/rss-bridge/cache/ ${PATH_DEB}/usr/share/rss-bridge/cache
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist

View file

@ -0,0 +1,55 @@
#!/bin/bash
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=rustdesk-server
VERSION=1.1.5
GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=5
DEPOT=https://github.com/rustdesk/rustdesk-server.git
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends wget fakeroot dpkg ca-certificates build-essential git
apt clean
}
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
apt-get dist-upgrade -y
apt install -y --no-install-recommends build-essential git wget fakeroot dpkg ca-certificates
cd /tmp
wget -qO - https://sh.rustup.rs > rustup
bash rustup -qy
apt clean
}
prebuild(){
[ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 ${DEPOT} /tmp/${APP}
}
build() {
cd /tmp/${APP}
source ~/.cargo/env
cargo build --release
}
makedeb(){
PATH_DEB=/tmp/src/rustdesk-server-hbbs
cp -fr //tmp/rustdesk-server/target/release/hbbs ${PATH_DEB}/usr/bin/
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
PATH_DEB=/tmp/src/rustdesk-server-hbbr
cp -fr //tmp/rustdesk-server/target/release/hbbr ${PATH_DEB}/usr/bin/
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,7 @@
Package: rustdesk-server-hbbr
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: rustdesk-server-hbbr

View file

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

View file

@ -0,0 +1,18 @@
[Unit]
Description=rustdesk-server-hbbs
After=network.target
[Service]
User=hbbr
Group=hbbr
ExecStart=/usr/bin/hbbr
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
WorkingDirectory=/var/lib//hbbr/
ReadWriteDirectories=/var/lib/hbbr/
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,7 @@
Package: rustdesk-server-hbbs
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: rustdesk-server-hbbs

View file

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

View file

@ -0,0 +1,18 @@
[Unit]
Description=rustdesk-server-hbbs
After=network.target
[Service]
User=hbbs
Group=hbbs
ExecStart=/usr/bin/hbbs
PrivateTmp=true
PrivateDevices=true
ProtectHome=true
ProtectSystem=strict
WorkingDirectory=/var/lib//hbbs/
ReadWriteDirectories=/var/lib/hbbs/
[Install]
WantedBy=multi-user.target

View file

@ -1,35 +0,0 @@
#!/bin/bash
VERSION=4.0.4
[ -e ./lib/function.sh ] && source ./lib/function.sh
APP=slimbookbattery
DEPOT=https://launchpad.net/~slimbook/+archive/ubuntu/slimbook/+sourcefiles/slimbookbattery/${VERSION}/slimbookbattery_${VERSION}.tar.gz
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=1
STEP="envinit prebuild build makedeb"
envinit() {
apt-get update
if [ $(dpkg -l | grep -e 'ii debhelper ' | wc -l) -eq 1 ];
then
apt-get dist-upgrade -y
else
apt install -y --no-install-recommends wget ca-certificates debhelper build-essential
fi
}
prebuild(){
wget -qO - ${DEPOT} | tar -zx -C /tmp/
}
build() {
cd /tmp/slimbookbattery-${VERSION}
dpkg-buildpackage --no-sign
}
makedeb(){
mv /tmp/slimbookbattery_${VERSION}_all.deb /tmp/dist
}

View file

@ -13,21 +13,22 @@ STEP="envinit prebuild makedeb"
# build # build
envinit() { envinit() {
apt-get update
apt-get dist-upgrade -y
apt-get install -y --no-install-recommends wget ca-certificates fakeroot dpkg git apt-get install -y --no-install-recommends wget ca-certificates fakeroot dpkg git
apt clean
} }
prebuild(){ prebuild(){
rm -fr /tmp/tt-rss [ -e /tmp/${APP} ] && rm -fr /tmp/${APP}
git clone --depth 1 https://git.tt-rss.org/fox/tt-rss.git /tmp/tt-rss git clone --depth 1 https://git.tt-rss.org/fox/tt-rss.git /tmp/${APP}
} }
build() { build() {
cd /tmp/tt-rss cd /tmp/${APP}
} }
makedeb(){ makedeb(){
GIT_VERSION=$1
DEB_VERSION=$2
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
cp -fr /tmp/tt-rss/* ${PATH_DEB}/usr/share/tt-rss/ cp -fr /tmp/tt-rss/* ${PATH_DEB}/usr/share/tt-rss/

View file

@ -3,7 +3,7 @@
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh
APP=wallabag APP=wallabag
VERSION=2.5.0 VERSION=2.5.1
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
@ -16,10 +16,11 @@ envinit() {
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt-get install -y --no-install-recommends wget ca-certificates git php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip fakeroot dpkg gpg make apt-get install -y --no-install-recommends wget ca-certificates git php-common php-xml php-json php-gd php-mbstring php-xml php-tidy php-curl php-tokenizer php-bcmath php-intl php-fpm unzip fakeroot dpkg gpg make
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
wget https://dl.yarnpkg.com/debian/pubkey.gpg -O - | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
apt-get update apt-get update
apt-get install yarn -y apt-get install -y yarn nodejs
} }
prebuild(){ prebuild(){

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.25.1 VERSION=1.25.2
[ -e ./lib/function.sh ] && source ./lib/function.sh [ -e ./lib/function.sh ] && source ./lib/function.sh