aboutsummaryrefslogtreecommitdiff
path: root/mautrix-whatsapp
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-10-07 11:02:02 -0500
committerSlack Coder <slackcoder@server.ky>2024-10-07 16:03:44 -0500
commitc58107ec28238f73086e2af313e323a0d51206f2 (patch)
treeeebf93bea9fc27a428a8dfdd2af8e49f3c4ba45c /mautrix-whatsapp
parent900b237ab3d283e3428d40a6a7cec91eff9700d6 (diff)
downloadslackbuilds-c58107ec28238f73086e2af313e323a0d51206f2.tar.xz
mautrix-whatsapp: bump v0.10.9
Diffstat (limited to 'mautrix-whatsapp')
-rw-r--r--mautrix-whatsapp/doinst.sh16
-rw-r--r--mautrix-whatsapp/mautrix-whatsapp.SlackBuild7
-rw-r--r--mautrix-whatsapp/mautrix-whatsapp.info8
3 files changed, 22 insertions, 9 deletions
diff --git a/mautrix-whatsapp/doinst.sh b/mautrix-whatsapp/doinst.sh
index 792310f..743e861 100644
--- a/mautrix-whatsapp/doinst.sh
+++ b/mautrix-whatsapp/doinst.sh
@@ -11,6 +11,18 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+
if ! getent passwd mautrix-whatsapp >/dev/null; then
useradd mautrix-whatsapp \
--comment 'Mautrix whatsapp matrix bridge' \
@@ -20,8 +32,8 @@ if ! getent passwd mautrix-whatsapp >/dev/null; then
|| true
fi
-config etc/rc.d/rc.mautrix-whatsapp.new
-config etc/mautrix-whatsapp/config.yaml.new
+preserve_perms etc/rc.d/rc.mautrix-whatsapp.new
+preserve_perms etc/mautrix-whatsapp/config.yaml.new
chown root:mautrix-whatsapp etc/mautrix-whatsapp
chown mautrix-whatsapp:mautrix-whatsapp var/lib/mautrix-whatsapp
diff --git a/mautrix-whatsapp/mautrix-whatsapp.SlackBuild b/mautrix-whatsapp/mautrix-whatsapp.SlackBuild
index c6d994f..bc76344 100644
--- a/mautrix-whatsapp/mautrix-whatsapp.SlackBuild
+++ b/mautrix-whatsapp/mautrix-whatsapp.SlackBuild
@@ -3,7 +3,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mautrix-whatsapp
-VERSION=${VERSION:-0.10.5}
+VERSION=${VERSION:-0.10.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_slackcoder}
PKGTYPE=${PKGTYPE:-txz}
@@ -67,10 +67,11 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
mkdir -p "$PKG/etc/$PRGNAM"
-chmod -R u=rwX,g=rwX,o= "$PKG/etc/$PRGNAM"
+cp "$CWD/files/config.yaml.new" "$PKG/etc/$PRGNAM/"
+chmod -R u=rwX,g=rX,o= "$PKG/etc/$PRGNAM"
mkdir -p "$PKG/etc/rc.d"
-cp -R "$CWD/files/rc.$PRGNAM.new" "$PKG/etc/rc.d/"
+cp "$CWD/files/rc.$PRGNAM.new" "$PKG/etc/rc.d/"
mkdir -p "$PKG/var/lib/$PRGNAM"
chmod u=rwX,g=rX,o= "$PKG/var/lib/$PRGNAM"
diff --git a/mautrix-whatsapp/mautrix-whatsapp.info b/mautrix-whatsapp/mautrix-whatsapp.info
index 2bc7360..77bb7b7 100644
--- a/mautrix-whatsapp/mautrix-whatsapp.info
+++ b/mautrix-whatsapp/mautrix-whatsapp.info
@@ -1,10 +1,10 @@
PRGNAM="mautrix-whatsapp"
-VERSION="0.10.5"
+VERSION="0.10.9"
HOMEPAGE="https://github.com/mautrix/whatsapp"
-DOWNLOAD="https://github.com/mautrix/whatsapp/archive/refs/tags/v0.10.5.tar.gz"
-MD5SUM="b49f34cafecc56653ff402b7bafd8816"
+DOWNLOAD="https://github.com/mautrix/whatsapp/archive/refs/tags/v0.10.9.tar.gz"
+MD5SUM="aec9954bb6d41f9213e994fc2ddab4d0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="olm postgresql"
+REQUIRES="google-go-lang olm postgresql"
MAINTAINER="Slack Coder"
EMAIL="slackcoder@server.ky"