diff options
author | dvl <dvl@FreeBSD.org> | 2018-03-28 03:13:11 +0800 |
---|---|---|
committer | dvl <dvl@FreeBSD.org> | 2018-03-28 03:13:11 +0800 |
commit | 480a10cd95f7f47587e0dc2fb86f57b06c115db7 (patch) | |
tree | 8d748af7e4b22390b60c4738318d805f45dcca81 /sysutils | |
parent | a990c9f3ddb6508d3ca5dc8b82a3121ae341086b (diff) | |
download | freebsd-ports-gnome-480a10cd95f7f47587e0dc2fb86f57b06c115db7.tar.gz freebsd-ports-gnome-480a10cd95f7f47587e0dc2fb86f57b06c115db7.tar.zst freebsd-ports-gnome-480a10cd95f7f47587e0dc2fb86f57b06c115db7.zip |
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.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 2 | ||||
-rw-r--r-- | sysutils/hare/Makefile | 20 | ||||
-rw-r--r-- | sysutils/hare/distinfo | 3 | ||||
-rw-r--r-- | sysutils/hare/pkg-descr | 9 | ||||
-rw-r--r-- | sysutils/hare/pkg-plist | 1 | ||||
-rw-r--r-- | sysutils/py-hared/Makefile | 27 | ||||
-rw-r--r-- | sysutils/py-hared/distinfo | 3 | ||||
-rw-r--r-- | sysutils/py-hared/files/hared.conf | 6 | ||||
-rw-r--r-- | sysutils/py-hared/pkg-descr | 7 |
9 files changed, 78 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 25683b930a1d..5dcca4e53750 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -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 diff --git a/sysutils/hare/Makefile b/sysutils/hare/Makefile new file mode 100644 index 000000000000..cd2f5719ed9d --- /dev/null +++ b/sysutils/hare/Makefile @@ -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> diff --git a/sysutils/hare/distinfo b/sysutils/hare/distinfo new file mode 100644 index 000000000000..79c8688215fd --- /dev/null +++ b/sysutils/hare/distinfo @@ -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 diff --git a/sysutils/hare/pkg-descr b/sysutils/hare/pkg-descr new file mode 100644 index 000000000000..468fe241617d --- /dev/null +++ b/sysutils/hare/pkg-descr @@ -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 diff --git a/sysutils/hare/pkg-plist b/sysutils/hare/pkg-plist new file mode 100644 index 000000000000..56fbb7499859 --- /dev/null +++ b/sysutils/hare/pkg-plist @@ -0,0 +1 @@ +sbin/hare diff --git a/sysutils/py-hared/Makefile b/sysutils/py-hared/Makefile new file mode 100644 index 000000000000..8535b79650f0 --- /dev/null +++ b/sysutils/py-hared/Makefile @@ -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> diff --git a/sysutils/py-hared/distinfo b/sysutils/py-hared/distinfo new file mode 100644 index 000000000000..79ec23fba4a9 --- /dev/null +++ b/sysutils/py-hared/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522170177 +SHA256 (hared-1.0.tar.gz) = 503582a985a0103fa3f58f6b910892974cb8b99b1aceb5ce128049fa45dbd2b5 +SIZE (hared-1.0.tar.gz) = 2289 diff --git a/sysutils/py-hared/files/hared.conf b/sysutils/py-hared/files/hared.conf new file mode 100644 index 000000000000..dc3f0990a1fd --- /dev/null +++ b/sysutils/py-hared/files/hared.conf @@ -0,0 +1,6 @@ +[defaults] +verbose = False +listenhost = localhost +listenport = 8053 +mqtthost = 127.0.0.1 +mqttport = 1883 diff --git a/sysutils/py-hared/pkg-descr b/sysutils/py-hared/pkg-descr new file mode 100644 index 000000000000..6fbcb797d965 --- /dev/null +++ b/sysutils/py-hared/pkg-descr @@ -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 |