Add postfixadmin fix

This commit is contained in:
Thomas Legay 2023-01-30 16:32:01 +01:00
parent 8681875d98
commit e287405a25
11 changed files with 3 additions and 186 deletions

View File

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

View File

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

View File

@ -1,59 +0,0 @@
mautrix-whatsapp (0.8.1) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.8.0) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.7.2) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.7.1) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.7) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.6.1) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Jul 2022 21:08:37 +0200
mautrix-whatsapp (0.6.0) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Jul 2022 21:08:37 +0200
mautrix-whatsapp (0.5.0) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 03 Jul 2022 21:08:37 +0200
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

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

View File

@ -1,12 +0,0 @@
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
Package: mautrix-whatsapp
Architecture: all
Depends: libolm3
Description: mautrix-whatsapp bridge

View File

@ -1,29 +0,0 @@
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

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

View File

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

View File

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

View File

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

View File

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