diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-process/daemontools |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-process/daemontools')
-rw-r--r-- | sys-process/daemontools/Manifest | 10 | ||||
-rw-r--r-- | sys-process/daemontools/daemontools-0.76-r7.ebuild | 57 | ||||
-rw-r--r-- | sys-process/daemontools/files/0.76-errno.patch | 11 | ||||
-rw-r--r-- | sys-process/daemontools/files/0.76-warnings.patch | 74 | ||||
-rw-r--r-- | sys-process/daemontools/files/svscan.init | 31 | ||||
-rw-r--r-- | sys-process/daemontools/files/svscan.init-0.76-r7 | 31 | ||||
-rw-r--r-- | sys-process/daemontools/metadata.xml | 8 |
7 files changed, 222 insertions, 0 deletions
diff --git a/sys-process/daemontools/Manifest b/sys-process/daemontools/Manifest new file mode 100644 index 000000000000..e95c517a9123 --- /dev/null +++ b/sys-process/daemontools/Manifest @@ -0,0 +1,10 @@ +AUX 0.76-errno.patch 246 SHA256 1afaa3b5a26e7382cfe1c9880ddf3910fde4ded6fa815440ef087506543a3947 SHA512 76664b71e16ba4dbb081604a1a8c9ddc58a603777dccc0a53b0af9442ff8f0cdfce9ef8b05926dac62b81b2c805262df6a7e4df65920c00583132dbf136ba85e WHIRLPOOL 1553236893a61aa08d84d84e0dbb8ebb373a3b7fe9de93b516bc21ba93d0b697b99402b7eeb9e5e3fb4e90dc2596f0388eb8407dc972ecf292de6b65d2a00320 +AUX 0.76-warnings.patch 1305 SHA256 42bfcc27660ef6459d39fbaaa9f1852313baadf7b96201872e4deb12804f4833 SHA512 13288c5d1fc5f775cff9286b5cb4c711c5e6e52ef9c714b377cec0328c887b065385c464ca27b2dbe921e66956c20b5f3205cc36d7d2e81c383b5765cbd554aa WHIRLPOOL 826de0b299a751c927f863270822932ef82369bdb91c22edc43037af286d7e295297577d357bcd74ca010688dba7a62377f34c900a075b797904adea283e7717 +AUX svscan.init 681 SHA256 ea663ab5edc62dbbad8b9abc9aba23b121c9e72581e2aca98d6596a315f0c374 SHA512 30fc8685158dfc88542cfce193e5084f7175d57a8297ee12f96578ca85a9112f1af9f1a856cfb530a3dea0552cf481b5afa7cfc88a8bbc9cee34303e0893ba5b WHIRLPOOL eb36b14d023a3579bda0c05250eafab30d07cfafb8f74a4ed7d97ffc376c2086bbb1a5b6384bda91c2f487d07a877948231758f0d12b0af60980d20df99079d9 +AUX svscan.init-0.76-r7 688 SHA256 465f9d43b65719ad5d4e3d85779a99e5ce2f93b781b542a573fd2d0f10e2f1e4 SHA512 171ca666fc788c564e1d081e90591e98367c9a9db37d9a05d31aa80c01c9f089360f91fb2b71337f7a046e857548c287df5aef054c43d5c93cc083163d602cc4 WHIRLPOOL eac9aebcbb4e90714d24097a116d31125cb145b6ceffa2c66968d98406cdae8da1edcd70f841ec61ba547c6b9506ccb62f9627be64d93a175a774744ca4717d1 +DIST daemontools-0.76-man-20020131.tar.gz 8005 SHA256 1b4d77afe0878a0df587672531a3f7bbe0feb7ad0e9acf50395426e3c434600a SHA512 1767fafb2d92902f903637f08363031971bda007d1b7b53059551c740976d1c643229ccc44171796c1dcb43cbd875a17178edc634e140671817e0ef0ba3ad80b WHIRLPOOL 06de55d879f0ddfe6137dc156b728333e91b4929a7f18268021b078af87a97f8a37f3e768d8511e81ac8d2b49bd83f09f14eb468e853cee022f1cdae5a0f8c54 +DIST daemontools-0.76.tar.gz 36975 SHA256 a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f SHA512 e4a7938352b745a03ccc41acdddba1e6782f0ca245e5cae060de62ab6c5a23c841a994c30140298d274405a7f26d53ba7e84e5810a3d185b2c01e4c0feffe6c7 WHIRLPOOL 4079e32dbaa60a7645a80fab2ea7bdfab67551876b36398c7ec13fef823038d8bf0ad080514e46e1ae93bda74e7c5f6474d8533517e3dc04c6b45c50bcf72849 +EBUILD daemontools-0.76-r7.ebuild 1388 SHA256 6ce1d8856d4d23a48038c2a116d4f0db00effc52417445492edc17caf508c66b SHA512 c400e05a189108972b73b2d98f93fc1cb4e0cb63f4bc244175b26c930d60f06b35555d3c2f3e3eeff4e5b7fb800ba4858bbbcc1291ca7607035194a322172d1e WHIRLPOOL a546f6cf2db9bd049e87bb789b437710ce7df8a7992142e7eb6cc552c88ccd04a45bc69a7b2a0a535f2681b19241c5eef926ad58345b81d0299c6bc4abd4d0f9 +MISC ChangeLog 3207 SHA256 98deaba7a0f046744f49f3aea2d7b6fb1ff18d3cc650b4e7fcfd200b2316227d SHA512 508acb3ae0c272b617e9671cc8c3fd36a48544021ec465557ac3a5943d13d21c36e89f83652afd1f7063dfd7908b8e4a92344c73d3b7de4bebe2ec97606cb9c6 WHIRLPOOL 166aa2148864cd15a3aa29b5e1aa23def0e5de80ee51ca9a9113e3aa7a99232e10268a8ad62778bd22d74889e4b0ec459714882877826befc8158c343e249b86 +MISC ChangeLog-2015 6364 SHA256 d57233508671278366a300253cdf63bff8c509f7ea2c80732f205e8977bfa1a9 SHA512 937a9032cd56ab2a966e271298dfae52031066fede3716748854d9ab1d3025c71c10d7c271d5705a277cf8263c8fe8a3c9d5a42f02565ba2788b9eee42e38dab WHIRLPOOL cb4ecf567824b5e67f9a37ee7edb42c996950956252f2c91a2c2a42e1b5ad317ea71f6a3133f8d0d6b1b6a8d9af663d3c2e0873c30d650c36f1408124f92b73a +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/sys-process/daemontools/daemontools-0.76-r7.ebuild b/sys-process/daemontools/daemontools-0.76-r7.ebuild new file mode 100644 index 000000000000..2550eb7f24ea --- /dev/null +++ b/sys-process/daemontools/daemontools-0.76-r7.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils flag-o-matic qmail + +DESCRIPTION="Collection of tools for managing UNIX services" +HOMEPAGE="http://cr.yp.to/daemontools.html" +SRC_URI="http://cr.yp.to/daemontools/${P}.tar.gz + http://smarden.org/pape/djb/manpages/${P}-man-20020131.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" +IUSE="selinux static" + +DEPEND="" +RDEPEND="selinux? ( sec-policy/selinux-daemontools ) + !app-doc/daemontools-man" + +S="${WORKDIR}"/admin/${P}/src + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${PV}-errno.patch + epatch "${FILESDIR}"/${PV}-warnings.patch + ht_fix_file Makefile print-{cc,ld}.sh + + use static && append-ldflags -static + qmail_set_cc +} + +src_compile() { + touch home + emake || die +} + +src_install() { + keepdir /service + + dobin $(<../package/commands) || die + dodoc CHANGES ../package/README TODO + doman "${WORKDIR}"/${PN}-man/*.8 + + newinitd "${FILESDIR}"/svscan.init-0.76-r7 svscan +} + +pkg_postinst() { + einfo + einfo "You can run daemontools using the svscan init.d script," + einfo "or you could run it through inittab." + einfo "To use inittab, emerge supervise-scripts and run:" + einfo "svscan-add-to-inittab" + einfo "Then you can hup init with the command telinit q" + einfo +} diff --git a/sys-process/daemontools/files/0.76-errno.patch b/sys-process/daemontools/files/0.76-errno.patch new file mode 100644 index 000000000000..3af157c462c9 --- /dev/null +++ b/sys-process/daemontools/files/0.76-errno.patch @@ -0,0 +1,11 @@ +--- src/error.h 2001-07-12 11:49:49.000000000 -0500 ++++ src/error.h 2003-02-26 02:14:06.000000000 -0600 +@@ -3,7 +3,7 @@ + #ifndef ERROR_H + #define ERROR_H + +-extern int errno; ++#include <errno.h> + + extern int error_intr; + extern int error_nomem; diff --git a/sys-process/daemontools/files/0.76-warnings.patch b/sys-process/daemontools/files/0.76-warnings.patch new file mode 100644 index 000000000000..f558bb18b1bf --- /dev/null +++ b/sys-process/daemontools/files/0.76-warnings.patch @@ -0,0 +1,74 @@ +Fixup misc warnings + +Patch by RiverRat + +http://bugs.gentoo.org/124487 + +--- src/chkshsgr.c ++++ src/chkshsgr.c +@@ -1,10 +1,13 @@ + /* Public domain. */ + ++#include <sys/types.h> ++#include <stdlib.h> ++#include <grp.h> + #include <unistd.h> + + int main() + { +- short x[4]; ++ gid_t x[4]; + + x[0] = x[1] = 0; + if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); +--- src/matchtest.c ++++ src/matchtest.c +@@ -1,3 +1,4 @@ ++#include <unistd.h> + #include "match.h" + #include "buffer.h" + #include "str.h" +--- src/multilog.c ++++ src/multilog.c +@@ -1,3 +1,4 @@ ++#include <stdio.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> +--- src/prot.c ++++ src/prot.c +@@ -1,5 +1,8 @@ + /* Public domain. */ + ++#include <sys/types.h> ++#include <unistd.h> ++#include <grp.h> + #include "hasshsgr.h" + #include "prot.h" + +--- src/seek_set.c ++++ src/seek_set.c +@@ -1,6 +1,7 @@ + /* Public domain. */ + + #include <sys/types.h> ++#include <unistd.h> + #include "seek.h" + + #define SET 0 /* sigh */ +--- src/supervise.c ++++ src/supervise.c +@@ -1,3 +1,4 @@ ++#include <stdio.h> + #include <unistd.h> + #include <sys/types.h> + #include <sys/stat.h> +--- src/pathexec_run.c ++++ src/pathexec_run.c +@@ -1,5 +1,6 @@ + /* Public domain. */ + ++#include <unistd.h> + #include "error.h" + #include "stralloc.h" + #include "str.h" diff --git a/sys-process/daemontools/files/svscan.init b/sys-process/daemontools/files/svscan.init new file mode 100644 index 000000000000..b8217db42d48 --- /dev/null +++ b/sys-process/daemontools/files/svscan.init @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools/files/svscan.init-0.76-r7 b/sys-process/daemontools/files/svscan.init-0.76-r7 new file mode 100644 index 000000000000..f05f5d4edfb7 --- /dev/null +++ b/sys-process/daemontools/files/svscan.init-0.76-r7 @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net + before ntpd ntp-client spamd apache apache2 +} + +start() { + ebegin "Starting service scan" + setsid start-stop-daemon --start --exec /usr/bin/svscan \ + --background --make-pidfile \ + --pidfile /var/run/svscan.pid -- /service + eend $? +} + +stop() { + ebegin "Stopping service scan" + start-stop-daemon --stop --exec /usr/bin/svscan \ + --pidfile /var/run/svscan.pid + eend $? + + ebegin "Stopping service scan services" + svc -dx /service/* 2>/dev/null + eend $? + + ebegin "Stopping service scan logging" + svc -dx /service/*/log 2>/dev/null + eend $? +} diff --git a/sys-process/daemontools/metadata.xml b/sys-process/daemontools/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/sys-process/daemontools/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> +</maintainer> +</pkgmetadata> |