Compare commits
3 commits
611912be6e
...
b962501d08
Author | SHA1 | Date | |
---|---|---|---|
b962501d08 | |||
88350ae8de | |||
1e5df8229f |
2
makedeb
2
makedeb
|
@ -1 +1 @@
|
|||
Subproject commit 985c0e7a06c90a380f76825f6aedbcf2648629f7
|
||||
Subproject commit 932f8b695e10f7b3742f528a619e26808a808c46
|
50
packages/git/matrix-media-repo/DEBBUILD
Normal file
50
packages/git/matrix-media-repo/DEBBUILD
Normal file
|
@ -0,0 +1,50 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
pkgname="matrix-media-repo"
|
||||
arch="amd64"
|
||||
pkgrel=1
|
||||
pkgver=1.3.3.56.gcc7e9e5
|
||||
pkgdesc="matrix-media-repo (aka MMR) is a highly customizable multi-domain media repository for Matrix."
|
||||
url="https://github.com/t2bot/matrix-media-repo"
|
||||
maintainer="Leafee98 <me@leafee98.com>"
|
||||
|
||||
source=(
|
||||
"matrix-media-repo::git+https://github.com/t2bot/matrix-media-repo.git#branch=main"
|
||||
"matrix-media-repo.service::materials/matrix-media-repo.service"
|
||||
)
|
||||
|
||||
function pkgver {
|
||||
git -C "${srcdir}/matrix-media-repo" describe --tags --long | sed -e 's/^v//; s/-/./g'
|
||||
}
|
||||
|
||||
function build {
|
||||
(
|
||||
cd "${srcdir}/matrix-media-repo"
|
||||
bash ./build.sh
|
||||
)
|
||||
}
|
||||
|
||||
function package {
|
||||
for f in ${srcdir}/matrix-media-repo/bin/*
|
||||
do
|
||||
install -Dm755 -t "${pkgdir}/usr/lib/matrix-media-repo/" "$f";
|
||||
done
|
||||
|
||||
install -Dm644 "${srcdir}/matrix-media-repo/config.sample.yaml" "${pkgdir}/etc/matrix-media-repo/config.sample.yaml"
|
||||
install -Dm755 "${srcdir}/matrix-media-repo.service" "${pkgdir}/usr/lib/systemd/system/matrix-media-repo.service"
|
||||
}
|
||||
|
||||
function debian_postinst {
|
||||
cat << 'EOF'
|
||||
#!/usr/bin/env bash
|
||||
service_name="matrix-media-repo.service"
|
||||
|
||||
adduser --system matrix-media-repo
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
if systemctl is-active --quiet ${service_name} ; then
|
||||
systemctl restart ${service_name}
|
||||
fi
|
||||
EOF
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Matrix Media Repo
|
||||
After=network.target
|
||||
After=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=matrix-media-repo
|
||||
Group=matrix-media-repo
|
||||
ExecStart=/usr/lib/matrix-media-repo/media_repo -config /etc/matrix-media-repo/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
LimitNOFILE=65535
|
||||
MemoryMax=1536M
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -3,7 +3,7 @@
|
|||
pkgname="dendrite"
|
||||
arch="amd64"
|
||||
pkgrel=1
|
||||
pkgver="0.13.5"
|
||||
pkgver="0.13.6"
|
||||
pkgdesc="Dendrite is a second-generation Matrix homeserver written in Go!"
|
||||
url="https://github.com/matrix-org/dendrite"
|
||||
maintainer="Leafee98 <me@leafee98.com>"
|
||||
|
|
Loading…
Reference in a new issue