From owner-svn-ports-all@freebsd.org Tue Mar 27 19:13:12 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A292F50673; Tue, 27 Mar 2018 19:13:12 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477967B3D6; Tue, 27 Mar 2018 19:13:12 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4264A2047A; Tue, 27 Mar 2018 19:13:12 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2RJDCa6017806; Tue, 27 Mar 2018 19:13:12 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2RJDBpP017796; Tue, 27 Mar 2018 19:13:11 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201803271913.w2RJDBpP017796@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Tue, 27 Mar 2018 19:13:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r465743 - in head/sysutils: . hare py-hared py-hared/files X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/sysutils: . hare py-hared py-hared/files X-SVN-Commit-Revision: 465743 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 19:13:12 -0000 Author: dvl Date: Tue Mar 27 19:13:11 2018 New Revision: 465743 URL: https://svnweb.freebsd.org/changeset/ports/465743 Log: Adding sysutils/hare and sysutils/py-hared hare is a small utility designed for use by PAM which sends a UDP packet to py-hared. Here is a typical /etc/pam.d/sshd entry: session optional pam_exec.so /usr/local/sbin/hare 10.1.0.10 py-hared will be runnig at that IP address. From there, the data gets put into mqtt for further processing. Added: head/sysutils/hare/ head/sysutils/hare/Makefile (contents, props changed) head/sysutils/hare/distinfo (contents, props changed) head/sysutils/hare/pkg-descr (contents, props changed) head/sysutils/hare/pkg-plist (contents, props changed) head/sysutils/py-hared/ head/sysutils/py-hared/Makefile (contents, props changed) head/sysutils/py-hared/distinfo (contents, props changed) head/sysutils/py-hared/files/ head/sysutils/py-hared/files/hared.conf (contents, props changed) head/sysutils/py-hared/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Mar 27 18:56:05 2018 (r465742) +++ head/sysutils/Makefile Tue Mar 27 19:13:11 2018 (r465743) @@ -457,6 +457,7 @@ SUBDIR += hal SUBDIR += hal-info SUBDIR += hardlink + SUBDIR += hare SUBDIR += hatop SUBDIR += hdrecover SUBDIR += healthd @@ -929,6 +930,7 @@ SUBDIR += py-gmailfs-fuse SUBDIR += py-google-compute-engine SUBDIR += py-halite + SUBDIR += py-hared SUBDIR += py-honcho SUBDIR += py-iowait SUBDIR += py-mqttwarn Added: head/sysutils/hare/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/hare/Makefile Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,20 @@ +# $FreeBSD$ + +PORTNAME= hare +DISTVERSION= 1.0 +CATEGORIES= sysutils + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Small C client for sending ssh login notications to a hared server + +LICENSE= MIT +LICENSE= LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= jpmens +GH_PROJECT= hared-hare + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin + +.include Added: head/sysutils/hare/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/hare/distinfo Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,3 @@ +TIMESTAMP = 1522172714 +SHA256 (jpmens-hared-hare-1.0_GH0.tar.gz) = a7f006a32f02473c271cab1824c2eda564cd62bda7eee7dd56bea58ff63fb681 +SIZE (jpmens-hared-hare-1.0_GH0.tar.gz) = 12848 Added: head/sysutils/hare/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/hare/pkg-descr Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,9 @@ +hare is a small utility which is installed in a PAM configuration +(e.g. for sshd) in order to log successful logins. This is often +useful to alert on machines which are seldom visited or otherwise monitored. + +This client works in conjunction with the server sysutils/py-hared + +This will form part of a centralized message distribution system. + +WWW: https://github.com/jpmens/hared-hare Added: head/sysutils/hare/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/hare/pkg-plist Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1 @@ +sbin/hare Added: head/sysutils/py-hared/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-hared/Makefile Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= hared +DISTVERSION= 1.0 +CATEGORIES= sysutils python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Small Python server for inserting notications into mtqq + +LICENSE= MIT +LICENSE_FILE= LICENSE + +USES= python +USE_PYTHON= distutils autoplist + +ETCDIR= ${PREFIX}/etc + +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}paho-mqtt>0:net/py-paho-mqtt + +PLIST_FILES+= "@sample %%ETCDIR%%/hared.ini.sample" + +pre-install: + ${INSTALL_DATA} ${FILESDIR}/hared.conf ${STAGEDIR}${ETCDIR}/hared.ini.sample + +.include Added: head/sysutils/py-hared/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-hared/distinfo Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,3 @@ +TIMESTAMP = 1522170177 +SHA256 (hared-1.0.tar.gz) = 503582a985a0103fa3f58f6b910892974cb8b99b1aceb5ce128049fa45dbd2b5 +SIZE (hared-1.0.tar.gz) = 2289 Added: head/sysutils/py-hared/files/hared.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-hared/files/hared.conf Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,6 @@ +[defaults] +verbose = False +listenhost = localhost +listenport = 8053 +mqtthost = 127.0.0.1 +mqttport = 1883 Added: head/sysutils/py-hared/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/py-hared/pkg-descr Tue Mar 27 19:13:11 2018 (r465743) @@ -0,0 +1,7 @@ +Small Python server for receiving notications and tossing them into mtqq. + +This will form part of a centralized message distribution system. + +A client for this server is sysutils/hare + +WWW: https://github.com/jpmens/hared-hare