summaryrefslogtreecommitdiff
path: root/net-libs/tox
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-08-11 00:33:31 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-08-11 00:33:31 +0100
commitff5dd7b3704b9e8f9f606d4929f95694ec84ddf3 (patch)
tree393b3bd8a65eb3ec464babab42da8d9ec88851c3 /net-libs/tox
parent4c05e04608db666140daaa94499f5f90521a2cc4 (diff)
cleanup
Diffstat (limited to 'net-libs/tox')
-rw-r--r--net-libs/tox/files/confd7
-rw-r--r--net-libs/tox/files/initd35
-rw-r--r--net-libs/tox/metadata.xml27
-rw-r--r--net-libs/tox/tox-9999.ebuild73
4 files changed, 0 insertions, 142 deletions
diff --git a/net-libs/tox/files/confd b/net-libs/tox/files/confd
deleted file mode 100644
index e4aac3ad..00000000
--- a/net-libs/tox/files/confd
+++ /dev/null
@@ -1,7 +0,0 @@
-# [--ipv4|--ipv6]
-cmdline=""
-
-# open node
-ip=""
-port=""
-key=""
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd
deleted file mode 100644
index 728cb6f5..00000000
--- a/net-libs/tox/files/initd
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-
-PIDFILE=/run/tox-dht-bootstrap.pid
-LOGDIR=/var/log/tox-dht-bootstrap
-RUNDIR=/var/lib/tox-dht-bootstrap
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting tox-dht-bootstrap daemon"
-
- [ -d "${LOGDIR}" ] || mkdir -p "${LOGDIR}"
- [ -d "${RUNDIR}" ] || mkdir -p "${RUNDIR}"
- chown -R nobody:nobody "${LOGDIR}" "${RUNDIR}"
-
- start-stop-daemon --start \
- --pidfile "${PIDFILE}" --make-pidfile --background \
- --stdout "${LOGDIR}/stdout" --stderr "${LOGDIR}/stderr" \
- --chdir "${RUNDIR}" \
- --user=nobody --group=nobody \
- --exec /usr/bin/DHT_bootstrap
-
- eend $?
-}
-
-stop() {
- ebegin "Stopping tox-dht-bootstrap daemon"
-
- start-stop-daemon --stop \
- --pidfile "${PIDFILE}"
-
- eend $?
-}
diff --git a/net-libs/tox/metadata.xml b/net-libs/tox/metadata.xml
deleted file mode 100644
index e35d0a76..00000000
--- a/net-libs/tox/metadata.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer>
- <email>holgersson@posteo.de</email>
- <name>holgersson</name>
- </maintainer>
- <use>
- <flag name="av">Adds support for audio and video.</flag>
- <flag name="logging">Enables logging, useful for debugging.
- (default log level: DEBUG)</flag>
- <flag name="log-info">Set log level to INFO (only choose one log-*,
- needs logging enabled)
- </flag>
- <flag name="log-debug">Set log level to DEBUG (only choose one log-*,
- needs logging enabled)
- </flag>
- <flag name="log-warn">Set log level to WARNING (only choose one log-*,
- needs logging enabled)
- </flag>
- <flag name="log-error">Set log level to ERROR (only choose one log-*,
- needs logging enabled)
- </flag>
- <flag name="ntox">Enable the testing nTox client.</flag>
- <flag name="daemon">Enable the DHT Bootstrap Daemon</flag>
- </use>
-</pkgmetadata>
diff --git a/net-libs/tox/tox-9999.ebuild b/net-libs/tox/tox-9999.ebuild
deleted file mode 100644
index 3b440eeb..00000000
--- a/net-libs/tox/tox-9999.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit autotools git-2
-
-DESCRIPTION="Encrypted P2P, messenging, and audio/video calling platform"
-HOMEPAGE="https://tox.im"
-SRC_URI=""
-EGIT_REPO_URI="https://github.com/irungentoo/toxcore"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS=""
-IUSE="+av daemon logging log-debug log-error log-info log-warn ntox static-libs test"
-
-RDEPEND="
- >=dev-libs/libsodium-1.0.0
- daemon? ( dev-libs/libconfig )
- av? ( media-libs/libvpx
- media-libs/opus )
- ntox? ( sys-libs/ncurses )"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
- test? ( dev-libs/check )"
-
-pkg_setup() {
- unset loglevel
-
- if use log-info || use log-debug || use log-warn || use log-error ; then
- if use !logging ; then
- ewarn "Logging disabled, but log level set,"
- ewarn "it will have no effect."
- else
- use log-info && loglevel=" INFO"
- use log-debug && loglevel="${loglevel} DEBUG"
- use log-warn && loglevel="${loglevel} WARNING"
- use log-error && loglevel="${loglevel} ERROR"
-
- if [[ $(echo "${loglevel}" | sed 's/[A-Z]//g') =~ " " ]] ; then
- ewarn "You have chosen multiple log levels,"
- ewarn "but only one can be applied. Picking the"
- ewarn "last one: ${loglevel##* }"
- fi
- fi
- fi
- [[ -z ${loglevel} ]] && loglevel=DEBUG
-}
-
-src_prepare() {
- epatch_user
- eautoreconf
-}
-
-src_configure() {
- econf \
- $(use_enable logging) \
- $(usex logging "--with-logger-level=${loglevel##* }" "") \
- $(use_enable av) \
- $(use_enable test tests) \
- $(use_enable ntox) \
- $(use_enable daemon) \
- $(use_enable static-libs static)
-}
-
-src_install() {
- default
- use daemon && { newinitd "${FILESDIR}"/initd tox-dht-daemon
- newconfd "${FILESDIR}"/confd tox-dht-daemon ; }
- prune_libtool_files
-}