From e287405a258916779ac251267f17c481bf3424c0 Mon Sep 17 00:00:00 2001 From: Thomas Legay Date: Mon, 30 Jan 2023 16:32:01 +0100 Subject: [PATCH] Add postfixadmin fix --- ressources/postfixadmin/README.MD | 12 +--- ressources/postfixadmin/debian/README | 6 -- ressources/postfixadmin/debian/changelog | 59 ------------------- ressources/postfixadmin/debian/conffiles | 1 - ressources/postfixadmin/debian/control | 12 ---- ressources/postfixadmin/debian/copyright | 29 --------- .../debian/mautrix-whatsapp.install | 2 - .../debian/mautrix-whatsapp.service | 35 ----------- ressources/postfixadmin/debian/postinst | 4 -- ressources/postfixadmin/debian/rules | 28 --------- ressources/postfixadmin/debian/source/format | 1 - 11 files changed, 3 insertions(+), 186 deletions(-) delete mode 100644 ressources/postfixadmin/debian/README delete mode 100644 ressources/postfixadmin/debian/changelog delete mode 100644 ressources/postfixadmin/debian/conffiles delete mode 100644 ressources/postfixadmin/debian/control delete mode 100644 ressources/postfixadmin/debian/copyright delete mode 100644 ressources/postfixadmin/debian/mautrix-whatsapp.install delete mode 100644 ressources/postfixadmin/debian/mautrix-whatsapp.service delete mode 100755 ressources/postfixadmin/debian/postinst delete mode 100755 ressources/postfixadmin/debian/rules delete mode 100644 ressources/postfixadmin/debian/source/format diff --git a/ressources/postfixadmin/README.MD b/ressources/postfixadmin/README.MD index 8a75bd4..6598ce2 100644 --- a/ressources/postfixadmin/README.MD +++ b/ressources/postfixadmin/README.MD @@ -1,9 +1,7 @@ -#### mautrix-whatsapp +#### postfixadmin ##### Information -Site : https://docs.mau.fi/bridges/go/whatsapp/index.html - -Source : https://github.com/mautrix/whatsapp +Source : https://github.com/postfixadmin/postfixadmin ##### Install @@ -11,10 +9,6 @@ Source : https://github.com/mautrix/whatsapp 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 +apt-get install -y postfixadmin ``` diff --git a/ressources/postfixadmin/debian/README b/ressources/postfixadmin/debian/README deleted file mode 100644 index 05ef0e4..0000000 --- a/ressources/postfixadmin/debian/README +++ /dev/null @@ -1,6 +0,0 @@ -The Debian Package vnctv ----------------------------- - -Comments regarding the Package - - -- Thomas Leagy Sun, 03 Apr 2022 12:36:14 +0200 diff --git a/ressources/postfixadmin/debian/changelog b/ressources/postfixadmin/debian/changelog deleted file mode 100644 index d6e4eb7..0000000 --- a/ressources/postfixadmin/debian/changelog +++ /dev/null @@ -1,59 +0,0 @@ -mautrix-whatsapp (0.8.1) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 - -mautrix-whatsapp (0.8.0) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 - -mautrix-whatsapp (0.7.2) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 - -mautrix-whatsapp (0.7.1) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 - -mautrix-whatsapp (0.7) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Sep 2022 21:08:37 +0200 - -mautrix-whatsapp (0.6.1) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Jul 2022 21:08:37 +0200 - -mautrix-whatsapp (0.6.0) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 Jul 2022 21:08:37 +0200 - -mautrix-whatsapp (0.5.0) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 03 Jul 2022 21:08:37 +0200 - -mautrix-whatsapp (0.4.0) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 17 May 2022 21:08:37 +0200 - -mautrix-whatsapp (0.3.1) UNRELEASED; urgency=medium - - * First deb version - - -- Thomas Legay Mon, 18 Apr 2022 00:26:37 +0200 diff --git a/ressources/postfixadmin/debian/conffiles b/ressources/postfixadmin/debian/conffiles deleted file mode 100644 index 6dd2818..0000000 --- a/ressources/postfixadmin/debian/conffiles +++ /dev/null @@ -1 +0,0 @@ -/etc/mautrix-whatsapp/config.yaml diff --git a/ressources/postfixadmin/debian/control b/ressources/postfixadmin/debian/control deleted file mode 100644 index 0305f32..0000000 --- a/ressources/postfixadmin/debian/control +++ /dev/null @@ -1,12 +0,0 @@ -Source: mautrix-whatsapp -Section: base -Priority: optional -Maintainer: Thomas Legay -Build-Depends: debhelper-compat (= 13), golang (>= 16) -Standards-Version: 3.9.8 - - -Package: mautrix-whatsapp -Architecture: all -Depends: libolm3 -Description: mautrix-whatsapp bridge diff --git a/ressources/postfixadmin/debian/copyright b/ressources/postfixadmin/debian/copyright deleted file mode 100644 index 3a3b409..0000000 --- a/ressources/postfixadmin/debian/copyright +++ /dev/null @@ -1,29 +0,0 @@ -Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: mautrix-whatsapp -Upstream-Contact: -Source: - -Files: * -Copyright: 2022 tulir -License: GPL-3.0+ - -Files: debian/* -Copyright: 2022 Thomas Legay -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 . - . - On Debian systems, the complete text of the GNU General - Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/ressources/postfixadmin/debian/mautrix-whatsapp.install b/ressources/postfixadmin/debian/mautrix-whatsapp.install deleted file mode 100644 index 6ccbe91..0000000 --- a/ressources/postfixadmin/debian/mautrix-whatsapp.install +++ /dev/null @@ -1,2 +0,0 @@ -mautrix-whatsapp usr/lib/mautrix-whatsapp/ -config.yaml etc/mautrix-whatsapp/ diff --git a/ressources/postfixadmin/debian/mautrix-whatsapp.service b/ressources/postfixadmin/debian/mautrix-whatsapp.service deleted file mode 100644 index 2f1c8ed..0000000 --- a/ressources/postfixadmin/debian/mautrix-whatsapp.service +++ /dev/null @@ -1,35 +0,0 @@ -[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 diff --git a/ressources/postfixadmin/debian/postinst b/ressources/postfixadmin/debian/postinst deleted file mode 100755 index 9aa9e5b..0000000 --- a/ressources/postfixadmin/debian/postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/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/ diff --git a/ressources/postfixadmin/debian/rules b/ressources/postfixadmin/debian/rules deleted file mode 100755 index f8114e7..0000000 --- a/ressources/postfixadmin/debian/rules +++ /dev/null @@ -1,28 +0,0 @@ -#!/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 diff --git a/ressources/postfixadmin/debian/source/format b/ressources/postfixadmin/debian/source/format deleted file mode 100644 index 89ae9db..0000000 --- a/ressources/postfixadmin/debian/source/format +++ /dev/null @@ -1 +0,0 @@ -3.0 (native)