mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Repocopy tox to tox12, to be used by uTox
- Upgrade tox to v0.2.0 Release notes at https://github.com/TokTok/c-toxcore/releases/tag/v0.2.0 PR: 226310 Differential Revision: https://reviews.freebsd.org/D14558
This commit is contained in:
parent
8c0b4facc2
commit
e09ec5e4bc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463827
12 changed files with 194 additions and 54 deletions
|
@ -195,6 +195,7 @@
|
|||
SUBDIR += tkabber
|
||||
SUBDIR += tkabber-plugins
|
||||
SUBDIR += tox
|
||||
SUBDIR += tox12
|
||||
SUBDIR += toxic
|
||||
SUBDIR += turpial
|
||||
SUBDIR += twirssi
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= toxcore
|
||||
PORTVERSION= 0.1.11
|
||||
PORTVERSION= 0.2.0
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net-im net-p2p
|
||||
|
||||
|
@ -15,13 +14,15 @@ LICENSE= GPLv3
|
|||
|
||||
BUILD_DEPENDS= checkmk:devel/check
|
||||
LIB_DEPENDS= libvpx.so:multimedia/libvpx \
|
||||
libmsgpackc.so:devel/msgpack \
|
||||
libsndfile.so:audio/libsndfile \
|
||||
libportaudio.so:audio/portaudio \
|
||||
libsodium.so:security/libsodium \
|
||||
libopencv_core.so:graphics/opencv-core \
|
||||
libopus.so:audio/opus \
|
||||
libconfig.so:devel/libconfig
|
||||
TEST_DEPENDS= ${LOCALBASE}/lib/libmsgpackc.so:devel/msgpack \
|
||||
${LOCALBASE}/lib/libportaudio.so:audio/portaudio
|
||||
|
||||
CONFLICTS= toxcore-legacy-0.1.*
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= TokTok
|
||||
|
@ -29,7 +30,7 @@ GH_PROJECT= c-toxcore
|
|||
|
||||
USES= cmake compiler:c11 libtool pathfix pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
PLIST_SUB= VER=${PORTVERSION:C/0.//}.0 SO=1
|
||||
PLIST_SUB= VER=${PORTVERSION:C/0.//}.0 SO=2
|
||||
|
||||
OPTIONS_DEFINE= DAEMON
|
||||
OPTIONS_SUB= yes
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1514391164
|
||||
SHA256 (TokTok-c-toxcore-v0.1.11_GH0.tar.gz) = 85b6184a160c343616e3253a0bf728cfe1588e73b6d6f8772aa1e44061e41b10
|
||||
SIZE (TokTok-c-toxcore-v0.1.11_GH0.tar.gz) = 458597
|
||||
TIMESTAMP = 1519933444
|
||||
SHA256 (TokTok-c-toxcore-v0.2.0_GH0.tar.gz) = af1efe3b260963bef6497114d4fc0f217a7c4e4126b7b281aab8c316fddfefa9
|
||||
SIZE (TokTok-c-toxcore-v0.2.0_GH0.tar.gz) = 462009
|
||||
|
|
|
@ -2,58 +2,12 @@
|
|||
%%DAEMON%%@sample etc/tox-bootstrapd.conf.sample
|
||||
include/tox/tox.h
|
||||
include/tox/toxav.h
|
||||
include/tox/toxdns.h
|
||||
include/tox/toxencryptsave.h
|
||||
lib/libtoxav.a
|
||||
lib/libtoxav.so
|
||||
lib/libtoxav.so.%%SO%%
|
||||
lib/libtoxav.so.%%VER%%
|
||||
lib/libtoxcore.a
|
||||
lib/libtoxcore.so
|
||||
lib/libtoxcore.so.%%SO%%
|
||||
lib/libtoxcore.so.%%VER%%
|
||||
lib/libtoxcrypto.a
|
||||
lib/libtoxcrypto.so
|
||||
lib/libtoxcrypto.so.%%SO%%
|
||||
lib/libtoxcrypto.so.%%VER%%
|
||||
lib/libtoxdht.a
|
||||
lib/libtoxdht.so
|
||||
lib/libtoxdht.so.%%SO%%
|
||||
lib/libtoxdht.so.%%VER%%
|
||||
lib/libtoxdns.a
|
||||
lib/libtoxdns.so
|
||||
lib/libtoxdns.so.%%SO%%
|
||||
lib/libtoxdns.so.%%VER%%
|
||||
lib/libtoxencryptsave.a
|
||||
lib/libtoxencryptsave.so
|
||||
lib/libtoxencryptsave.so.%%SO%%
|
||||
lib/libtoxencryptsave.so.%%VER%%
|
||||
lib/libtoxfriends.a
|
||||
lib/libtoxfriends.so
|
||||
lib/libtoxfriends.so.%%SO%%
|
||||
lib/libtoxfriends.so.%%VER%%
|
||||
lib/libtoxgroup.a
|
||||
lib/libtoxgroup.so
|
||||
lib/libtoxgroup.so.%%SO%%
|
||||
lib/libtoxgroup.so.%%VER%%
|
||||
lib/libtoxmessenger.a
|
||||
lib/libtoxmessenger.so
|
||||
lib/libtoxmessenger.so.%%SO%%
|
||||
lib/libtoxmessenger.so.%%VER%%
|
||||
lib/libtoxnetcrypto.a
|
||||
lib/libtoxnetcrypto.so
|
||||
lib/libtoxnetcrypto.so.%%SO%%
|
||||
lib/libtoxnetcrypto.so.%%VER%%
|
||||
lib/libtoxnetwork.a
|
||||
lib/libtoxnetwork.so
|
||||
lib/libtoxnetwork.so.%%SO%%
|
||||
lib/libtoxnetwork.so.%%VER%%
|
||||
libdata/pkgconfig/libtoxav.pc
|
||||
libdata/pkgconfig/libtoxcore.pc
|
||||
libdata/pkgconfig/toxav.pc
|
||||
libdata/pkgconfig/toxcore.pc
|
||||
libdata/pkgconfig/toxdns.pc
|
||||
libdata/pkgconfig/toxencryptsave.pc
|
||||
%%DAEMON%%@dir(%%TOXDHT%%,nobody,755) /var/run/tox-bootstrapd
|
||||
%%DAEMON%%@dir(%%TOXDHT%%,nobody,700) /var/lib/tox-bootstrapd
|
||||
%%DAEMON%%@dir /var/lib
|
||||
|
|
67
net-im/tox12/Makefile
Normal file
67
net-im/tox12/Makefile
Normal file
|
@ -0,0 +1,67 @@
|
|||
# Created by: Thierry Thomas <thierry@pompo.net>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= toxcore
|
||||
PORTVERSION= 0.1.11
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net-im net-p2p
|
||||
PKGNAMESUFFIX= -legacy
|
||||
|
||||
MAINTAINER= thierry@FreeBSD.org
|
||||
COMMENT= ProjectTox-Core library, a decentralized and secure messenger (legacy)
|
||||
|
||||
LICENSE= GPLv3
|
||||
|
||||
BUILD_DEPENDS= checkmk:devel/check
|
||||
LIB_DEPENDS= libvpx.so:multimedia/libvpx \
|
||||
libsndfile.so:audio/libsndfile \
|
||||
libsodium.so:security/libsodium \
|
||||
libopencv_core.so:graphics/opencv-core \
|
||||
libopus.so:audio/opus \
|
||||
libconfig.so:devel/libconfig
|
||||
TEST_DEPENDS= ${LOCALBASE}/lib/libmsgpackc.so:devel/msgpack \
|
||||
${LOCALBASE}/lib/libportaudio.so:audio/portaudio
|
||||
|
||||
CONFLICTS= tox-0.2*
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= TokTok
|
||||
GH_PROJECT= c-toxcore
|
||||
|
||||
USES= cmake compiler:c11 libtool pathfix pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
PLIST_SUB= VER=${PORTVERSION:C/0.//}.0 SO=1
|
||||
|
||||
OPTIONS_DEFINE= DAEMON
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
DAEMON_DESC= Bootstrap daemon
|
||||
DAEMON_CMAKE_ON= -DBOOTSTRAP_DAEMON=on
|
||||
DAEMON_LIB_DEPENDS= libconfig.so:devel/libconfig
|
||||
|
||||
TEST_TARGET= test
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MDAEMON}
|
||||
USERS= toxdht
|
||||
USE_RC_SUBR= tox-bootstrapd
|
||||
SUB_LIST= TOXDHT=${USERS}
|
||||
PLIST_SUB+= TOXDHT=${USERS}
|
||||
KEYS_DIR= /var/lib/tox-bootstrapd
|
||||
PID_DIR= /var/run/tox-bootstrapd
|
||||
PKGMESSAGE= ${PKGDIR}/pkg-message.daemon
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDAEMON}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tox-bootstrapd ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/other/bootstrap_daemon/tox-bootstrapd.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/tox-bootstrapd.conf.sample
|
||||
${MKDIR} ${STAGEDIR}${KEYS_DIR}
|
||||
${MKDIR} ${STAGEDIR}${PID_DIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
net-im/tox12/distinfo
Normal file
3
net-im/tox12/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1514391164
|
||||
SHA256 (TokTok-c-toxcore-v0.1.11_GH0.tar.gz) = 85b6184a160c343616e3253a0bf728cfe1588e73b6d6f8772aa1e44061e41b10
|
||||
SIZE (TokTok-c-toxcore-v0.1.11_GH0.tar.gz) = 458597
|
42
net-im/tox12/files/tox-bootstrapd.in
Normal file
42
net-im/tox12/files/tox-bootstrapd.in
Normal file
|
@ -0,0 +1,42 @@
|
|||
#! /bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: tox_bootstrapd
|
||||
# REQUIRE: NETWORKING DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable `tox-bootstrapd':
|
||||
#
|
||||
#tox_bootstrapd_enable="YES"
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="tox_bootstrapd"
|
||||
rcvar=tox_bootstrapd_enable
|
||||
|
||||
# read settings, set default values
|
||||
load_rc_config "${name}"
|
||||
: ${tox_bootstrapd_enable="NO"}
|
||||
|
||||
required_files=${tox_bootstrapd_config:="%%PREFIX%%/etc/tox-bootstrapd.conf"}
|
||||
_pidprefix="/var/run/tox-bootstrapd"
|
||||
pidfile=${tox_bootstrapd_pidfile:="$_pidprefix/tox-bootstrapd.pid"}
|
||||
long_name="Tox DHT bootstrap daemon."
|
||||
tox_bootstrapd_user="%%TOXDHT%%"
|
||||
command="%%PREFIX%%/bin/tox-bootstrapd"
|
||||
command_args="--config ${tox_bootstrapd_config}"
|
||||
|
||||
stop_cmd=${name}_stop
|
||||
|
||||
# Cannot use the regular stop() because the daemon forks
|
||||
tox_bootstrapd_stop() {
|
||||
[ -f $pidfile ] || (echo "$name not running?"; exit 1)
|
||||
echo "Stopping $long_name"
|
||||
kill `ps ax | grep $command | grep -v grep | awk '{print $1}'`
|
||||
rm -f $pidfile
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
9
net-im/tox12/pkg-descr
Normal file
9
net-im/tox12/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
|||
Tox is a decentralized, secure messenger with audio and video chat capabilities.
|
||||
You can see it as an alternative to Skype.
|
||||
|
||||
This is only the core library. To use it, you have to install a client, like
|
||||
e.g. net-im/toxic, net-im/qTox or net-im/uTox.
|
||||
|
||||
This legacy version must be used only with uTox (untill a new release).
|
||||
|
||||
WWW: http://tox.chat/
|
4
net-im/tox12/pkg-message.daemon
Normal file
4
net-im/tox12/pkg-message.daemon
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
Warning: your public key will be logged at the level INFO. Check that your
|
||||
/etc/syslog is configured to log these messages if you need it (to publicize
|
||||
it).
|
59
net-im/tox12/pkg-plist
Normal file
59
net-im/tox12/pkg-plist
Normal file
|
@ -0,0 +1,59 @@
|
|||
%%DAEMON%%bin/tox-bootstrapd
|
||||
%%DAEMON%%@sample etc/tox-bootstrapd.conf.sample
|
||||
include/tox/tox.h
|
||||
include/tox/toxav.h
|
||||
include/tox/toxdns.h
|
||||
include/tox/toxencryptsave.h
|
||||
lib/libtoxav.a
|
||||
lib/libtoxav.so
|
||||
lib/libtoxav.so.%%SO%%
|
||||
lib/libtoxav.so.%%VER%%
|
||||
lib/libtoxcore.a
|
||||
lib/libtoxcore.so
|
||||
lib/libtoxcore.so.%%SO%%
|
||||
lib/libtoxcore.so.%%VER%%
|
||||
lib/libtoxcrypto.a
|
||||
lib/libtoxcrypto.so
|
||||
lib/libtoxcrypto.so.%%SO%%
|
||||
lib/libtoxcrypto.so.%%VER%%
|
||||
lib/libtoxdht.a
|
||||
lib/libtoxdht.so
|
||||
lib/libtoxdht.so.%%SO%%
|
||||
lib/libtoxdht.so.%%VER%%
|
||||
lib/libtoxdns.a
|
||||
lib/libtoxdns.so
|
||||
lib/libtoxdns.so.%%SO%%
|
||||
lib/libtoxdns.so.%%VER%%
|
||||
lib/libtoxencryptsave.a
|
||||
lib/libtoxencryptsave.so
|
||||
lib/libtoxencryptsave.so.%%SO%%
|
||||
lib/libtoxencryptsave.so.%%VER%%
|
||||
lib/libtoxfriends.a
|
||||
lib/libtoxfriends.so
|
||||
lib/libtoxfriends.so.%%SO%%
|
||||
lib/libtoxfriends.so.%%VER%%
|
||||
lib/libtoxgroup.a
|
||||
lib/libtoxgroup.so
|
||||
lib/libtoxgroup.so.%%SO%%
|
||||
lib/libtoxgroup.so.%%VER%%
|
||||
lib/libtoxmessenger.a
|
||||
lib/libtoxmessenger.so
|
||||
lib/libtoxmessenger.so.%%SO%%
|
||||
lib/libtoxmessenger.so.%%VER%%
|
||||
lib/libtoxnetcrypto.a
|
||||
lib/libtoxnetcrypto.so
|
||||
lib/libtoxnetcrypto.so.%%SO%%
|
||||
lib/libtoxnetcrypto.so.%%VER%%
|
||||
lib/libtoxnetwork.a
|
||||
lib/libtoxnetwork.so
|
||||
lib/libtoxnetwork.so.%%SO%%
|
||||
lib/libtoxnetwork.so.%%VER%%
|
||||
libdata/pkgconfig/libtoxav.pc
|
||||
libdata/pkgconfig/libtoxcore.pc
|
||||
libdata/pkgconfig/toxav.pc
|
||||
libdata/pkgconfig/toxcore.pc
|
||||
libdata/pkgconfig/toxdns.pc
|
||||
libdata/pkgconfig/toxencryptsave.pc
|
||||
%%DAEMON%%@dir(%%TOXDHT%%,nobody,755) /var/run/tox-bootstrapd
|
||||
%%DAEMON%%@dir(%%TOXDHT%%,nobody,700) /var/lib/tox-bootstrapd
|
||||
%%DAEMON%%@dir /var/lib
|
Loading…
Add table
Reference in a new issue