summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GIDs2
-rw-r--r--UIDs2
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/sshout/Makefile39
-rw-r--r--net-im/sshout/distinfo3
-rw-r--r--net-im/sshout/files/sshout.in34
-rw-r--r--net-im/sshout/pkg-descr11
-rw-r--r--net-im/sshout/pkg-install7
-rw-r--r--net-im/sshout/pkg-message8
9 files changed, 105 insertions, 2 deletions
diff --git a/GIDs b/GIDs
index f190855651a6..214596c1133e 100644
--- a/GIDs
+++ b/GIDs
@@ -205,7 +205,7 @@ meta1q:*:261:
meta1c:*:262:meta1s
meta1m:*:263:meta1s,meta1q
meta1:*:264:
-# free: 265
+sshout:*:265:
# free: 266
# free: 267
# free: 268
diff --git a/UIDs b/UIDs
index 655f88bdae7c..d2edd83dd72d 100644
--- a/UIDs
+++ b/UIDs
@@ -210,7 +210,7 @@ meta1q:*:261:261::0:0:MeTA1 QMGR:/nonexistent:/usr/sbin/nologin
meta1c:*:262:262::0:0:MeTA1 SMTPC:/nonexistent:/usr/sbin/nologin
meta1m:*:263:263::0:0:MeTA1 misc:/nonexistent:/usr/sbin/nologin
meta1:*:264:264::0:0:MeTA1 other:/nonexistent:/usr/sbin/nologin
-# free: 265
+sshout:*:265:265::0:0:Secure Shout Host Oriented Unified Talk:/var/db/sshout:/usr/local/libexec/sshoutd
# free: 266
# free: 267
# free: 268
diff --git a/net-im/Makefile b/net-im/Makefile
index c4de379232f8..d88c61d0fb52 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -156,6 +156,7 @@
SUBDIR += slack-term
SUBDIR += spectral
SUBDIR += ssh-chat
+ SUBDIR += sshout
SUBDIR += talkatu
SUBDIR += teamwords
SUBDIR += telegram
diff --git a/net-im/sshout/Makefile b/net-im/sshout/Makefile
new file mode 100644
index 000000000000..fa9c131dbd5a
--- /dev/null
+++ b/net-im/sshout/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PORTNAME= sshout
+DISTVERSION= 1.0.2
+CATEGORIES= net-im
+MASTER_SITES= SF/sshout/${PORTNAME}/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= msl0000023508@gmail.com
+COMMENT= Instant-messaging service based on SSH
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libmhash.so:security/mhash
+
+USES= tar:bz2 gmake readline
+
+NO_WRKSUBDIR= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+MAKE_ENV= LIBEXECDIR=\${PREFIX}/libexec \
+ MANDIR=\${PREFIX}/man
+
+USE_RC_SUBR= sshout
+
+USERS= sshout
+GROUPS= sshout
+
+PLIST_FILES= libexec/sshoutd \
+ man/man8/sshoutcfg.8.gz \
+ sbin/sshoutcfg
+
+OPTIONS_DEFINE= IRC
+IRC_DESC= Enable the experimental IRC over SSH frontend
+IRC_CPPFLAGS= -DENABLE_IRC_FRONTEND
+
+.include <bsd.port.mk>
diff --git a/net-im/sshout/distinfo b/net-im/sshout/distinfo
new file mode 100644
index 000000000000..9a1f8bdfad21
--- /dev/null
+++ b/net-im/sshout/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1547014140
+SHA256 (sshout-1.0.2-src.tar.bz2) = 25d8af583c50171180fae1ed3ca9dea45f343531d200c30fc0af18e5bfe059f9
+SIZE (sshout-1.0.2-src.tar.bz2) = 36270
diff --git a/net-im/sshout/files/sshout.in b/net-im/sshout/files/sshout.in
new file mode 100644
index 000000000000..31f2ef60dee0
--- /dev/null
+++ b/net-im/sshout/files/sshout.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: sshout
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# To enable this service, add
+# sshout_enable="<bool>" # Set to NO by default.
+# # Set it to YES to enable sshout.
+# into /etc/rc.conf.local or /etc/rc.conf
+
+. /etc/rc.subr
+
+name=sshout
+rcvar=sshout_enable
+
+load_rc_config $name
+
+: ${sshout_enable:="NO"}
+
+sshout_user=sshout
+sshout_home="`getent passwd sshout | cut -d : -f 6`"
+[ -z "$sshout_home" ] && exit 1
+sshout_env="HOME=$sshout_home"
+sshout_chdir="$sshout_home"
+procname=%%PREFIX%%/libexec/sshoutd
+pidfile="$sshout_home/sshoutd.pid"
+command=/usr/sbin/daemon
+command_args="-f $procname"
+stop_postcmd="rm -f $pidfile"
+
+run_rc_command "$1"
diff --git a/net-im/sshout/pkg-descr b/net-im/sshout/pkg-descr
new file mode 100644
index 000000000000..fbea6938d890
--- /dev/null
+++ b/net-im/sshout/pkg-descr
@@ -0,0 +1,11 @@
+Secure Shout Host Oriented Unified Talk is an instant-messaging platform
+designed to make uses of the existing SSH server in your system.
+SSHOUT creates a private chat room in your host. The authentication of the
+chat room is done by SSH public authentication. Users can join your chat room
+by either directly connecting your SSH server with any SSH client; or using a
+SSHOUT client that implemented the client side SSHOUT API.
+This package provides the SSHOUT server side programs; if you are finding a
+SSHOUT client, go to project page and find out a suitable client; or you can
+also write your own client using SSHOUT API.
+
+WWW: https://sourceforge.net/projects/sshout/
diff --git a/net-im/sshout/pkg-install b/net-im/sshout/pkg-install
new file mode 100644
index 000000000000..f934e401a422
--- /dev/null
+++ b/net-im/sshout/pkg-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+case $2 in
+ POST-INSTALL)
+ chsh -s ${PKG_PREFIX}/libexec/sshoutd sshout
+ ;;
+esac
diff --git a/net-im/sshout/pkg-message b/net-im/sshout/pkg-message
new file mode 100644
index 000000000000..607b02b2e812
--- /dev/null
+++ b/net-im/sshout/pkg-message
@@ -0,0 +1,8 @@
+#### NOTES OF SSHOUT
+In order to start sshout service you need some more configuration:
+
+# sysrc -f /etc/rc.conf sshout_enable="YES"
+
+If you installed SSHOUT for the first time, use sshoutcfg(8) to add users.
+You must have SSH server running and accepting public key authentication.
+#### END