1 |
commit: cfe91b2bbc8bf7091051fbc1e14937338651e570 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 11 03:28:30 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 5 23:26:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfe91b2b |
7 |
|
8 |
app-admin/conserver: version bump to 8.2.2 |
9 |
|
10 |
Bump EAPI to 6 |
11 |
Added freeipmi useflag |
12 |
modernized ebuild and initsripts |
13 |
|
14 |
Bug: https://bugs.gentoo.org/674420 |
15 |
Closes: https://bugs.gentoo.org/488312 |
16 |
Package-Manager: Portage-2.3.51, Repoman-2.3.12 |
17 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
18 |
|
19 |
app-admin/conserver/Manifest | 1 + |
20 |
app-admin/conserver/conserver-8.2.2.ebuild | 100 +++++++++++++++++++++ |
21 |
.../files/conserver-8.2.2-ssl-compat.patch | 40 +++++++++ |
22 |
.../files/conserver-8.2.2-time-argument.patch | 22 +++++ |
23 |
app-admin/conserver/files/conserver.confd-r1 | 5 ++ |
24 |
app-admin/conserver/files/conserver.initd-r1 | 14 +++ |
25 |
app-admin/conserver/metadata.xml | 7 ++ |
26 |
7 files changed, 189 insertions(+) |
27 |
|
28 |
diff --git a/app-admin/conserver/Manifest b/app-admin/conserver/Manifest |
29 |
index a6e85102fc3..fdc9c763ec8 100644 |
30 |
--- a/app-admin/conserver/Manifest |
31 |
+++ b/app-admin/conserver/Manifest |
32 |
@@ -1 +1,2 @@ |
33 |
DIST conserver-8.1.18.tar.gz 323247 BLAKE2B 48176ba8be648df16ddb18c1a760af8069f7d926d2e0767e3b7ef903276d6104cfa9464a6ebdce009720fe5118862d89cf5371e104d17b967e11fe8e8968e8f9 SHA512 a8029aef5fd84f93eb3ae56ba7f751d79a6065c012bfd805e050f8c9edf09fd660c272d3f3ce0a47cfb17678574babbecad63f8bfd50ad4fdccdbabc2249435f |
34 |
+DIST conserver-8.2.2.tar.gz 329048 BLAKE2B 0148a5b5b11fcc75a071b9759e129a94f1fe623df35e7549e967d0037ddb378447623070ce43429daf4868308be150f5ba318354e3181d94ccb1199655231373 SHA512 7c59dc59e59e3ee0172b2a52214cd8dd83383168fe0f145870d128b900a012cfa38c2f1ae85769c226d941ca1a764f93ec3bf353da896537ae1be5b6bc17e6c6 |
35 |
|
36 |
diff --git a/app-admin/conserver/conserver-8.2.2.ebuild b/app-admin/conserver/conserver-8.2.2.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..ceb5c721f56 |
39 |
--- /dev/null |
40 |
+++ b/app-admin/conserver/conserver-8.2.2.ebuild |
41 |
@@ -0,0 +1,100 @@ |
42 |
+# Copyright 1999-2019 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=6 |
46 |
+ |
47 |
+inherit autotools pam ssl-cert |
48 |
+ |
49 |
+DESCRIPTION="Serial Console Manager" |
50 |
+HOMEPAGE="https://www.conserver.com" |
51 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="BSD BSD-with-attribution" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
56 |
+IUSE="debug ipv6 freeipmi kerberos libressl pam ssl test tcpd" |
57 |
+ |
58 |
+DEPEND="debug? ( dev-libs/dmalloc:= ) |
59 |
+ freeipmi? ( sys-libs/freeipmi:= ) |
60 |
+ kerberos? ( |
61 |
+ virtual/krb5 |
62 |
+ net-libs/libgssglue |
63 |
+ ) |
64 |
+ ssl? ( |
65 |
+ !libressl? ( dev-libs/openssl:0= ) |
66 |
+ libressl? ( dev-libs/libressl:0= ) |
67 |
+ ) |
68 |
+ pam? ( virtual/pam ) |
69 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
70 |
+" |
71 |
+RDEPEND="${DEPEND} |
72 |
+ pam? ( sys-auth/pambase )" |
73 |
+ |
74 |
+DOCS=( CHANGES FAQ PROTOCOL README conserver/Sun-serial contrib/maketestcerts) |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}/${P}-time-argument.patch" |
78 |
+ "${FILESDIR}/${P}-ssl-compat.patch" |
79 |
+) |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ sed -e '/^INSTALL_PROGRAM/s:-s::' \ |
84 |
+ -i {console,conserver,autologin,contrib/chat}/Makefile.in || die |
85 |
+ eautoreconf |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local myconf=( |
90 |
+ $(use_with debug dmalloc) |
91 |
+ $(use_with ipv6) |
92 |
+ $(use_with freeipmi) |
93 |
+ $(use_with kerberos gssapi) |
94 |
+ $(use_with ssl openssl) |
95 |
+ $(use_with pam) |
96 |
+ $(use_with tcpd libwrap) |
97 |
+ --with-cffile=conserver/conserver.cf |
98 |
+ --with-logfile=/var/log/conserver.log |
99 |
+ --with-master=localhost |
100 |
+ --with-pidfile=/run/conserver.pid |
101 |
+ --with-port=7782 |
102 |
+ --with-pwdfile=conserver/conserver.passwd |
103 |
+ ) |
104 |
+ econf "${myconf[@]}" |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ emake DESTDIR="${D}" exampledir="/usr/share/doc/${PF}/examples" install |
109 |
+ |
110 |
+ keepdir /var/consoles |
111 |
+ fowners daemon:daemon /var/consoles |
112 |
+ fperms 700 /var/consoles |
113 |
+ |
114 |
+ newinitd "${FILESDIR}"/conserver.initd-r1 conserver |
115 |
+ newconfd "${FILESDIR}"/conserver.confd-r1 conserver |
116 |
+ |
117 |
+ dodir /etc/conserver |
118 |
+ fperms 700 /etc/conserver |
119 |
+ insinto /etc/conserver |
120 |
+ newins "${S}"/conserver.cf/conserver.cf conserver.cf.sample |
121 |
+ newins "${S}"/conserver.cf/conserver.passwd conserver.passwd.sample |
122 |
+ |
123 |
+ einstalldocs |
124 |
+ docinto examples |
125 |
+ dodoc -r conserver.cf/samples/. |
126 |
+ |
127 |
+ newpamd "${FILESDIR}"/conserver.pam-pambase conserver |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ # hangs without -j1 |
132 |
+ emake -j1 test |
133 |
+} |
134 |
+ |
135 |
+pkg_postinst() { |
136 |
+ if use ssl; then |
137 |
+ if [[ ! -f "${EROOT}"/etc/ssl/conserver/conserver.key ]]; then |
138 |
+ install_cert /etc/ssl/conserver/conserver |
139 |
+ fi |
140 |
+ fi |
141 |
+} |
142 |
|
143 |
diff --git a/app-admin/conserver/files/conserver-8.2.2-ssl-compat.patch b/app-admin/conserver/files/conserver-8.2.2-ssl-compat.patch |
144 |
new file mode 100644 |
145 |
index 00000000000..f3054a9a0da |
146 |
--- /dev/null |
147 |
+++ b/app-admin/conserver/files/conserver-8.2.2-ssl-compat.patch |
148 |
@@ -0,0 +1,40 @@ |
149 |
+diff --git a/configure.in b/configure.in |
150 |
+index a060811..00b7f8b 100644 |
151 |
+--- a/configure.in |
152 |
++++ b/configure.in |
153 |
+@@ -535,7 +535,7 @@ AC_ARG_WITH(openssl, |
154 |
+ [LIBS="$LIBS -lssl -lcrypto" |
155 |
+ AC_MSG_CHECKING(for openssl libraries -lssl and -lcrypto) |
156 |
+ AC_TRY_LINK([#include <openssl/ssl.h> |
157 |
+- ],[SSL_library_init()], |
158 |
++ ],[SSL_CTX_new(NULL)], |
159 |
+ [AC_MSG_RESULT(yes) |
160 |
+ cons_with_openssl="YES" |
161 |
+ AC_DEFINE(HAVE_OPENSSL) |
162 |
+diff --git a/conserver/cutil.c b/conserver/cutil.c |
163 |
+index af8196c..dcfe333 100644 |
164 |
+--- a/conserver/cutil.c |
165 |
++++ b/conserver/cutil.c |
166 |
+@@ -57,7 +57,9 @@ Bye(int status) |
167 |
+ { |
168 |
+ DestroyDataStructures(); |
169 |
+ #if HAVE_OPENSSL |
170 |
++# if OPENSSL_VERSION_NUMBER < 0x10100000L |
171 |
+ ERR_free_strings(); |
172 |
++# endif |
173 |
+ #endif |
174 |
+ exit(status); |
175 |
+ } |
176 |
+diff --git a/conserver/cutil.h b/conserver/cutil.h |
177 |
+index 899da7a..63aef65 100644 |
178 |
+--- a/conserver/cutil.h |
179 |
++++ b/conserver/cutil.h |
180 |
+@@ -7,6 +7,8 @@ |
181 |
+ #include <stdarg.h> |
182 |
+ #if HAVE_OPENSSL |
183 |
+ # include <openssl/ssl.h> |
184 |
++# include <openssl/bn.h> |
185 |
++# include <openssl/dh.h> |
186 |
+ # include <openssl/err.h> |
187 |
+ # if OPENSSL_VERSION_NUMBER < 0x10100000L |
188 |
+ # define TLS_method SSLv23_method |
189 |
|
190 |
diff --git a/app-admin/conserver/files/conserver-8.2.2-time-argument.patch b/app-admin/conserver/files/conserver-8.2.2-time-argument.patch |
191 |
new file mode 100644 |
192 |
index 00000000000..0a42987135b |
193 |
--- /dev/null |
194 |
+++ b/app-admin/conserver/files/conserver-8.2.2-time-argument.patch |
195 |
@@ -0,0 +1,22 @@ |
196 |
+From 3d9d5509c90524256861dd7cf0b7c0c6fdf5424a Mon Sep 17 00:00:00 2001 |
197 |
+From: Ed Maste <emaste@×××××××.org> |
198 |
+Date: Wed, 10 Oct 2018 12:56:26 -0400 |
199 |
+Subject: [PATCH] Correct argument type passed to time() |
200 |
+ |
201 |
+--- |
202 |
+ conserver/readcfg.c | 2 +- |
203 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
204 |
+ |
205 |
+diff --git a/conserver/readcfg.c b/conserver/readcfg.c |
206 |
+index 949b9bf..d5bb90a 100644 |
207 |
+--- a/conserver/readcfg.c |
208 |
++++ b/conserver/readcfg.c |
209 |
+@@ -3116,7 +3116,7 @@ ConsoleAdd(CONSENT *c) |
210 |
+ pCEmatch->logfilemax = c->logfilemax; |
211 |
+ if (pCEmatch->logfilemax != (off_t) 0 && |
212 |
+ timers[T_ROLL] == (time_t)0) |
213 |
+- timers[T_ROLL] = time((time_t)0); |
214 |
++ timers[T_ROLL] = time((time_t *)0); |
215 |
+ |
216 |
+ SwapStr(&pCEmatch->motd, &c->motd); |
217 |
+ SwapStr(&pCEmatch->idlestring, &c->idlestring); |
218 |
|
219 |
diff --git a/app-admin/conserver/files/conserver.confd-r1 b/app-admin/conserver/files/conserver.confd-r1 |
220 |
new file mode 100644 |
221 |
index 00000000000..119ceb06006 |
222 |
--- /dev/null |
223 |
+++ b/app-admin/conserver/files/conserver.confd-r1 |
224 |
@@ -0,0 +1,5 @@ |
225 |
+# Config file for /etc/init.d/conserver |
226 |
+# check CONSERVER(8) for details |
227 |
+ |
228 |
+#CONSERVER_LOG="/var/log/conserver.log" |
229 |
+#CONSERVER_OPTS="" |
230 |
|
231 |
diff --git a/app-admin/conserver/files/conserver.initd-r1 b/app-admin/conserver/files/conserver.initd-r1 |
232 |
new file mode 100644 |
233 |
index 00000000000..839aae6825d |
234 |
--- /dev/null |
235 |
+++ b/app-admin/conserver/files/conserver.initd-r1 |
236 |
@@ -0,0 +1,14 @@ |
237 |
+#!/sbin/openrc-run |
238 |
+# Copyright 1999-2019 Gentoo Authors |
239 |
+# Distributed under the terms of the GNU General Public License v2 |
240 |
+ |
241 |
+depend() { |
242 |
+ need clock localmount |
243 |
+ use net |
244 |
+} |
245 |
+ |
246 |
+command="/usr/sbin/conserver" |
247 |
+command_args="-d -L ${CONSERVER_LOG:-/var/log/${RC_SVCNAME}.log} ${CONSERVER_OPTS}" |
248 |
+command_background="true" |
249 |
+pidfile="/run/${RC_SVCNAME}.pid" |
250 |
+required_files="/etc/conserver/${RC_SVCNAME}.cf /etc/conserver/${RC_SVCNAME}.passwd" |
251 |
|
252 |
diff --git a/app-admin/conserver/metadata.xml b/app-admin/conserver/metadata.xml |
253 |
index 06b3d82363f..3b1ff77779c 100644 |
254 |
--- a/app-admin/conserver/metadata.xml |
255 |
+++ b/app-admin/conserver/metadata.xml |
256 |
@@ -5,6 +5,10 @@ |
257 |
<email>dan@××××××××.net</email> |
258 |
<name>Dan Weeks</name> |
259 |
</maintainer> |
260 |
+ <maintainer type="person"> |
261 |
+ <email>gyakovlev@g.o</email> |
262 |
+ <name>Georgy Yakovlev</name> |
263 |
+ </maintainer> |
264 |
<maintainer type="project"> |
265 |
<email>proxy-maint@g.o</email> |
266 |
<name>Proxy Maintainers</name> |
267 |
@@ -22,4 +26,7 @@ |
268 |
that, assuming you have a network connection, you can interact with any |
269 |
of the equipment from home or wherever. |
270 |
</longdescription> |
271 |
+ <use> |
272 |
+ <flag name="freeipmi">Compile in FreeIPMI support via sys-libs/freeipmi</flag> |
273 |
+ </use> |
274 |
</pkgmetadata> |