1 |
commit: 1b14c147db4e7d0862cc49fb0c73e1376cf52c20 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 18 02:50:10 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 18 02:51:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b14c147 |
7 |
|
8 |
sys-process/daemontools-encore: bump to v1.11 |
9 |
|
10 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
sys-process/daemontools-encore/Manifest | 1 + |
14 |
.../daemontools-encore-1.11.ebuild | 55 +++++++++++++++++ |
15 |
...-encore-1.11-add-missing-setuser-man-page.patch | 68 ++++++++++++++++++++++ |
16 |
...tools-encore-1.11-do-not-always-run-tests.patch | 21 +++++++ |
17 |
4 files changed, 145 insertions(+) |
18 |
|
19 |
diff --git a/sys-process/daemontools-encore/Manifest b/sys-process/daemontools-encore/Manifest |
20 |
index 843461195af..bddd090077f 100644 |
21 |
--- a/sys-process/daemontools-encore/Manifest |
22 |
+++ b/sys-process/daemontools-encore/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST daemontools-encore-1.10.tar.gz 87096 BLAKE2B f0e5accc319caa1b4f4f15f5bdf2c2d59c5f398698509ad288a9b7ba33944fb49155386bf0edebda20959ea1c7d1fce14be883a0a96c1d2e054886c7df17d64a SHA512 569030fb9941186f167644740d0424987105b7a818d5a3cdb4e90ced5530a16938b7205141ca2f198f83362269f9cc28eb5acafe9cd7f985c8e56d307f706767 |
25 |
+DIST daemontools-encore-1.11.tar.gz 94917 BLAKE2B 747da62ae97d4e4b28ca5309cbf835fe989db23d9f7a408bcce6fa7b17a658740024867daf9116dcbcb02e16a6b0ee92210bd485ecceef9b7ecbb2e0ea79e110 SHA512 1e1a96a948d551bfc38496740eaa85b7cae0d2469419293b133533da75ca03657fe6108129703ad7b773925c58ce84a4f242eb612133fb0c499f47ae50423a8a |
26 |
|
27 |
diff --git a/sys-process/daemontools-encore/daemontools-encore-1.11.ebuild b/sys-process/daemontools-encore/daemontools-encore-1.11.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..80d87fa6647 |
30 |
--- /dev/null |
31 |
+++ b/sys-process/daemontools-encore/daemontools-encore-1.11.ebuild |
32 |
@@ -0,0 +1,55 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+inherit flag-o-matic qmail |
39 |
+ |
40 |
+DESCRIPTION="Collection of tools for managing UNIX services" |
41 |
+HOMEPAGE="https://untroubled.org/daemontools-encore/" |
42 |
+SRC_URI="https://untroubled.org/daemontools-encore/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="selinux static" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+RDEPEND="selinux? ( sec-policy/selinux-daemontools ) |
51 |
+ !sys-process/daemontools |
52 |
+ !app-doc/daemontools-man" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ "${FILESDIR}"/${PN}-1.11-do-not-always-run-tests.patch |
56 |
+ "${FILESDIR}"/${PN}-1.11-add-missing-setuser-man-page.patch |
57 |
+) |
58 |
+ |
59 |
+src_compile() { |
60 |
+ use static && append-ldflags -static |
61 |
+ qmail_set_cc |
62 |
+ emake |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ keepdir /service |
67 |
+ |
68 |
+ echo "${ED%/}/usr/bin" >conf-bin |
69 |
+ echo "${ED%/}/usr/share/man" >conf-man |
70 |
+ dodir /usr/bin |
71 |
+ dodir /usr/share/man |
72 |
+ emake install |
73 |
+ |
74 |
+ dodoc ChangeLog CHANGES CHANGES.djb README TODO |
75 |
+ |
76 |
+ newinitd "${FILESDIR}"/svscan.init-2 svscan |
77 |
+} |
78 |
+ |
79 |
+pkg_postinst() { |
80 |
+ einfo |
81 |
+ einfo "You can run daemontools using the svscan init.d script," |
82 |
+ einfo "or you could run it through inittab." |
83 |
+ einfo "To use inittab, emerge supervise-scripts and run:" |
84 |
+ einfo "svscan-add-to-inittab" |
85 |
+ einfo "Then you can hup init with the command telinit q" |
86 |
+ einfo |
87 |
+} |
88 |
|
89 |
diff --git a/sys-process/daemontools-encore/files/daemontools-encore-1.11-add-missing-setuser-man-page.patch b/sys-process/daemontools-encore/files/daemontools-encore-1.11-add-missing-setuser-man-page.patch |
90 |
new file mode 100644 |
91 |
index 00000000000..58b159b762e |
92 |
--- /dev/null |
93 |
+++ b/sys-process/daemontools-encore/files/daemontools-encore-1.11-add-missing-setuser-man-page.patch |
94 |
@@ -0,0 +1,68 @@ |
95 |
+Add missing setuser.8 |
96 |
+ |
97 |
+Upstream-bug: https://github.com/bruceg/daemontools-encore/issues/60 |
98 |
+ |
99 |
+--- /dev/null |
100 |
++++ b/setuser.8 |
101 |
+@@ -0,0 +1,61 @@ |
102 |
++.TH setuser 8 |
103 |
++.SH NAME |
104 |
++setuser \- runs another program under a specified account's environment. |
105 |
++.SH SYNOPSIS |
106 |
++.B setuser |
107 |
++.I account |
108 |
++.I child |
109 |
++.SH DESCRIPTION |
110 |
++.I account |
111 |
++is a single argument. |
112 |
++.I child |
113 |
++consists of one or more arguments. |
114 |
++ |
115 |
++.B setuser |
116 |
++sets |
117 |
++.BR $GID , |
118 |
++.BR $UID , |
119 |
++.BR $SHELL , |
120 |
++.BR $HOME , |
121 |
++and |
122 |
++.BR $USER |
123 |
++to |
124 |
++.IR account 's |
125 |
++gid number, uid number, login shell, home directory, and user name, respectively. |
126 |
++It changes the working directory to |
127 |
++.IR account 's |
128 |
++home, and sets its uid and gid to |
129 |
++.IR account 's |
130 |
++uid and gid, with supplementary groups set up. |
131 |
++It then runs |
132 |
++.IR child . |
133 |
++ |
134 |
++.B setuser |
135 |
++cannot be run by anyone other than root. |
136 |
++.SH EXIT CODES |
137 |
++.B setuser |
138 |
++exits 111 if it cannot find a UNIX account named |
139 |
++.IB account , |
140 |
++if it cannot setup the environment, change directory, setgid, setuid, or run |
141 |
++.IR child . |
142 |
++Otherwise its exit code is the same as that of |
143 |
++.IR child . |
144 |
++.SH SEE ALSO |
145 |
++envdir(8), |
146 |
++envini(8), |
147 |
++envuidgid(8), |
148 |
++fghack(8), |
149 |
++multilog(8), |
150 |
++pgrphack(8), |
151 |
++readproctitle(8), |
152 |
++setlock(8), |
153 |
++setuidgid(8), |
154 |
++softlimit(8), |
155 |
++supervise(8), |
156 |
++svc(8), |
157 |
++svok(8), |
158 |
++svscan(8), |
159 |
++svscanboot(8), |
160 |
++svstat(8), |
161 |
++tai64n(8), |
162 |
++tai64nlocal(8) |
163 |
|
164 |
diff --git a/sys-process/daemontools-encore/files/daemontools-encore-1.11-do-not-always-run-tests.patch b/sys-process/daemontools-encore/files/daemontools-encore-1.11-do-not-always-run-tests.patch |
165 |
new file mode 100644 |
166 |
index 00000000000..e23faad92f4 |
167 |
--- /dev/null |
168 |
+++ b/sys-process/daemontools-encore/files/daemontools-encore-1.11-do-not-always-run-tests.patch |
169 |
@@ -0,0 +1,21 @@ |
170 |
+--- a/Makefile |
171 |
++++ b/Makefile |
172 |
+@@ -66,6 +66,9 @@ byte_rchr.o: \ |
173 |
+ compile byte_rchr.c hasmemrchr.h byte.h |
174 |
+ ./compile byte_rchr.c |
175 |
+ |
176 |
++check: \ |
177 |
++rts |
178 |
++ |
179 |
+ chkshsgr: \ |
180 |
+ load chkshsgr.o |
181 |
+ ./load chkshsgr |
182 |
+@@ -247,7 +250,7 @@ compile iopause.c taia.h tai.h uint64.h select.h iopause.h |
183 |
+ ./compile iopause.c |
184 |
+ |
185 |
+ it: \ |
186 |
+-rts sysdeps man |
187 |
++programs sysdeps man |
188 |
+ |
189 |
+ load: \ |
190 |
+ conf-ld print-ld.sh systype warn-auto.sh |