diff --git a/srcpkgs/toxcore-git/files/toxbootstrapd/run b/srcpkgs/toxcore-git/files/toxbootstrapd/run new file mode 100644 index 0000000000..912467f3fe --- /dev/null +++ b/srcpkgs/toxcore-git/files/toxbootstrapd/run @@ -0,0 +1,3 @@ +#!/bin/sh +cd /etc/toxbootstrapd +exec chpst -u toxbootstrapd DHT_bootstrap diff --git a/srcpkgs/toxcore-git/template b/srcpkgs/toxcore-git/template index c697a992f0..c3a95f9645 100644 --- a/srcpkgs/toxcore-git/template +++ b/srcpkgs/toxcore-git/template @@ -1,8 +1,8 @@ # Template file for 'toxcore-git' pkgname="toxcore-git" -version="20160118" +version="20160131" revision=1 -_commithash="b9ef24875ce1d9bf5f04f0164ae95f729330a295" +_commithash="94cc8b11ff473064526737936f64b6f9a19c239d" short_desc="Encrypted peer-to-peer instant messenger protocol library" maintainer="Spencer Hill " license="GPL-3" @@ -10,14 +10,22 @@ homepage="https://tox.chat" makedepends="libsodium-devel opus-devel libvpx-devel" hostmakedepends="autoconf automake libtool pkg-config" distfiles="https://github.com/irungentoo/toxcore/archive/${_commithash}.tar.gz" -checksum=1c3e4824ac273878e1624c766dfb6119623086306f96f609cb73d3abed3321c2 +checksum=4df62a3488429f0b1adbf24312dc39eb140bae88774124072400930967888d19 wrksrc="toxcore-${_commithash}" build_style="gnu-configure" +configure_args="--enable-daemon" +system_accounts="toxbootstrapd" +toxbootstrapd_homedir="/etc/toxbootstrapd" +make_dirs="/etc/toxbootstrapd 0700 toxbootstrapd toxbootstrapd" pre_configure() { ./autogen.sh } +post_install() { + vsv toxbootstrapd +} + # Development package toxcore-devel-git_package() { short_desc+=" - development files" @@ -28,4 +36,3 @@ toxcore-devel-git_package() { vmove usr/lib/pkgconfig } } -