Add spectrum2 and biboumi and deps

This commit is contained in:
moparisthebest
2016-11-06 00:52:55 -04:00
parent c1a9c881e0
commit 48040645c9
18 changed files with 634 additions and 0 deletions

28
src/biboumi/.SRCINFO Normal file
View File

@@ -0,0 +1,28 @@
# Generated by mksrcinfo v8
# Wed Aug 17 12:51:00 UTC 2016
pkgbase = biboumi
pkgdesc = XMPP gateway to IRC
pkgver = 3.0
pkgrel = 3
url = https://biboumi.louiz.org/
install = biboumi.install
arch = i686
arch = x86_64
arch = armv7h
arch = aarch64
license = ZLIB
makedepends = cmake
makedepends = pandoc
depends = expat
depends = libidn
depends = c-ares
depends = botan
depends = litesql-git
backup = etc/biboumi/biboumi.cfg
source = https://git.louiz.org/biboumi/snapshot/biboumi-3.0.tar.xz
source = sysuser.conf
md5sums = a012516d2a2ba600d16351c8b93f2690
md5sums = 07c92af3248861ce94d361e98cfb7f5c
pkgname = biboumi

44
src/biboumi/PKGBUILD Normal file
View File

@@ -0,0 +1,44 @@
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
pkgname=biboumi
pkgver=3.0
pkgrel=3
pkgdesc="XMPP gateway to IRC"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://biboumi.louiz.org/"
license=('ZLIB')
depends=('expat' 'libidn' 'c-ares' 'botan' 'litesql-git')
makedepends=('cmake' 'pandoc')
backup=("etc/$pkgname/$pkgname.cfg")
install="$pkgname.install"
source=("https://git.louiz.org/biboumi/snapshot/$pkgname-$pkgver.tar.xz"
'sysuser.conf')
md5sums=('a012516d2a2ba600d16351c8b93f2690'
'07c92af3248861ce94d361e98cfb7f5c')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p build
}
build() {
cd "$srcdir/$pkgname-$pkgver/build"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSERVICE_USER=biboumi \
-DSERVICE_GROUP=jabber
make biboumi
}
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="$pkgdir/" install
cd "$srcdir/$pkgname-$pkgver"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 doc/biboumi.1.rst "$pkgdir/usr/share/doc/$pkgname/$pkgname.rst"
cd "$srcdir"
install -Dm644 sysuser.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
}

View File

@@ -0,0 +1,13 @@
post_install() {
systemd-sysusers biboumi.conf
install -dm750 -o biboumi -g jabber var/lib/biboumi
install -dm750 -o biboumi -g jabber var/log/biboumi
}
post_upgrade() {
post_install $1
}
post_remove() {
systemd-sysusers biboumi.conf
}

3
src/biboumi/sysuser.conf Normal file
View File

@@ -0,0 +1,3 @@
g jabber 17 - -
u biboumi - "Biboumi, XMPP gateway to IRC" /var/lib/biboumi
m biboumi jabber