New port net-im/sshout: Instant-messaging solution based on SSH

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.

PR:		228723
Submitted by:	WHR <msl0000023508@gmail.com>
This commit is contained in:
Rodrigo Osorio 2020-04-15 21:45:03 +00:00
parent 694ccc295c
commit cdaba71527
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531797
9 changed files with 105 additions and 2 deletions

2
GIDs
View File

@ -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

2
UIDs
View File

@ -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

View File

@ -156,6 +156,7 @@
SUBDIR += slack-term
SUBDIR += spectral
SUBDIR += ssh-chat
SUBDIR += sshout
SUBDIR += talkatu
SUBDIR += teamwords
SUBDIR += telegram

39
net-im/sshout/Makefile Normal file
View File

@ -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>

3
net-im/sshout/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1547014140
SHA256 (sshout-1.0.2-src.tar.bz2) = 25d8af583c50171180fae1ed3ca9dea45f343531d200c30fc0af18e5bfe059f9
SIZE (sshout-1.0.2-src.tar.bz2) = 36270

View File

@ -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"

11
net-im/sshout/pkg-descr Normal file
View File

@ -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/

View File

@ -0,0 +1,7 @@
#!/bin/sh
case $2 in
POST-INSTALL)
chsh -s ${PKG_PREFIX}/libexec/sshoutd sshout
;;
esac

View File

@ -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