Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2023 16:18:01 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e4b07a2d01bc - main - sysutils/catsit: New port: Process supervisor
Message-ID:  <202304281618.33SGI175044570@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e4b07a2d01bc0a1a022b752296ffa7e90dc7b5f4

commit e4b07a2d01bc0a1a022b752296ffa7e90dc7b5f4
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-04-27 21:44:52 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-04-28 16:17:28 +0000

    sysutils/catsit: New port: Process supervisor
    
    The catsitd daemon is a process supervisor for FreeBSD and OpenBSD.
    It is designed to supervise processes with the following behavior:
    
    * The process runs in the foreground, not as a daemon.
    * The process logs to standard output or standard error.
    * The process handles errors by exiting and expects to be
      restarted.
    * The process indicates its reason for exiting with sysexits(3).
    
    WWW: https://git.causal.agency/catsit/
    
    PR:             266233
---
 sysutils/Makefile         |  1 +
 sysutils/catsit/Makefile  | 19 +++++++++++++++++++
 sysutils/catsit/distinfo  |  3 +++
 sysutils/catsit/pkg-descr |  8 ++++++++
 sysutils/catsit/pkg-plist | 11 +++++++++++
 5 files changed, 42 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index d694c1bb1b5d..7a01d0002b2c 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -166,6 +166,7 @@
     SUBDIR += byobu
     SUBDIR += calamares
     SUBDIR += catfish
+    SUBDIR += catsit
     SUBDIR += cbsd
     SUBDIR += cbsd-mq-api
     SUBDIR += cbsd-mq-router
diff --git a/sysutils/catsit/Makefile b/sysutils/catsit/Makefile
new file mode 100644
index 000000000000..3c41c49de5cf
--- /dev/null
+++ b/sysutils/catsit/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	catsit
+DISTVERSION=	1.4
+CATEGORIES=	sysutils
+MASTER_SITES=	https://git.causal.agency/catsit/snapshot/
+
+MAINTAINER=	DtxdF@disroot.org
+COMMENT=	Process supervisor
+WWW=		https://git.causal.agency/catsit/
+
+LICENSE=	AGPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/catsit-timer
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/catsit-watch
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/catsitd
+	${TOUCH} ${STAGEDIR}${PREFIX}/etc/catsit.conf
+
+.include <bsd.port.mk>
diff --git a/sysutils/catsit/distinfo b/sysutils/catsit/distinfo
new file mode 100644
index 000000000000..a3b2f37c5467
--- /dev/null
+++ b/sysutils/catsit/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1662382917
+SHA256 (catsit-1.4.tar.gz) = 8326ef2e9312092cdf121c6ba3df7b93f8228fca5b514e6b05b98c848535e4d8
+SIZE (catsit-1.4.tar.gz) = 24341
diff --git a/sysutils/catsit/pkg-descr b/sysutils/catsit/pkg-descr
new file mode 100644
index 000000000000..180d038167b6
--- /dev/null
+++ b/sysutils/catsit/pkg-descr
@@ -0,0 +1,8 @@
+The catsitd daemon is a process supervisor for FreeBSD and OpenBSD.
+It is designed to supervise processes with the following behavior:
+
+* The process runs in the foreground, not as a daemon.
+* The process logs to standard output or standard error.
+* The process handles errors by exiting and expects to be
+  restarted.
+* The process indicates its reason for exiting with sysexits(3).
diff --git a/sysutils/catsit/pkg-plist b/sysutils/catsit/pkg-plist
new file mode 100644
index 000000000000..0ddd609704f2
--- /dev/null
+++ b/sysutils/catsit/pkg-plist
@@ -0,0 +1,11 @@
+bin/catsit-timer
+bin/catsit-watch
+etc/catsit.conf
+etc/rc.d/catsitd
+man/man1/catsit-timer.1.gz
+man/man1/catsit-watch.1.gz
+man/man5/catsit.conf.5.gz
+man/man8/catsit.8.gz
+man/man8/catsitd.8.gz
+sbin/catsit
+sbin/catsitd



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