[arch-commits] Commit in toxcore/repos (8 files)
Andreas Radke
andyrtr at archlinux.org
Sun Jul 31 07:53:56 UTC 2016
Date: Sunday, July 31, 2016 @ 07:53:56
Author: andyrtr
Revision: 184702
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
toxcore/repos/staging-i686/
toxcore/repos/staging-i686/PKGBUILD
(from rev 184701, toxcore/trunk/PKGBUILD)
toxcore/repos/staging-i686/toxcore.conf
(from rev 184701, toxcore/trunk/toxcore.conf)
toxcore/repos/staging-i686/toxcore.install
(from rev 184701, toxcore/trunk/toxcore.install)
toxcore/repos/staging-x86_64/
toxcore/repos/staging-x86_64/PKGBUILD
(from rev 184701, toxcore/trunk/PKGBUILD)
toxcore/repos/staging-x86_64/toxcore.conf
(from rev 184701, toxcore/trunk/toxcore.conf)
toxcore/repos/staging-x86_64/toxcore.install
(from rev 184701, toxcore/trunk/toxcore.install)
--------------------------------+
staging-i686/PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++
staging-i686/toxcore.conf | 2 +
staging-i686/toxcore.install | 11 +++++++
staging-x86_64/PKGBUILD | 54 +++++++++++++++++++++++++++++++++++++++
staging-x86_64/toxcore.conf | 2 +
staging-x86_64/toxcore.install | 11 +++++++
6 files changed, 134 insertions(+)
Copied: toxcore/repos/staging-i686/PKGBUILD (from rev 184701, toxcore/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Håvard Pettersson <mail at haavard.me>
+# Contributor: naxuroqa <naxuroqa at gmail.com>
+# Contributor: Boohbah <boohbah at gmail.com>
+# Contributor: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=toxcore
+pkgver=3747
+_commit=c510e2407f8caa880f38d77386cebc52ae7c1360
+pkgrel=2
+pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
+arch=('i686' 'x86_64')
+url='https://tox.chat'
+license=('GPL3')
+depends=('systemd' 'libconfig' 'libsodium' 'libvpx' 'opus')
+makedepends=('git' 'check')
+conflicts=("tox")
+provides=("tox")
+backup=('etc/tox-bootstrapd.conf')
+install=$pkgname.install
+source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit"
+ 'toxcore.conf')
+sha512sums=('SKIP'
+ '71885e69f7b84955f6bdbf27b9e8196349cdd254b02b510433851bd218374d9c47aa7d3946dcc6a5cff6c8e705bc98d8a09de27039f60b8b088784cf8fa9d719')
+
+prepare() {
+ cd $pkgname
+ sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
+}
+
+build() {
+ cd $pkgname
+ autoreconf -if
+ ./configure \
+ --prefix=/usr \
+ --enable-daemon \
+ --disable-ntox \
+ --enable-tests
+ make
+}
+
+check() {
+ cd $pkgname
+# make check || warning "Tests failed" - onion test runs endless
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"
+}
Copied: toxcore/repos/staging-i686/toxcore.conf (from rev 184701, toxcore/trunk/toxcore.conf)
===================================================================
--- staging-i686/toxcore.conf (rev 0)
+++ staging-i686/toxcore.conf 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,2 @@
+u tox-bootstrapd - "Tox bootstrapd"
+g tox-bootstrapd -
\ No newline at end of file
Copied: toxcore/repos/staging-i686/toxcore.install (from rev 184701, toxcore/trunk/toxcore.install)
===================================================================
--- staging-i686/toxcore.install (rev 0)
+++ staging-i686/toxcore.install 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,11 @@
+post_install() {
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+}
+
+post_upgrade() {
+ (( $(vercmp $2 '3523-3') < 0 )) && (
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+ ) || true
+}
Copied: toxcore/repos/staging-x86_64/PKGBUILD (from rev 184701, toxcore/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Håvard Pettersson <mail at haavard.me>
+# Contributor: naxuroqa <naxuroqa at gmail.com>
+# Contributor: Boohbah <boohbah at gmail.com>
+# Contributor: Kevin MacMartin <prurigro at gmail dot com>
+
+pkgname=toxcore
+pkgver=3747
+_commit=c510e2407f8caa880f38d77386cebc52ae7c1360
+pkgrel=2
+pkgdesc='Secure, configuration-free, P2P Skype replacement backend'
+arch=('i686' 'x86_64')
+url='https://tox.chat'
+license=('GPL3')
+depends=('systemd' 'libconfig' 'libsodium' 'libvpx' 'opus')
+makedepends=('git' 'check')
+conflicts=("tox")
+provides=("tox")
+backup=('etc/tox-bootstrapd.conf')
+install=$pkgname.install
+source=("git+https://github.com/irungentoo/toxcore.git#commit=$_commit"
+ 'toxcore.conf')
+sha512sums=('SKIP'
+ '71885e69f7b84955f6bdbf27b9e8196349cdd254b02b510433851bd218374d9c47aa7d3946dcc6a5cff6c8e705bc98d8a09de27039f60b8b088784cf8fa9d719')
+
+prepare() {
+ cd $pkgname
+ sed -i "s|/usr/local|/usr|" other/bootstrap_daemon/tox-bootstrapd.service
+}
+
+build() {
+ cd $pkgname
+ autoreconf -if
+ ./configure \
+ --prefix=/usr \
+ --enable-daemon \
+ --disable-ntox \
+ --enable-tests
+ make
+}
+
+check() {
+ cd $pkgname
+# make check || warning "Tests failed" - onion test runs endless
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/toxcore.conf" "$pkgdir/usr/lib/sysusers.d/toxcore.conf"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.service "$pkgdir/usr/lib/systemd/system/tox-bootstrapd.service"
+ install -Dm644 ./other/bootstrap_daemon/tox-bootstrapd.conf "$pkgdir/etc/tox-bootstrapd.conf"
+}
Copied: toxcore/repos/staging-x86_64/toxcore.conf (from rev 184701, toxcore/trunk/toxcore.conf)
===================================================================
--- staging-x86_64/toxcore.conf (rev 0)
+++ staging-x86_64/toxcore.conf 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,2 @@
+u tox-bootstrapd - "Tox bootstrapd"
+g tox-bootstrapd -
\ No newline at end of file
Copied: toxcore/repos/staging-x86_64/toxcore.install (from rev 184701, toxcore/trunk/toxcore.install)
===================================================================
--- staging-x86_64/toxcore.install (rev 0)
+++ staging-x86_64/toxcore.install 2016-07-31 07:53:56 UTC (rev 184702)
@@ -0,0 +1,11 @@
+post_install() {
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+}
+
+post_upgrade() {
+ (( $(vercmp $2 '3523-3') < 0 )) && (
+ systemd-sysusers toxcore.conf
+ [[ -d var/lib/tox-bootstrapd ]] || install -dm 750 -o tox-bootstrapd -g tox-bootstrapd var/lib/tox-bootstrapd
+ ) || true
+}
More information about the arch-commits
mailing list