[packages/shepherd] - initial

qboosh qboosh at pld-linux.org
Wed Dec 14 21:58:11 CET 2022


commit 7ceeaeb905df2da444340c46a5549751acdd6c7c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 14 21:58:47 2022 +0100

    - initial

 shepherd-info.patch | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 shepherd.spec       | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 226 insertions(+)
---
diff --git a/shepherd.spec b/shepherd.spec
new file mode 100644
index 0000000..c3299f7
--- /dev/null
+++ b/shepherd.spec
@@ -0,0 +1,113 @@
+Summary:	Shepherd service manager
+Summary(pl.UTF-8):	Zarządca usług Shepherd
+Name:		shepherd
+Version:	0.9.3
+Release:	0.1
+License:	GPL v3+ (daemon), FDL v1.3+ (documentation)
+Group:		Daemons
+Source0:	https://ftp.gnu.org/gnu/shepherd/%{name}-%{version}.tar.gz
+# Source0-md5:	94fa25f895773e0d35f8ca2f8c194f2c
+Patch0:		%{name}-info.patch
+URL:		http://www.gnu.org/software/shepherd/
+BuildRequires:	gettext-tools >= 0.19
+BuildRequires:	guile-devel >= 5:2.2
+BuildRequires:	guile-fibers >= 1.1.0
+BuildRequires:	help2man
+BuildRequires:	texinfo
+Requires:	guile >= 5:2.2
+Requires:	guile-fibers >= 1.1.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_noautostrip	.*\.go
+
+%description
+The GNU Daemon Shepherd, or GNU Shepherd is a service manager written
+in Guile that looks after the herd of system services, providing a
+replacement for the service-managing capabilities of SysV-init (or any
+other init) with a dependency-based system with a convenient
+interface. It is intended for use on GNU/Linux and GNU/Hurd, but it is
+supposed to work on every POSIX-like system where Guile is available.
+
+In a previous life, the GNU Shepherd was known as GNU dmd, the
+daemon-managing daemon.
+
+%description -l pl.UTF-8
+GNU Daemon Shepherd lub GNU Shepherd (pasterz) to napisany w języku
+Guile zarządca usług, pilnujący stada usług systemowych. Dostarcza
+zamiennik funkcjonalności zarządzania usługami z SysV-init (lub
+dowolnego innego inita) z systemem opartym na zależnościach i wygodnym
+interfejsem. Głównym zastosowaniem są systemy GNU/Linux lub GNU/Hurd,
+ale powinien działać na dowolnym systemie zgodnym z POSIX, gdzie
+dostępny jest Guile.
+
+W poprzednim życiu GNU Shepherd był znany jako GNU dmd -
+daemon-managing daemon (demon zarządzający demonami).
+
+%package init
+Summary:	SysV init replacement tools
+Summary(pl.UTF-8):	Zamiennik narzędzi z SysV init
+Group:		Daemons
+Requires:	%{name} = %{version}-%{release}
+
+%description init
+SysV init replacement tools.
+
+%description init -l pl.UTF-8
+Zamiennik narzędzi z SysV init.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure \
+	--disable-silent-rules
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{systemdtmpfilesdir}
+cat >$RPM_BUILD_ROOT%{systemdtmpfilesdir}/shepherd.conf <<EOF
+d /var/run/shepherd 0700 root root -
+EOF
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun	-p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog* NEWS README THANKS TODO
+%attr(755,root,root) %{_bindir}/herd
+%attr(755,root,root) %{_bindir}/shepherd
+%dir %{_libdir}/shepherd
+%attr(755,root,root) %{_libdir}/shepherd/crash-handler.so
+%{_libdir}/guile/*.*/site-ccache/shepherd.go
+%{_libdir}/guile/*.*/site-ccache/shepherd
+%dir %{_libdir}/guile/*.*/site-ccache
+%{_datadir}/guile/site/*.*/shepherd.scm
+%{_datadir}/guile/site/*.*/shepherd
+%dir /var/run/shepherd
+%{systemdtmpfilesdir}/shepherd.conf
+%{_infodir}/shepherd.info*
+%{_mandir}/man1/herd.1*
+%{_mandir}/man1/shepherd.1*
+
+%files init
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/halt
+%attr(755,root,root) %{_sbindir}/reboot
+%attr(755,root,root) %{_sbindir}/shutdown
+%{_mandir}/man8/halt.8*
+%{_mandir}/man8/reboot.8*
diff --git a/shepherd-info.patch b/shepherd-info.patch
new file mode 100644
index 0000000..caf028e
--- /dev/null
+++ b/shepherd-info.patch
@@ -0,0 +1,113 @@
+--- shepherd-0.9.3/doc/shepherd.texi.orig	2022-11-16 11:12:53.000000000 +0100
++++ shepherd-0.9.3/doc/shepherd.texi	2022-12-14 21:52:44.598914398 +0100
+@@ -23,15 +23,12 @@ copy of the license is included in the s
+ Documentation License''.
+ @end copying
+ 
+- at dircategory System software
++ at dircategory System software:
+ @direntry
+-* shepherd: (shepherd). The Shepherd service manager.
+-* herd: (shepherd)Invoking herd
+-                        Controlling the Shepherd service manager.
+-* reboot: (shepherd)Invoking reboot
+-                        Rebooting a Shepherd-controlled system.
+-* halt: (shepherd)Invoking halt
+-                        Turning off a Shepherd-controlled system.
++* shepherd: (shepherd).			The Shepherd service manager
++* herd: (shepherd)herd.			Controlling the Shepherd service manager
++* reboot: (shepherd)reboot.		Rebooting a Shepherd-controlled system
++* halt: (shepherd)halt.			Turning off a Shepherd-controlled system
+ @end direntry
+ 
+ @titlepage
+@@ -370,15 +367,15 @@ trouble.  Both @command{shepherd} and he
+ 
+ 
+ @menu
+-* Invoking shepherd::           How to start the service damon.
+-* Invoking herd::               Controlling daemons.
+-* Invoking reboot::             Rebooting a shepherd-controlled system.
+-* Invoking halt::               Turning off a shepherd-controlled system.
++* shepherd::                    How to start the service damon.
++* herd::                        Controlling daemons.
++* reboot::                      Rebooting a shepherd-controlled system.
++* halt::                        Turning off a shepherd-controlled system.
+ @end menu
+ 
+ @c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ 
+- at node Invoking shepherd
++ at node shepherd
+ @section Invoking @command{shepherd}
+ 
+ @cindex @command{shepherd} Invocation
+@@ -460,7 +457,7 @@ environment variable is defined.
+ 
+ If @code{-} is specified as file name, commands will be read from
+ standard input, one per line, as would be passed on a @command{herd}
+-command line (@pxref{Invoking herd}).
++command line (@pxref{herd}).
+ 
+ @item --quiet
+ Synonym for @code{--silent}.
+@@ -469,12 +466,12 @@ Synonym for @code{--silent}.
+ 
+ @c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ 
+- at node Invoking herd
++ at node herd
+ @section Invoking @command{herd}
+ 
+ @cindex herd
+ The @command{herd} command is a generic client program to control a
+-running instance of @command{shepherd} (@pxref{Invoking shepherd}).
++running instance of @command{shepherd} (@pxref{shepherd}).
+ When running as root, it communicates with the @dfn{system
+ instance}---the process with PID at tie{}1; when running as a normal user,
+ it communicates with the @dfn{user's instance}, which is a regular,
+@@ -534,7 +531,7 @@ failed.
+ 
+ @c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ 
+- at node Invoking reboot
++ at node reboot
+ @section Invoking @command{reboot}
+ 
+ @cindex herd
+@@ -560,7 +557,7 @@ not specified, @file{@var{localstatedir}
+ 
+ @c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ 
+- at node Invoking halt
++ at node halt
+ @section Invoking @command{halt}
+ 
+ @cindex herd
+@@ -1215,7 +1212,7 @@ Return a procedure that terminates a sys
+ @section Service Examples
+ 
+ The configuration file of the @command{shepherd} command
+-(@pxref{Invoking shepherd}) defines, registers, and possibly starts
++(@pxref{shepherd}) defines, registers, and possibly starts
+ @dfn{services}.  Each service specifies other services it depends on and
+ how it is started and stopped.  The configuration file contains Scheme
+ code that uses the programming interface of the @code{(shepherd
+@@ -1421,7 +1418,7 @@ Displays detailed information about ever
+ @item load @var{file}
+ Evaluate the Scheme code in @var{file} in a fresh module that uses the
+ @code{(oop goops)} and @code{(shepherd services)} modules---as with the
+- at code{--config} option of @command{shepherd} (@pxref{Invoking shepherd}).
++ at code{--config} option of @command{shepherd} (@pxref{shepherd}).
+ 
+ @item eval @var{exp}
+ Likewise, evaluate Scheme expression @var{exp} in a fresh module with
+@@ -1542,7 +1539,7 @@ Receive a command from @var{port} and re
+ @end deffn
+ 
+ In practice, communication with @command{shepherd} takes place over a
+-Unix-domain socket, as discussed earlier (@pxref{Invoking shepherd}).
++Unix-domain socket, as discussed earlier (@pxref{shepherd}).
+ Clients may open a connection with the procedure below.
+ 
+ @deffn {procedure} open-connection [@var{file}]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/shepherd.git/commitdiff/7ceeaeb905df2da444340c46a5549751acdd6c7c



More information about the pld-cvs-commit mailing list