summaryrefslogtreecommitdiff
path: root/net-im/toxins
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-03-08 08:15:01 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-03-08 08:15:01 +0000
commit1dbfec3c0156b5389dc94c4878bd6bea3c75331a (patch)
tree754372dbe22dbbd2156aac8dddfc721a410d3780 /net-im/toxins
parentnet-mgmt/icingaweb2-module-grafana: (diff)
New port: net-im/toxins: Collection of small programs using toxcore
Approved by: tcberner (mentor, implicit)
Notes
Notes: svn path=/head/; revision=463872
Diffstat (limited to 'net-im/toxins')
-rw-r--r--net-im/toxins/Makefile35
-rw-r--r--net-im/toxins/distinfo3
-rw-r--r--net-im/toxins/pkg-descr12
3 files changed, 50 insertions, 0 deletions
diff --git a/net-im/toxins/Makefile b/net-im/toxins/Makefile
new file mode 100644
index 000000000000..26d5c8b43b3e
--- /dev/null
+++ b/net-im/toxins/Makefile
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME= toxins
+DISTVERSION= g20180214
+CATEGORIES= net-im
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Collection of small programs using toxcore
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+LIB_DEPENDS= libsodium.so:security/libsodium \
+ libtoxcore.so:net-im/tox
+
+USES= gmake pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= TokTok
+GH_TAGNAME= e7bb43c
+ALL_TARGET= build
+
+PROGS= irc_syncbot tox_shell tox_sync echobot
+
+PLIST_FILES= ${PROGS:S/^/bin\//}
+
+post-patch:
+ @${RM} -r ${WRKSRC}/toxvpn # will be in a separate port
+ @${REINPLACE_CMD} -e 's|-static -ltoxcore|`pkg-config --cflags --libs toxcore`|' ${WRKSRC}/*/Makefile
+
+do-install:
+.for f in ${PROGS}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f}/${f} ${STAGEDIR}${PREFIX}/bin/${f}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/net-im/toxins/distinfo b/net-im/toxins/distinfo
new file mode 100644
index 000000000000..248dad51df3b
--- /dev/null
+++ b/net-im/toxins/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1520496023
+SHA256 (TokTok-toxins-g20180214-e7bb43c_GH0.tar.gz) = 481efdfe6eb33feb16c161cd169305c53f671de367b418006936688b4cd160a6
+SIZE (TokTok-toxins-g20180214-e7bb43c_GH0.tar.gz) = 23606
diff --git a/net-im/toxins/pkg-descr b/net-im/toxins/pkg-descr
new file mode 100644
index 000000000000..9af8fec06950
--- /dev/null
+++ b/net-im/toxins/pkg-descr
@@ -0,0 +1,12 @@
+A collection of small utilities, mostly written in C or C++, that use toxcore.
+
+List of toxins:
+* irc_syncbot: Bot that synchronizes an IRC channel and a Tox group chat
+ (conference).
+* tox_shell: Proof of concept SSH-like server software using Tox. Testing
+ program, not intended for actual use.
+* tox_sync: Bittorrent-sync-like software using Tox. Syncs two directories
+ together.
+* echobot: Bot that accepts all friend requests and echoes all messages.
+
+WWW: https://github.com/TokTok/toxins