Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2018 19:13:11 +0000 (UTC)
From:      Dan Langille <dvl@FreeBSD.org>
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
Message-ID:  <201803271913.w2RJDBpP017796@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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 <bsd.port.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803271913.w2RJDBpP017796>