From a7b8f0d4d3966d8dc5625a31739b619cdf8fa606 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Fri, 27 Sep 2019 14:34:05 +0000 Subject: [PATCH] Add a port of GNU Pies, which stands for the Program Invocation and Execution Supervisor. Requested by: Zeus Panchenko (maintainer) --- sysutils/Makefile | 1 + sysutils/pies/Makefile | 35 +++++++++++++++++++++++++++++++++++ sysutils/pies/distinfo | 3 +++ sysutils/pies/pkg-descr | 17 +++++++++++++++++ sysutils/pies/pkg-plist | 12 ++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 sysutils/pies/Makefile create mode 100644 sysutils/pies/distinfo create mode 100644 sysutils/pies/pkg-descr create mode 100644 sysutils/pies/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 5c984189f120..517ea1b8f7f3 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -898,6 +898,7 @@ SUBDIR += phybs SUBDIR += pick SUBDIR += pidof + SUBDIR += pies SUBDIR += pipemeter SUBDIR += plasma-pass SUBDIR += plasma5-discover diff --git a/sysutils/pies/Makefile b/sysutils/pies/Makefile new file mode 100644 index 000000000000..988ca065d7a2 --- /dev/null +++ b/sysutils/pies/Makefile @@ -0,0 +1,35 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= pies +PORTVERSION= 1.4 +CATEGORIES= sysutils +MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \ + http://download.gnu.org.ua/pub/alpha/${PORTNAME}/ + +MAINTAINER= zeus@gnu.org.ua +COMMENT= Program Invocation and Execution Supervisor + +LICENSE= GPLv3+ + +USES= charsetfix iconv tar:bz2 +GNU_CONFIGURE= yes + +INFO= ${PORTNAME} +PORTDOCS= ChangeLog NEWS README + +OPTIONS_DEFINE= DOCS INETD NLS PAM +OPTIONS_SUB= yes + +INETD_DESC= Build and install replacement for inetd(8) + +INETD_CONFIGURE_ON= --enable-inetd +NLS_USES= gettext +NLS_CONFIGURE_OFF= --disable-nls +PAM_CONFIGURE_OFF= --disable-pam + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/sysutils/pies/distinfo b/sysutils/pies/distinfo new file mode 100644 index 000000000000..2bc59d1e2b46 --- /dev/null +++ b/sysutils/pies/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1562075090 +SHA256 (pies-1.4.tar.bz2) = e6bee36c136c00fd728e413e8938155d436eaf57ab4f2d646946e84fd4254b92 +SIZE (pies-1.4.tar.bz2) = 1185505 diff --git a/sysutils/pies/pkg-descr b/sysutils/pies/pkg-descr new file mode 100644 index 000000000000..93bf96b5a9c1 --- /dev/null +++ b/sysutils/pies/pkg-descr @@ -0,0 +1,17 @@ +GNU Pies (pronounced "p-yes") stands for the Program Invocation and +Execution Supervisor. This utility starts and controls execution of +external programs, called "components". Each component is a stand-alone +program, designed to be executed in the foreground. Upon startup pies +reads the list of components from its configuration file, starts them, +and remains in the background, controlling their execution. When a +component terminates, pies tries to restarts it. Its configuration +allows to specify actions other than simple restart, depending on the +exit code of the component. + +GNU Pies supports a wide variety of component types and gives the user +complete control over the execution environment of each component. This +includes modifying shell environment, running components with the given +user privileges, etc. The standard error and/or output of any component +may be redirected either to a disk file or to syslog. + +WWW: https://puszcza.gnu.org.ua/projects/pies diff --git a/sysutils/pies/pkg-plist b/sysutils/pies/pkg-plist new file mode 100644 index 000000000000..1fd92238cdb5 --- /dev/null +++ b/sysutils/pies/pkg-plist @@ -0,0 +1,12 @@ +bin/piesctl +%%INETD%%sbin/inetd +sbin/pies +%%NLS%%share/locale/de/LC_MESSAGES/pies.mo +%%NLS%%share/locale/es/LC_MESSAGES/pies.mo +%%NLS%%share/locale/fr/LC_MESSAGES/pies.mo +%%NLS%%share/locale/pl/LC_MESSAGES/pies.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/pies.mo +%%NLS%%share/locale/uk/LC_MESSAGES/pies.mo +%%NLS%%share/locale/vi/LC_MESSAGES/pies.mo +%%DATADIR%%/1.4/include/pp-setup +@dir /var/pies