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.
This commit is contained in:
@@ -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
|
||||
|
||||
20
sysutils/hare/Makefile
Normal file
20
sysutils/hare/Makefile
Normal file
@@ -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>
|
||||
3
sysutils/hare/distinfo
Normal file
3
sysutils/hare/distinfo
Normal file
@@ -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
|
||||
9
sysutils/hare/pkg-descr
Normal file
9
sysutils/hare/pkg-descr
Normal file
@@ -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
|
||||
1
sysutils/hare/pkg-plist
Normal file
1
sysutils/hare/pkg-plist
Normal file
@@ -0,0 +1 @@
|
||||
sbin/hare
|
||||
27
sysutils/py-hared/Makefile
Normal file
27
sysutils/py-hared/Makefile
Normal file
@@ -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>
|
||||
3
sysutils/py-hared/distinfo
Normal file
3
sysutils/py-hared/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1522170177
|
||||
SHA256 (hared-1.0.tar.gz) = 503582a985a0103fa3f58f6b910892974cb8b99b1aceb5ce128049fa45dbd2b5
|
||||
SIZE (hared-1.0.tar.gz) = 2289
|
||||
6
sysutils/py-hared/files/hared.conf
Normal file
6
sysutils/py-hared/files/hared.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
[defaults]
|
||||
verbose = False
|
||||
listenhost = localhost
|
||||
listenport = 8053
|
||||
mqtthost = 127.0.0.1
|
||||
mqttport = 1883
|
||||
7
sysutils/py-hared/pkg-descr
Normal file
7
sysutils/py-hared/pkg-descr
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user