dot

packages and services management
Log | Files | Refs | README

commit 6813526c74dc309766f00a42e6a107348081b767
parent 457100f596d1fa7caa96b5eacab7912d1d8aa3e1
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Fri, 21 Jul 2017 13:28:57 +0200

working tox library

Diffstat:
MDOWNLOAD | 14+++++++-------
Alibopus/build | 6++++++
Mlibtox/build | 14++++++++++----
Alibvpx/build | 6++++++
Mlibvpx/url | 2+-
Mratox/build | 4++--
Astunnel/stunnel.conf | 11+++++++++++
7 files changed, 43 insertions(+), 14 deletions(-)

diff --git a/DOWNLOAD b/DOWNLOAD @@ -4,18 +4,18 @@ read url < "$ETC/$1/url" [ -e "$SRC/$1" ] && exit 1 -mkdir -p "$SRC/$1" && cd "$SRC/$1" +mkdir -p -- "$SRC/$1" && cd -- "$SRC/$1" -wget -qO - "$url" | case "$url" in +wget -O - -- "$url" | case "$url" in (*.tar.bz2 | *.tbz2) bunzip2 -d ;; (*.tar.gz | *.tgz ) gzip -d ;; (*.tar.xz | *.txz ) xz -d ;; (*.tar ) tee ;; -esac | tar -xvf - +esac | tar -xf - -if [ $(ls "$SRC/$1" | wc -l) = 1 ] +if [ $(ls -- "$SRC/$1" | wc -l) = 1 ] then - dir=$(ls "$SRC/$1") - find "$SRC/$1" -mindepth 2 -maxdepth 2 | xargs -I % mv % "$SRC/$1" - rmdir "$SRC/$1/$dir" + dir=$(ls -- "$SRC/$1") + find -- "$SRC/$1" -mindepth 2 -maxdepth 2 | xargs -I % mv -- % "$SRC/$1" + rmdir -- "$SRC/$1/$dir" fi diff --git a/libopus/build b/libopus/build @@ -0,0 +1,6 @@ +./configure --prefix="$PREFIX" + +case "$(uname)" in +(*BSD ) gmake install ;; +(Linux) make install ;; +esac diff --git a/libtox/build b/libtox/build @@ -1,8 +1,14 @@ [ ! -f configure ] && ./autogen.sh + +export OPUS_CFLAGS="-I$OPT/libopus/include/opus" +export VPX_CFLAGS="-I$OPT/libvpx/include" +export OPUS_LIBS="-L$OPT/libopus/lib" +export VPX_LIBS="-L$OPT/libvpx/lib" + ./configure \ - --prefix="$PREFIX" \ - --enable-nacl \ - --with-nacl-headers="$OPT/lib-nacl/include/$(uname -m)" \ - --with-nacl-libs="$OPT/lib-nacl/lib/$(uname -m)" + --prefix="$PREFIX" \ + --enable-nacl \ + --with-nacl-headers="$OPT/libnacl/include/$(uname -m)" \ + --with-nacl-libs="$OPT/libnacl/lib/$(uname -m)" make install diff --git a/libvpx/build b/libvpx/build @@ -0,0 +1,6 @@ +./configure --prefix="$PREFIX" + +case "$(uname)" in +(*BSD ) gmake install ;; +(Linux) make install ;; +esac diff --git a/libvpx/url b/libvpx/url @@ -1 +1 @@ -http://chromium.googlesource.com/webm/libvpx/+archive/master.tar.gz +http://github.com/webmproject/libvpx/archive/v1.6.1.tar.gz diff --git a/ratox/build b/ratox/build @@ -1,3 +1,3 @@ make \ - CFLAGS="-I$OPT/lib-tox/include" \ - LDFLAGS="-L$OPT/lib-tox/lib" + CFLAGS="-I$OPT/libtox/include -I$OPT/libvpx/include" \ + LDFLAGS="-L$OPT/libtox/lib -L$OPT/libvpx/lib" diff --git a/stunnel/stunnel.conf b/stunnel/stunnel.conf @@ -0,0 +1,11 @@ +client = yes + +options = NO_SSLv2 +options = NO_SSLv3 + + +[cyberia] + +sslVersion = TLSv1 +connect = irc.cyberia.is:6697 +accept = 127.0.0.1:6667