summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergej Pupykin2017-08-15 21:32:46 +0300
committerSergej Pupykin2017-08-15 21:32:46 +0300
commiteae0aa483675e0c03542e2fbd5bedf43c1fb3197 (patch)
tree67b05cdf0ea9d1c3c3f6bcaa78a711a863a49cd9
parent59930f7e5d53f60be886a52ac860927a2e0b7cf0 (diff)
downloadaur-eae0aa483675e0c03542e2fbd5bedf43c1fb3197.tar.gz
upd
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD20
-rw-r--r--errbot.config.py20
-rw-r--r--errbot.service12
4 files changed, 57 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e459b97b21d..25221791baf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Aug 15 14:55:43 UTC 2017
+# Tue Aug 15 18:32:36 UTC 2017
pkgbase = errbot
pkgdesc = a chatbot. It allows you to start scripts interactively from your chatrooms for any reason: random humour, chatops, starting a build, monitoring commits, triggering alerts...
pkgver = 5.1.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/errbotio/errbot
arch = any
license = GPL
@@ -19,8 +19,15 @@ pkgbase = errbot
depends = python-bottle
depends = python-webtest
depends = python-sleekxmpp
+ depends = python-jinja
+ options = emptydirs
+ backup = etc/errbot/config.py
source = errbot-5.1.1.tar.gz::https://github.com/errbotio/errbot/archive/5.1.1.tar.gz
+ source = errbot.config.py
+ source = errbot.service
sha256sums = a705c3cd8a200c53e8b7209a471038767b281c496360d7495b5e6fe8747c4c36
+ sha256sums = 23ba61c4fb3ec173cd62452662c667ed0fab10cfe8ee576ce82598664f147896
+ sha256sums = e7e4b811c55183580ee821b5dfab99f39917f3c0d284fa7cad9ac086ab4808ec
pkgname = errbot
diff --git a/PKGBUILD b/PKGBUILD
index 2288113378b..9f960077ca3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,30 @@
pkgname=errbot
pkgver=5.1.1
-pkgrel=1
+pkgrel=2
pkgdesc="a chatbot. It allows you to start scripts interactively from your chatrooms for any reason: random humour, chatops, starting a build, monitoring commits, triggering alerts..."
arch=(any)
url="https://github.com/errbotio/errbot"
license=('GPL')
+options=('emptydirs')
+backup=('etc/errbot/config.py')
depends=('python-daemonize' 'python-dnspython3' 'python-pygments-markdown-lexer'
'python-ansi' 'python-markdown' 'python-yapsy' 'python-colorlog'
'python-pyopenssl' 'python-rocket-errbot' 'python-bottle' 'python-webtest'
- 'python-sleekxmpp')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/errbotio/errbot/archive/$pkgver.tar.gz")
-sha256sums=('a705c3cd8a200c53e8b7209a471038767b281c496360d7495b5e6fe8747c4c36')
+ 'python-sleekxmpp' 'python-jinja')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/errbotio/errbot/archive/$pkgver.tar.gz"
+ "errbot.config.py"
+ "errbot.service")
+sha256sums=('a705c3cd8a200c53e8b7209a471038767b281c496360d7495b5e6fe8747c4c36'
+ '23ba61c4fb3ec173cd62452662c667ed0fab10cfe8ee576ce82598664f147896'
+ 'e7e4b811c55183580ee821b5dfab99f39917f3c0d284fa7cad9ac086ab4808ec')
package() {
cd "$pkgname-$pkgver"
python3 setup.py install --root="$pkgdir/"
+
+ install -Dm0644 "$srcdir"/errbot.service "$pkgdir"/usr/lib/systemd/system/errbot.service
+ install -Dm0600 -o jabber -g jabber \
+ "$srcdir"/errbot.config.py "$pkgdir"/etc/errbot/config.py
+ install -dm0700 -o jabber -g jabber \
+ "$pkgdir"/var/lib/errbot/{data,plugins}
}
diff --git a/errbot.config.py b/errbot.config.py
new file mode 100644
index 00000000000..c42d4d30998
--- /dev/null
+++ b/errbot.config.py
@@ -0,0 +1,20 @@
+import logging
+
+BACKEND = 'XMPP'
+
+BOT_DATA_DIR = r'/var/lib/errbot/data'
+BOT_EXTRA_PLUGIN_DIR = '/var/lib/errbot/plugins'
+
+#BOT_LOG_FILE = r'/var/log/errbot/errbot.log'
+BOT_LOG_FILE = None
+BOT_LOG_LEVEL = logging.WARNING
+
+BOT_ADMINS = ('user1@example.com',
+ 'user2@example.com')
+
+BOT_IDENTITY = {
+ 'username': 'chatbot@example.com/errbot',
+ 'password': 'PASSWORD' }
+
+CHATROOM_PRESENCE = ('room1@conference.example.com',
+ 'room2@conference.example.com')
diff --git a/errbot.service b/errbot.service
new file mode 100644
index 00000000000..c264769ee20
--- /dev/null
+++ b/errbot.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=ErrBot
+After=network.target
+
+[Service]
+User=jabber
+Type=simple
+ExecStart=/usr/bin/errbot
+WorkingDirectory=/etc/errbot
+
+[Install]
+WantedBy=multi-user.target