First complete

This commit is contained in:
moparisthebest
2016-11-05 02:18:08 -04:00
parent 0887a41178
commit fd2414b131
82 changed files with 1689 additions and 6 deletions

View File

@@ -0,0 +1,36 @@
# Generated by mksrcinfo v8
# Fri Nov 4 23:58:27 UTC 2016
pkgbase = prosody-hg-stable
pkgdesc = Lightweight and extensible Jabber/XMPP server written in Lua (stable build from 0.10-branch)
pkgver = 0.10.r7036+.779a9ef6b4fd+
pkgrel = 1
url = https://prosody.im/
install = prosody.install
arch = i686
arch = x86_64
arch = armv7h
license = MIT
makedepends = mercurial
depends = lua51
depends = lua51-socket
depends = lua51-expat
depends = lua51-filesystem
depends = libidn
depends = openssl
optdepends = lua51-sec: TLS encryption support
optdepends = lua51-bitop: websocket support
optdepends = lua51-event: libevent support
provides = prosody
conflicts = prosody
backup = etc/prosody/prosody.cfg.lua
source = prosody-hg::hg+https://hg.prosody.im/0.10
source = prosody.tmpfile.d
source = sysuser.conf
source = prosody.service
md5sums = SKIP
md5sums = dc8405a6a235b83dc8a0dcdf7b71cbaa
md5sums = 385ca73d9f6046f3636266ce9bf38797
md5sums = e74045f27cb60908d535969906781f75
pkgname = prosody-hg-stable

View File

@@ -0,0 +1,28 @@
post_install() {
systemd-sysusers prosody.conf
systemd-tmpfiles --create prosody.conf
chown prosody:jabber var/lib/prosody
[ -d var/log/prosody ] && chown prosody:jabber var/log/prosody
echo ">> Documentation: http://wiki.archlinux.org/index.php/Prosody"
}
post_upgrade() {
post_install $1
}
post_remove() {
paths=(/etc/prosody /var/lib/prosody /var/log/prosody
/var/log/old/prosody)
first=true
for path in ${paths[@]}; do
if [ -d $path ]; then
if $first; then
first=false
echo "==> Leftover Paths:"
fi
echo "==> $path"
fi
done
}

View File

@@ -0,0 +1,9 @@
/var/log/prosody/prosody.log /var/log/prosody/prosody.err {
# olddir /var/log/old/prosody
create 644 prosody prosody
sharedscripts
missingok
postrotate
/bin/kill -HUP `cat /run/prosody/prosody.pid 2> /dev/null` 2> /dev/null || true
endscript
}

View File

@@ -0,0 +1,13 @@
[Unit]
Description=XMPP (Jabber) Server
After=network.target
[Service]
Type=forking
PIDFile=/run/prosody/prosody.pid
ExecStart=/usr/bin/prosodyctl start
ExecStop=/usr/bin/prosodyctl stop
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1 @@
d /run/prosody 0755 prosody jabber -

View File

@@ -0,0 +1,3 @@
g jabber 17 - -
u prosody - "Prosody XMPP Server" /var/lib/prosody
m prosody jabber