First complete
This commit is contained in:
36
src/prosody-hg-stable/.SRCINFO
Normal file
36
src/prosody-hg-stable/.SRCINFO
Normal 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
|
||||
|
28
src/prosody-hg-stable/prosody.install
Normal file
28
src/prosody-hg-stable/prosody.install
Normal 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
|
||||
}
|
9
src/prosody-hg-stable/prosody.logrotated
Normal file
9
src/prosody-hg-stable/prosody.logrotated
Normal 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
|
||||
}
|
13
src/prosody-hg-stable/prosody.service
Normal file
13
src/prosody-hg-stable/prosody.service
Normal 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
|
||||
|
1
src/prosody-hg-stable/prosody.tmpfile.d
Normal file
1
src/prosody-hg-stable/prosody.tmpfile.d
Normal file
@@ -0,0 +1 @@
|
||||
d /run/prosody 0755 prosody jabber -
|
3
src/prosody-hg-stable/sysuser.conf
Normal file
3
src/prosody-hg-stable/sysuser.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
g jabber 17 - -
|
||||
u prosody - "Prosody XMPP Server" /var/lib/prosody
|
||||
m prosody jabber
|
Reference in New Issue
Block a user