1 |
commit: 8427a9e87b372c0b9dc9e8a91b9185ede4e4d1ec |
2 |
Author: Harri Nieminen <moikkis <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Dec 3 07:19:09 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 12 15:10:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8427a9e8 |
7 |
|
8 |
sys-process/acct: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
sys-process/acct/Manifest | 3 - |
13 |
sys-process/acct/acct-6.5.5-r4.ebuild | 43 --- |
14 |
sys-process/acct/acct-6.6.1.ebuild | 48 --- |
15 |
sys-process/acct/acct-6.6.2-r1.ebuild | 45 --- |
16 |
sys-process/acct/acct-6.6.2.ebuild | 45 --- |
17 |
sys-process/acct/acct-6.6.4.ebuild | 44 --- |
18 |
.../acct/files/acct-6.5.5-cross-compile.patch | 323 -------------------- |
19 |
sys-process/acct/files/acct-6.5.5-no-gets.patch | 22 -- |
20 |
.../acct/files/acct-6.6.1-cross-compile.patch | 324 --------------------- |
21 |
sys-process/acct/files/acct-6.6.1-math.patch | 27 -- |
22 |
sys-process/acct/files/acct-6.6.1-no-gets.patch | 25 -- |
23 |
.../acct/files/acct-6.6.1-texi-failure.patch | 32 -- |
24 |
.../acct/files/acct-6.6.2-cross-compile.patch | 320 -------------------- |
25 |
sys-process/acct/files/acct.confd | 13 - |
26 |
sys-process/acct/files/acct.initd | 36 --- |
27 |
sys-process/acct/files/acct.initd-r1 | 33 --- |
28 |
sys-process/acct/files/acct.logrotate | 14 - |
29 |
17 files changed, 1397 deletions(-) |
30 |
|
31 |
diff --git a/sys-process/acct/Manifest b/sys-process/acct/Manifest |
32 |
index 917c33fe087..20b32d7064c 100644 |
33 |
--- a/sys-process/acct/Manifest |
34 |
+++ b/sys-process/acct/Manifest |
35 |
@@ -1,4 +1 @@ |
36 |
-DIST acct-6.5.5.tar.gz 747225 BLAKE2B 7e44b8a3ccbaf31511185717c00089cee6ce55fb571a34a808aa26f919ed3d1f153a76bb9fd6a449adf1a298cec08e166a80f824f5813b7fd09fbbe35e4e17cc SHA512 6a36548cfe0e68829c94780aac4053f8a5840c5a704b88a9562758408dc64b4e26965743aec51ef02f7780efcfbf42d20805fecb12a68e7e1f279a1259151fb0 |
37 |
-DIST acct-6.6.1.tar.gz 2869677 BLAKE2B 8d84200d235f12bda99213d4910a24958b7ac77b9c6bb060d85926cc1ba04b67776cd5e7e3f88076ffaa4fa3540f53ae012b2a8dbc9198bf137d0c24a701ae71 SHA512 4bc3d6b41aeafcf8acfdd020057f1b6f15eea3589981387bca7e57aa8fe71d058e8def97f139dd2c11a1ac39f2d8b95bd103d31caff042cf716dd961b9588f5d |
38 |
-DIST acct-6.6.2.tar.gz 852375 BLAKE2B 34de3765ced8cf3f9e57428ce222c5e69a6c38b3d39be4c7f3482e9300713e0d7bff945fecf75a29ccc3056cda1558a3bf05b4e1b3413c2d5b3912f4c7208c9c SHA512 5942aa3d1faebb29bd6d6ff97c2ba8525dc5a9c85522c3f549ce0772042d3736e19126ddd7e10fe0681a6ac496b8d3aafda0894577a3b64c59f3b78fc222d2b3 |
39 |
DIST acct-6.6.4.tar.gz 853273 BLAKE2B 2ee42ae849f8e7c5c6dbe33d45e944f945cef87a5fef0074ac31848547ab9b7068509bce3c4b47b35bfde49b02daf43ae812cc58284c50185e4bdc660dccae52 SHA512 413aa446caece8fd773c92e2995bbaa034f63dd0ced521815a676c49f118e02982862b9c0ab7e60be5212c87d1e82ba6325bda212cf4857392a068d359a1e2c2 |
40 |
|
41 |
diff --git a/sys-process/acct/acct-6.5.5-r4.ebuild b/sys-process/acct/acct-6.5.5-r4.ebuild |
42 |
deleted file mode 100644 |
43 |
index fbfc364215c..00000000000 |
44 |
--- a/sys-process/acct/acct-6.5.5-r4.ebuild |
45 |
+++ /dev/null |
46 |
@@ -1,43 +0,0 @@ |
47 |
-# Copyright 1999-2017 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-EAPI=3 |
51 |
-inherit eutils autotools systemd |
52 |
- |
53 |
-DESCRIPTION="GNU system accounting utilities" |
54 |
-HOMEPAGE="https://savannah.gnu.org/projects/acct/" |
55 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
56 |
- |
57 |
-LICENSE="GPL-3" |
58 |
-SLOT="0" |
59 |
-KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" |
60 |
-IUSE="" |
61 |
- |
62 |
-src_prepare() { |
63 |
- epatch \ |
64 |
- "${FILESDIR}"/${PN}-6.5.5-cross-compile.patch \ |
65 |
- "${FILESDIR}"/${PN}-6.5.5-no-gets.patch |
66 |
- eautoreconf |
67 |
-} |
68 |
- |
69 |
-src_configure() { |
70 |
- econf --enable-linux-multiformat |
71 |
-} |
72 |
- |
73 |
-src_install() { |
74 |
- emake install DESTDIR="${D}" || die |
75 |
- dodoc AUTHORS ChangeLog INSTALL NEWS README TODO |
76 |
- keepdir /var/account |
77 |
- newinitd "${FILESDIR}"/acct.initd-r1 acct || die |
78 |
- newconfd "${FILESDIR}"/acct.confd acct || die |
79 |
- systemd_dounit "${FILESDIR}"/acct.service |
80 |
- insinto /etc/logrotate.d |
81 |
- newins "${FILESDIR}"/acct.logrotate acct || die |
82 |
- |
83 |
- # sys-apps/sysvinit already provides this |
84 |
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die |
85 |
- |
86 |
- # accton in / is only a temp workaround for #239748 |
87 |
- dodir /sbin |
88 |
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die |
89 |
-} |
90 |
|
91 |
diff --git a/sys-process/acct/acct-6.6.1.ebuild b/sys-process/acct/acct-6.6.1.ebuild |
92 |
deleted file mode 100644 |
93 |
index f1852b70af1..00000000000 |
94 |
--- a/sys-process/acct/acct-6.6.1.ebuild |
95 |
+++ /dev/null |
96 |
@@ -1,48 +0,0 @@ |
97 |
-# Copyright 1999-2014 Gentoo Foundation |
98 |
-# Distributed under the terms of the GNU General Public License v2 |
99 |
- |
100 |
-EAPI=5 |
101 |
-inherit autotools base systemd |
102 |
- |
103 |
-DESCRIPTION="GNU system accounting utilities" |
104 |
-HOMEPAGE="https://savannah.gnu.org/projects/acct/" |
105 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
106 |
- |
107 |
-LICENSE="GPL-3" |
108 |
-SLOT="0" |
109 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
110 |
-IUSE="" |
111 |
- |
112 |
-PATCHES=( |
113 |
- "${FILESDIR}"/${P}-cross-compile.patch |
114 |
- "${FILESDIR}"/${P}-no-gets.patch |
115 |
- "${FILESDIR}"/${P}-texi-failure.patch |
116 |
- "${FILESDIR}"/${P}-math.patch |
117 |
-) |
118 |
- |
119 |
-src_prepare() { |
120 |
- base_src_prepare |
121 |
- eautoreconf |
122 |
-} |
123 |
- |
124 |
-src_configure() { |
125 |
- econf --enable-linux-multiformat |
126 |
-} |
127 |
- |
128 |
-src_install() { |
129 |
- emake install DESTDIR="${D}" |
130 |
- dodoc AUTHORS ChangeLog INSTALL NEWS README TODO |
131 |
- keepdir /var/account |
132 |
- newinitd "${FILESDIR}"/acct.initd acct |
133 |
- newconfd "${FILESDIR}"/acct.confd acct |
134 |
- systemd_dounit "${FILESDIR}"/acct.service |
135 |
- insinto /etc/logrotate.d |
136 |
- newins "${FILESDIR}"/acct.logrotate acct |
137 |
- |
138 |
- # sys-apps/sysvinit already provides this |
139 |
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die |
140 |
- |
141 |
- # accton in / is only a temp workaround for #239748 |
142 |
- dodir /sbin |
143 |
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die |
144 |
-} |
145 |
|
146 |
diff --git a/sys-process/acct/acct-6.6.2-r1.ebuild b/sys-process/acct/acct-6.6.2-r1.ebuild |
147 |
deleted file mode 100644 |
148 |
index 22276e67c86..00000000000 |
149 |
--- a/sys-process/acct/acct-6.6.2-r1.ebuild |
150 |
+++ /dev/null |
151 |
@@ -1,45 +0,0 @@ |
152 |
-# Copyright 1999-2017 Gentoo Foundation |
153 |
-# Distributed under the terms of the GNU General Public License v2 |
154 |
- |
155 |
-EAPI=5 |
156 |
-inherit autotools base systemd |
157 |
- |
158 |
-DESCRIPTION="GNU system accounting utilities" |
159 |
-HOMEPAGE="https://savannah.gnu.org/projects/acct/" |
160 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
161 |
- |
162 |
-LICENSE="GPL-3" |
163 |
-SLOT="0" |
164 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
165 |
-IUSE="" |
166 |
- |
167 |
-PATCHES=( |
168 |
- "${FILESDIR}"/${PN}-6.6.2-cross-compile.patch |
169 |
- "${FILESDIR}"/${PN}-6.6.1-no-gets.patch |
170 |
-) |
171 |
- |
172 |
-src_prepare() { |
173 |
- base_src_prepare |
174 |
- eautoreconf |
175 |
-} |
176 |
- |
177 |
-src_configure() { |
178 |
- econf --enable-linux-multiformat |
179 |
-} |
180 |
- |
181 |
-src_install() { |
182 |
- default |
183 |
- keepdir /var/account |
184 |
- newinitd "${FILESDIR}"/acct.initd-r1 acct |
185 |
- newconfd "${FILESDIR}"/acct.confd acct |
186 |
- systemd_dounit "${FILESDIR}"/acct.service |
187 |
- insinto /etc/logrotate.d |
188 |
- newins "${FILESDIR}"/acct.logrotate acct |
189 |
- |
190 |
- # sys-apps/sysvinit already provides this |
191 |
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die |
192 |
- |
193 |
- # accton in / is only a temp workaround for #239748 |
194 |
- dodir /sbin |
195 |
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die |
196 |
-} |
197 |
|
198 |
diff --git a/sys-process/acct/acct-6.6.2.ebuild b/sys-process/acct/acct-6.6.2.ebuild |
199 |
deleted file mode 100644 |
200 |
index 95199c408ee..00000000000 |
201 |
--- a/sys-process/acct/acct-6.6.2.ebuild |
202 |
+++ /dev/null |
203 |
@@ -1,45 +0,0 @@ |
204 |
-# Copyright 1999-2014 Gentoo Foundation |
205 |
-# Distributed under the terms of the GNU General Public License v2 |
206 |
- |
207 |
-EAPI=5 |
208 |
-inherit autotools base systemd |
209 |
- |
210 |
-DESCRIPTION="GNU system accounting utilities" |
211 |
-HOMEPAGE="https://savannah.gnu.org/projects/acct/" |
212 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
213 |
- |
214 |
-LICENSE="GPL-3" |
215 |
-SLOT="0" |
216 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
217 |
-IUSE="" |
218 |
- |
219 |
-PATCHES=( |
220 |
- "${FILESDIR}"/${PN}-6.6.2-cross-compile.patch |
221 |
- "${FILESDIR}"/${PN}-6.6.1-no-gets.patch |
222 |
-) |
223 |
- |
224 |
-src_prepare() { |
225 |
- base_src_prepare |
226 |
- eautoreconf |
227 |
-} |
228 |
- |
229 |
-src_configure() { |
230 |
- econf --enable-linux-multiformat |
231 |
-} |
232 |
- |
233 |
-src_install() { |
234 |
- default |
235 |
- keepdir /var/account |
236 |
- newinitd "${FILESDIR}"/acct.initd acct |
237 |
- newconfd "${FILESDIR}"/acct.confd acct |
238 |
- systemd_dounit "${FILESDIR}"/acct.service |
239 |
- insinto /etc/logrotate.d |
240 |
- newins "${FILESDIR}"/acct.logrotate acct |
241 |
- |
242 |
- # sys-apps/sysvinit already provides this |
243 |
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die |
244 |
- |
245 |
- # accton in / is only a temp workaround for #239748 |
246 |
- dodir /sbin |
247 |
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die |
248 |
-} |
249 |
|
250 |
diff --git a/sys-process/acct/acct-6.6.4.ebuild b/sys-process/acct/acct-6.6.4.ebuild |
251 |
deleted file mode 100644 |
252 |
index 46888474a25..00000000000 |
253 |
--- a/sys-process/acct/acct-6.6.4.ebuild |
254 |
+++ /dev/null |
255 |
@@ -1,44 +0,0 @@ |
256 |
-# Copyright 1999-2017 Gentoo Foundation |
257 |
-# Distributed under the terms of the GNU General Public License v2 |
258 |
- |
259 |
-EAPI=6 |
260 |
-inherit autotools systemd |
261 |
- |
262 |
-DESCRIPTION="GNU system accounting utilities" |
263 |
-HOMEPAGE="https://savannah.gnu.org/projects/acct/" |
264 |
-SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
265 |
- |
266 |
-LICENSE="GPL-3" |
267 |
-SLOT="0" |
268 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
269 |
-IUSE="" |
270 |
- |
271 |
-PATCHES=( |
272 |
- "${FILESDIR}"/${PN}-6.6.4-cross-compile.patch |
273 |
-) |
274 |
- |
275 |
-src_prepare() { |
276 |
- default |
277 |
- eautoreconf |
278 |
-} |
279 |
- |
280 |
-src_configure() { |
281 |
- econf --enable-linux-multiformat |
282 |
-} |
283 |
- |
284 |
-src_install() { |
285 |
- default |
286 |
- keepdir /var/account |
287 |
- newinitd "${FILESDIR}"/acct.initd-r2 acct |
288 |
- newconfd "${FILESDIR}"/acct.confd-r1 acct |
289 |
- systemd_dounit "${FILESDIR}"/acct.service |
290 |
- insinto /etc/logrotate.d |
291 |
- newins "${FILESDIR}"/acct.logrotate-r1 acct |
292 |
- |
293 |
- # sys-apps/sysvinit already provides this |
294 |
- rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die |
295 |
- |
296 |
- # accton in / is only a temp workaround for #239748 |
297 |
- dodir /sbin |
298 |
- mv "${ED}"/usr/sbin/accton "${ED}"/sbin/ || die |
299 |
-} |
300 |
|
301 |
diff --git a/sys-process/acct/files/acct-6.5.5-cross-compile.patch b/sys-process/acct/files/acct-6.5.5-cross-compile.patch |
302 |
deleted file mode 100644 |
303 |
index 2fb7bfa7bc2..00000000000 |
304 |
--- a/sys-process/acct/files/acct-6.5.5-cross-compile.patch |
305 |
+++ /dev/null |
306 |
@@ -1,323 +0,0 @@ |
307 |
-https://savannah.gnu.org/patch/?7473 |
308 |
- |
309 |
-From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 |
310 |
-From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
311 |
-Date: Fri, 18 Feb 2011 06:13:20 +0100 |
312 |
-Subject: [PATCH] Don't generate files.h at build-time using an execution test. |
313 |
- |
314 |
-The *_LOC variables are never used in the build itself, but only in the |
315 |
-built code; this means that they don't need to be known to ./configure at |
316 |
-all. |
317 |
- |
318 |
-Since the previous method made acct not cross-compilable at all, this is |
319 |
-much preferred. |
320 |
- |
321 |
---- a/Makefile.am |
322 |
-+++ b/Makefile.am |
323 |
-@@ -66,11 +66,6 @@ |
324 |
- SYS_AC = @SYS_AC@ |
325 |
- SYS_SA = @SYS_SA@ |
326 |
- |
327 |
--WTMP_FILE_LOC = @WTMP_FILE_LOC@ |
328 |
--ACCT_FILE_LOC = @ACCT_FILE_LOC@ |
329 |
--SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ |
330 |
--USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ |
331 |
-- |
332 |
- compare-ac: ac |
333 |
- @echo |
334 |
- @echo "Running tests for ac" |
335 |
---- a/configure.ac |
336 |
-+++ b/configure.ac |
337 |
-@@ -159,101 +159,6 @@ |
338 |
- AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) |
339 |
- ) ] |
340 |
- ) |
341 |
--dnl |
342 |
--dnl find out where utmp/pacct are stored |
343 |
--dnl |
344 |
--AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
345 |
--#include <stdio.h> |
346 |
--#include <stdlib.h> |
347 |
--#include <sys/types.h> |
348 |
--#include <stdint.h> /* GNU/kFreeBSD */ |
349 |
--#include <sys/acct.h> |
350 |
--#include <utmp.h> |
351 |
-- |
352 |
--#ifndef WTMP_FILE |
353 |
--# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
354 |
-- || defined(__FreeBSD_kernel__) |
355 |
--# define WTMP_FILE "/var/log/wtmp" |
356 |
--# else |
357 |
--# if defined(sun) || defined(AMIX) |
358 |
--# define WTMP_FILE "/var/adm/wtmp" |
359 |
--# else |
360 |
--# if defined(sgi) || defined(SVR4) |
361 |
--# define WTMP_FILE "/usr/adm/wtmp" |
362 |
--# else |
363 |
--# define WTMP_FILE "/usr/adm/wtmp" |
364 |
--# endif |
365 |
--# endif |
366 |
--# endif |
367 |
--#endif |
368 |
-- |
369 |
--#ifndef ACCT_FILE |
370 |
--# if defined(__FreeBSD__) || defined(__linux__) \ |
371 |
-- || defined(__FreeBSD_kernel__) |
372 |
--# define ACCT_FILE "/var/account/pacct" |
373 |
--# else |
374 |
--# if defined(__NetBSD__) |
375 |
--# define ACCT_FILE "/var/account/acct" |
376 |
--# else |
377 |
--# if defined(sun) || defined(AMIX) |
378 |
--# define ACCT_FILE "/var/adm/pacct" |
379 |
--# else |
380 |
--# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
381 |
--# define ACCT_FILE "/usr/adm/pacct" |
382 |
--# else |
383 |
--# define ACCT_FILE "/usr/adm/acct" |
384 |
--# endif |
385 |
--# endif |
386 |
--# endif |
387 |
--# endif |
388 |
--#endif |
389 |
-- |
390 |
--#ifndef SAVACCT_FILE |
391 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
392 |
-- || defined(__FreeBSD_kernel__) |
393 |
--# define SAVACCT_FILE "/var/account/savacct" |
394 |
--# else |
395 |
--# if defined(sun) || defined(AMIX) |
396 |
--# define SAVACCT_FILE "/var/adm/savacct" |
397 |
--# else |
398 |
--# if defined(sgi) || defined(SVR4) |
399 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
400 |
--# else |
401 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
402 |
--# endif |
403 |
--# endif |
404 |
--# endif |
405 |
--#endif |
406 |
-- |
407 |
--#ifndef USRACCT_FILE |
408 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
409 |
-- || defined(__FreeBSD_kernel__) |
410 |
--# define USRACCT_FILE "/var/account/usracct" |
411 |
--# else |
412 |
--# if defined(sun) || defined(AMIX) |
413 |
--# define USRACCT_FILE "/var/adm/usracct" |
414 |
--# else |
415 |
--# if defined(sgi) || defined(SVR4) |
416 |
--# define USRACCT_FILE "/usr/adm/usracct" |
417 |
--# else |
418 |
--# define USRACCT_FILE "/usr/adm/usracct" |
419 |
--# endif |
420 |
--# endif |
421 |
--# endif |
422 |
--#endif |
423 |
-- |
424 |
--main () |
425 |
--{ |
426 |
-- FILE *fp; |
427 |
-- fp = fopen ("locs", "w"); |
428 |
-- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); |
429 |
-- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); |
430 |
-- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); |
431 |
-- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); |
432 |
-- fclose (fp); |
433 |
-- exit(0); |
434 |
--} |
435 |
--]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) |
436 |
- AC_TYPE_PID_T dnl for sys/acct.h |
437 |
- AC_TYPE_UID_T dnl same as above |
438 |
- AC_TYPE_SIZE_T |
439 |
-@@ -366,12 +271,6 @@ |
440 |
- AC_SUBST(LASTCOMM_MAN) |
441 |
- AC_SUBST(SA_MAN) |
442 |
- |
443 |
--dnl Substitutions for file locations |
444 |
--AC_SUBST(WTMP_FILE_LOC) |
445 |
--AC_SUBST(ACCT_FILE_LOC) |
446 |
--AC_SUBST(SAVACCT_FILE_LOC) |
447 |
--AC_SUBST(USRACCT_FILE_LOC) |
448 |
-- |
449 |
- dnl Dump the makefiles and etc. |
450 |
--AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) |
451 |
-+AC_CONFIG_FILES([Makefile lib/Makefile version.h]) |
452 |
- AC_OUTPUT |
453 |
---- /dev/null |
454 |
-+++ b/files.h |
455 |
-@@ -0,0 +1,123 @@ |
456 |
-+/* files.h |
457 |
-+ * |
458 |
-+ * file locations |
459 |
-+ * |
460 |
-+ */ |
461 |
-+ |
462 |
-+#ifndef FILES_H |
463 |
-+#define FILES_H |
464 |
-+ |
465 |
-+#include "config.h" |
466 |
-+ |
467 |
-+#include <stdio.h> |
468 |
-+#include <stdlib.h> |
469 |
-+#include <sys/types.h> |
470 |
-+#include <stdint.h> /* GNU/kFreeBSD */ |
471 |
-+ |
472 |
-+#ifdef LINUX_MULTIFORMAT |
473 |
-+# include "linux-acct.h" |
474 |
-+#else |
475 |
-+# include <stdint.h> /* GNU/kFreeBSD */ |
476 |
-+# include <sys/acct.h> |
477 |
-+# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
478 |
-+# include <osreldate.h> |
479 |
-+# if __FreeBSD_kernel__ |
480 |
-+# define __FreeBSD_version __FreeBSD_kernel_version |
481 |
-+# endif /* __FreeBSD_kernel__ */ |
482 |
-+# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
483 |
-+# define acct acctv2 |
484 |
-+# define ac_flag ac_flagx |
485 |
-+# endif |
486 |
-+# endif |
487 |
-+#endif |
488 |
-+ |
489 |
-+#include <utmp.h> |
490 |
-+ |
491 |
-+#ifndef WTMP_FILE |
492 |
-+# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
493 |
-+ || defined(__FreeBSD_kernel__) |
494 |
-+# define WTMP_FILE "/var/log/wtmp" |
495 |
-+# else |
496 |
-+# if defined(sun) || defined(AMIX) |
497 |
-+# define WTMP_FILE "/var/adm/wtmp" |
498 |
-+# else |
499 |
-+# if defined(sgi) || defined(SVR4) |
500 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
501 |
-+# else |
502 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
503 |
-+# endif |
504 |
-+# endif |
505 |
-+# endif |
506 |
-+#endif |
507 |
-+ |
508 |
-+#ifndef ACCT_FILE |
509 |
-+# if defined(__FreeBSD__) || defined(__linux__) \ |
510 |
-+ || defined(__FreeBSD_kernel__) |
511 |
-+# define ACCT_FILE "/var/account/pacct" |
512 |
-+# else |
513 |
-+# if defined(__NetBSD__) |
514 |
-+# define ACCT_FILE "/var/account/acct" |
515 |
-+# else |
516 |
-+# if defined(sun) || defined(AMIX) |
517 |
-+# define ACCT_FILE "/var/adm/pacct" |
518 |
-+# else |
519 |
-+# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
520 |
-+# define ACCT_FILE "/usr/adm/pacct" |
521 |
-+# else |
522 |
-+# define ACCT_FILE "/usr/adm/acct" |
523 |
-+# endif |
524 |
-+# endif |
525 |
-+# endif |
526 |
-+# endif |
527 |
-+#endif |
528 |
-+ |
529 |
-+#ifndef SAVACCT_FILE |
530 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
531 |
-+ || defined(__FreeBSD_kernel__) |
532 |
-+# define SAVACCT_FILE "/var/account/savacct" |
533 |
-+# else |
534 |
-+# if defined(sun) || defined(AMIX) |
535 |
-+# define SAVACCT_FILE "/var/adm/savacct" |
536 |
-+# else |
537 |
-+# if defined(sgi) || defined(SVR4) |
538 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
539 |
-+# else |
540 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
541 |
-+# endif |
542 |
-+# endif |
543 |
-+# endif |
544 |
-+#endif |
545 |
-+ |
546 |
-+#ifndef USRACCT_FILE |
547 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
548 |
-+ || defined(__FreeBSD_kernel__) |
549 |
-+# define USRACCT_FILE "/var/account/usracct" |
550 |
-+# else |
551 |
-+# if defined(sun) || defined(AMIX) |
552 |
-+# define USRACCT_FILE "/var/adm/usracct" |
553 |
-+# else |
554 |
-+# if defined(sgi) || defined(SVR4) |
555 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
556 |
-+# else |
557 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
558 |
-+# endif |
559 |
-+# endif |
560 |
-+# endif |
561 |
-+#endif |
562 |
-+ |
563 |
-+#define WTMP_FILE_LOC WTMP_FILE |
564 |
-+#define ACCT_FILE_LOC ACCT_FILE |
565 |
-+#define SAVACCT_FILE_LOC SAVACCT_FILE |
566 |
-+#define USRACCT_FILE_LOC USRACCT_FILE |
567 |
-+ |
568 |
-+/* Workaround for a kernel includes problem */ |
569 |
-+#if defined(__linux__) && defined(__alpha__) |
570 |
-+#undef AHZ |
571 |
-+#define AHZ 1024 |
572 |
-+#endif |
573 |
-+ |
574 |
-+#ifndef AHZ |
575 |
-+#define AHZ 64 |
576 |
-+#endif |
577 |
-+ |
578 |
-+#endif /* ! FILES_H */ |
579 |
---- a/files.h.in |
580 |
-+++ /dev/null |
581 |
-@@ -1,48 +0,0 @@ |
582 |
--/* files.h.in |
583 |
-- * |
584 |
-- * file locations |
585 |
-- * |
586 |
-- */ |
587 |
-- |
588 |
--#ifndef FILES_H |
589 |
--#define FILES_H |
590 |
-- |
591 |
--#include "config.h" |
592 |
-- |
593 |
--#include <sys/types.h> |
594 |
-- |
595 |
--#ifdef LINUX_MULTIFORMAT |
596 |
--# include "linux-acct.h" |
597 |
--#else |
598 |
--# include <stdint.h> /* GNU/kFreeBSD */ |
599 |
--# include <sys/acct.h> |
600 |
--# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
601 |
--# include <osreldate.h> |
602 |
--# if __FreeBSD_kernel__ |
603 |
--# define __FreeBSD_version __FreeBSD_kernel_version |
604 |
--# endif /* __FreeBSD_kernel__ */ |
605 |
--# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
606 |
--# define acct acctv2 |
607 |
--# define ac_flag ac_flagx |
608 |
--# endif |
609 |
--# endif |
610 |
--#endif |
611 |
-- |
612 |
--#include <utmp.h> |
613 |
-- |
614 |
--#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" |
615 |
--#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" |
616 |
--#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" |
617 |
--#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" |
618 |
-- |
619 |
--/* Workaround for a kernel includes problem */ |
620 |
--#if defined(__linux__) && defined(__alpha__) |
621 |
--#undef AHZ |
622 |
--#define AHZ 1024 |
623 |
--#endif |
624 |
-- |
625 |
--#ifndef AHZ |
626 |
--#define AHZ 64 |
627 |
--#endif |
628 |
-- |
629 |
--#endif /* ! FILES_H */ |
630 |
|
631 |
diff --git a/sys-process/acct/files/acct-6.5.5-no-gets.patch b/sys-process/acct/files/acct-6.5.5-no-gets.patch |
632 |
deleted file mode 100644 |
633 |
index 3478b66de9d..00000000000 |
634 |
--- a/sys-process/acct/files/acct-6.5.5-no-gets.patch |
635 |
+++ /dev/null |
636 |
@@ -1,22 +0,0 @@ |
637 |
-hack until acct pulls a newer gnulib version |
638 |
- |
639 |
-From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001 |
640 |
-From: Eric Blake <eblake@××××××.com> |
641 |
-Date: Thu, 29 Mar 2012 13:30:41 -0600 |
642 |
-Subject: [PATCH] stdio: don't assume gets any more |
643 |
- |
644 |
-Gnulib intentionally does not have a gets module, and now that C11 |
645 |
-and glibc have dropped it, we should be more proactive about warning |
646 |
-any user on a platform that still has a declaration of this dangerous |
647 |
-interface. |
648 |
- |
649 |
---- a/lib/stdio.in.h |
650 |
-+++ b/lib/stdio.in.h |
651 |
-@@ -125,7 +125,6 @@ |
652 |
- so any use of gets warrants an unconditional warning. Assume it is |
653 |
- always declared, since it is required by C89. */ |
654 |
- #undef gets |
655 |
--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
656 |
- |
657 |
- #if @GNULIB_FOPEN@ |
658 |
- # if @REPLACE_FOPEN@ |
659 |
|
660 |
diff --git a/sys-process/acct/files/acct-6.6.1-cross-compile.patch b/sys-process/acct/files/acct-6.6.1-cross-compile.patch |
661 |
deleted file mode 100644 |
662 |
index 67ac7d56fad..00000000000 |
663 |
--- a/sys-process/acct/files/acct-6.6.1-cross-compile.patch |
664 |
+++ /dev/null |
665 |
@@ -1,324 +0,0 @@ |
666 |
-https://savannah.gnu.org/patch/?7473 |
667 |
- |
668 |
-From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 |
669 |
-From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
670 |
-Date: Fri, 18 Feb 2011 06:13:20 +0100 |
671 |
-Subject: [PATCH] Don't generate files.h at build-time using an execution test. |
672 |
- |
673 |
-The *_LOC variables are never used in the build itself, but only in the |
674 |
-built code; this means that they don't need to be known to ./configure at |
675 |
-all. |
676 |
- |
677 |
-Since the previous method made acct not cross-compilable at all, this is |
678 |
-much preferred. |
679 |
- |
680 |
---- acct-6.6.1/configure.ac |
681 |
-+++ acct-6.6.1/configure.ac |
682 |
-@@ -228,102 +228,6 @@ |
683 |
- AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) |
684 |
- ) ] |
685 |
- ) |
686 |
--dnl |
687 |
--dnl find out where utmp/pacct are stored |
688 |
--dnl |
689 |
--AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
690 |
--#include <stdio.h> |
691 |
--#include <stdlib.h> |
692 |
--#include <sys/types.h> |
693 |
--#include <stdint.h> /* GNU/kFreeBSD */ |
694 |
--#include <sys/acct.h> |
695 |
--#include <utmp.h> |
696 |
-- |
697 |
--#ifndef WTMP_FILE |
698 |
--# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
699 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
700 |
--# define WTMP_FILE "/var/log/account/wtmp" |
701 |
--# else |
702 |
--# if defined(sun) || defined(AMIX) |
703 |
--# define WTMP_FILE "/var/adm/wtmp" |
704 |
--# else |
705 |
--# if defined(sgi) || defined(SVR4) |
706 |
--# define WTMP_FILE "/usr/adm/wtmp" |
707 |
--# else |
708 |
--# define WTMP_FILE "/usr/adm/wtmp" |
709 |
--# endif |
710 |
--# endif |
711 |
--# endif |
712 |
--#endif |
713 |
-- |
714 |
--#ifndef ACCT_FILE |
715 |
--# if defined(__FreeBSD__) || defined(__linux__) \ |
716 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
717 |
--# define ACCT_FILE "/var/log/account/pacct" |
718 |
--# else |
719 |
--# if defined(__NetBSD__) |
720 |
--# define ACCT_FILE "/var/log/account/acct" |
721 |
--# else |
722 |
--# if defined(sun) || defined(AMIX) |
723 |
--# define ACCT_FILE "/var/adm/pacct" |
724 |
--# else |
725 |
--# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
726 |
--# define ACCT_FILE "/usr/adm/pacct" |
727 |
--# else |
728 |
--# define ACCT_FILE "/usr/adm/acct" |
729 |
--# endif |
730 |
--# endif |
731 |
--# endif |
732 |
--# endif |
733 |
--#endif |
734 |
-- |
735 |
--#ifndef SAVACCT_FILE |
736 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
737 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
738 |
--# define SAVACCT_FILE "/var/log/account/savacct" |
739 |
--# else |
740 |
--# if defined(sun) || defined(AMIX) |
741 |
--# define SAVACCT_FILE "/var/adm/savacct" |
742 |
--# else |
743 |
--# if defined(sgi) || defined(SVR4) |
744 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
745 |
--# else |
746 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
747 |
--# endif |
748 |
--# endif |
749 |
--# endif |
750 |
--#endif |
751 |
-- |
752 |
--#ifndef USRACCT_FILE |
753 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
754 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
755 |
--# define USRACCT_FILE "/var/log/account/usracct" |
756 |
--# else |
757 |
--# if defined(sun) || defined(AMIX) |
758 |
--# define USRACCT_FILE "/var/adm/usracct" |
759 |
--# else |
760 |
--# if defined(sgi) || defined(SVR4) |
761 |
--# define USRACCT_FILE "/usr/adm/usracct" |
762 |
--# else |
763 |
--# define USRACCT_FILE "/usr/adm/usracct" |
764 |
--# endif |
765 |
--# endif |
766 |
--# endif |
767 |
--#endif |
768 |
-- |
769 |
--main () |
770 |
--{ |
771 |
-- FILE *fp; |
772 |
-- fp = fopen ("locs", "w"); |
773 |
-- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); |
774 |
-- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); |
775 |
-- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); |
776 |
-- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); |
777 |
-- fclose (fp); |
778 |
-- exit(0); |
779 |
--} |
780 |
--]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) |
781 |
-- |
782 |
- dnl types |
783 |
- AC_TYPE_PID_T dnl for sys/acct.h |
784 |
- AC_TYPE_UID_T dnl same as above |
785 |
-@@ -366,12 +270,6 @@ |
786 |
- AC_SUBST(LASTCOMM_MAN) |
787 |
- AC_SUBST(SA_MAN) |
788 |
- |
789 |
--dnl Substitutions for file locations |
790 |
--AC_SUBST(WTMP_FILE_LOC) |
791 |
--AC_SUBST(ACCT_FILE_LOC) |
792 |
--AC_SUBST(SAVACCT_FILE_LOC) |
793 |
--AC_SUBST(USRACCT_FILE_LOC) |
794 |
-- |
795 |
- dnl Dump the makefiles and etc. |
796 |
--AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) |
797 |
-+AC_CONFIG_FILES([Makefile lib/Makefile version.h]) |
798 |
- AC_OUTPUT |
799 |
---- acct-6.6.1/files.h |
800 |
-+++ acct-6.6.1/files.h |
801 |
-@@ -0,0 +1,123 @@ |
802 |
-+/* files.h |
803 |
-+ * |
804 |
-+ * file locations |
805 |
-+ * |
806 |
-+ */ |
807 |
-+ |
808 |
-+#ifndef FILES_H |
809 |
-+#define FILES_H |
810 |
-+ |
811 |
-+#include "config.h" |
812 |
-+ |
813 |
-+#include <stdio.h> |
814 |
-+#include <stdlib.h> |
815 |
-+#include <sys/types.h> |
816 |
-+#include <stdint.h> /* GNU/kFreeBSD */ |
817 |
-+ |
818 |
-+#ifdef LINUX_MULTIFORMAT |
819 |
-+# include "linux-acct.h" |
820 |
-+#else |
821 |
-+# include <stdint.h> /* GNU/kFreeBSD */ |
822 |
-+# include <sys/acct.h> |
823 |
-+# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
824 |
-+# include <osreldate.h> |
825 |
-+# if __FreeBSD_kernel__ |
826 |
-+# define __FreeBSD_version __FreeBSD_kernel_version |
827 |
-+# endif /* __FreeBSD_kernel__ */ |
828 |
-+# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
829 |
-+# define acct acctv2 |
830 |
-+# define ac_flag ac_flagx |
831 |
-+# endif |
832 |
-+# endif |
833 |
-+#endif |
834 |
-+ |
835 |
-+#include <utmp.h> |
836 |
-+ |
837 |
-+#ifndef WTMP_FILE |
838 |
-+# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
839 |
-+ || defined(__FreeBSD_kernel__) |
840 |
-+# define WTMP_FILE "/var/log/wtmp" |
841 |
-+# else |
842 |
-+# if defined(sun) || defined(AMIX) |
843 |
-+# define WTMP_FILE "/var/adm/wtmp" |
844 |
-+# else |
845 |
-+# if defined(sgi) || defined(SVR4) |
846 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
847 |
-+# else |
848 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
849 |
-+# endif |
850 |
-+# endif |
851 |
-+# endif |
852 |
-+#endif |
853 |
-+ |
854 |
-+#ifndef ACCT_FILE |
855 |
-+# if defined(__FreeBSD__) || defined(__linux__) \ |
856 |
-+ || defined(__FreeBSD_kernel__) |
857 |
-+# define ACCT_FILE "/var/account/pacct" |
858 |
-+# else |
859 |
-+# if defined(__NetBSD__) |
860 |
-+# define ACCT_FILE "/var/account/acct" |
861 |
-+# else |
862 |
-+# if defined(sun) || defined(AMIX) |
863 |
-+# define ACCT_FILE "/var/adm/pacct" |
864 |
-+# else |
865 |
-+# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
866 |
-+# define ACCT_FILE "/usr/adm/pacct" |
867 |
-+# else |
868 |
-+# define ACCT_FILE "/usr/adm/acct" |
869 |
-+# endif |
870 |
-+# endif |
871 |
-+# endif |
872 |
-+# endif |
873 |
-+#endif |
874 |
-+ |
875 |
-+#ifndef SAVACCT_FILE |
876 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
877 |
-+ || defined(__FreeBSD_kernel__) |
878 |
-+# define SAVACCT_FILE "/var/account/savacct" |
879 |
-+# else |
880 |
-+# if defined(sun) || defined(AMIX) |
881 |
-+# define SAVACCT_FILE "/var/adm/savacct" |
882 |
-+# else |
883 |
-+# if defined(sgi) || defined(SVR4) |
884 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
885 |
-+# else |
886 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
887 |
-+# endif |
888 |
-+# endif |
889 |
-+# endif |
890 |
-+#endif |
891 |
-+ |
892 |
-+#ifndef USRACCT_FILE |
893 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
894 |
-+ || defined(__FreeBSD_kernel__) |
895 |
-+# define USRACCT_FILE "/var/account/usracct" |
896 |
-+# else |
897 |
-+# if defined(sun) || defined(AMIX) |
898 |
-+# define USRACCT_FILE "/var/adm/usracct" |
899 |
-+# else |
900 |
-+# if defined(sgi) || defined(SVR4) |
901 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
902 |
-+# else |
903 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
904 |
-+# endif |
905 |
-+# endif |
906 |
-+# endif |
907 |
-+#endif |
908 |
-+ |
909 |
-+#define WTMP_FILE_LOC WTMP_FILE |
910 |
-+#define ACCT_FILE_LOC ACCT_FILE |
911 |
-+#define SAVACCT_FILE_LOC SAVACCT_FILE |
912 |
-+#define USRACCT_FILE_LOC USRACCT_FILE |
913 |
-+ |
914 |
-+/* Workaround for a kernel includes problem */ |
915 |
-+#if defined(__linux__) && defined(__alpha__) |
916 |
-+#undef AHZ |
917 |
-+#define AHZ 1024 |
918 |
-+#endif |
919 |
-+ |
920 |
-+#ifndef AHZ |
921 |
-+#define AHZ 64 |
922 |
-+#endif |
923 |
-+ |
924 |
-+#endif /* ! FILES_H */ |
925 |
---- acct-6.6.1/files.h.in |
926 |
-+++ acct-6.6.1/files.h.in |
927 |
-@@ -1,48 +0,0 @@ |
928 |
--/* files.h.in |
929 |
-- * |
930 |
-- * file locations |
931 |
-- * |
932 |
-- */ |
933 |
-- |
934 |
--#ifndef FILES_H |
935 |
--#define FILES_H |
936 |
-- |
937 |
--#include "config.h" |
938 |
-- |
939 |
--#include <sys/types.h> |
940 |
-- |
941 |
--#ifdef LINUX_MULTIFORMAT |
942 |
--# include "linux-acct.h" |
943 |
--#else |
944 |
--# include <stdint.h> /* GNU/kFreeBSD */ |
945 |
--# include <sys/acct.h> |
946 |
--# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
947 |
--# include <osreldate.h> |
948 |
--# if __FreeBSD_kernel__ |
949 |
--# define __FreeBSD_version __FreeBSD_kernel_version |
950 |
--# endif /* __FreeBSD_kernel__ */ |
951 |
--# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
952 |
--# define acct acctv2 |
953 |
--# define ac_flag ac_flagx |
954 |
--# endif |
955 |
--# endif |
956 |
--#endif |
957 |
-- |
958 |
--#include <utmp.h> |
959 |
-- |
960 |
--#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" |
961 |
--#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" |
962 |
--#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" |
963 |
--#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" |
964 |
-- |
965 |
--/* Workaround for a kernel includes problem */ |
966 |
--#if defined(__linux__) && defined(__alpha__) |
967 |
--#undef AHZ |
968 |
--#define AHZ 1024 |
969 |
--#endif |
970 |
-- |
971 |
--#ifndef AHZ |
972 |
--#define AHZ 64 |
973 |
--#endif |
974 |
-- |
975 |
--#endif /* ! FILES_H */ |
976 |
---- acct-6.6.1/Makefile.am |
977 |
-+++ acct-6.6.1/Makefile.am |
978 |
-@@ -66,11 +66,6 @@ |
979 |
- SYS_AC = @SYS_AC@ |
980 |
- SYS_SA = @SYS_SA@ |
981 |
- |
982 |
--WTMP_FILE_LOC = @WTMP_FILE_LOC@ |
983 |
--ACCT_FILE_LOC = @ACCT_FILE_LOC@ |
984 |
--SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ |
985 |
--USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ |
986 |
-- |
987 |
- compare-ac: ac |
988 |
- @echo |
989 |
- @echo "Running tests for ac" |
990 |
|
991 |
diff --git a/sys-process/acct/files/acct-6.6.1-math.patch b/sys-process/acct/files/acct-6.6.1-math.patch |
992 |
deleted file mode 100644 |
993 |
index a1d6fe72e75..00000000000 |
994 |
--- a/sys-process/acct/files/acct-6.6.1-math.patch |
995 |
+++ /dev/null |
996 |
@@ -1,27 +0,0 @@ |
997 |
-https://savannah.gnu.org/bugs/?42973 |
998 |
-https://bugs.gentoo.org/519552 |
999 |
- |
1000 |
-these files use frexp/ldexp which is in -lm |
1001 |
- |
1002 |
---- a/Makefile.am |
1003 |
-+++ b/Makefile.am |
1004 |
-@@ -26,6 +26,7 @@ accton_SOURCES = accton.c common.c |
1005 |
- |
1006 |
- dump_acct_SOURCES = dump-acct.c common.c file_rd.c \ |
1007 |
- pacct_rd.c |
1008 |
-+dump_acct_LDADD = $(LDADD) -lm |
1009 |
- |
1010 |
- dump_utmp_SOURCES = dump-utmp.c common.c file_rd.c \ |
1011 |
- utmp_rd.c |
1012 |
-@@ -37,9 +38,11 @@ last_SOURCES = last.c common.c file_rd.c hashtab.c \ |
1013 |
- |
1014 |
- lastcomm_SOURCES = lastcomm.c common.c dev_hash.c file_rd.c \ |
1015 |
- hashtab.c pacct_rd.c uid_hash.c |
1016 |
-+lastcomm_LDADD = $(LDADD) -lm |
1017 |
- |
1018 |
- sa_SOURCES = sa.c common.c file_rd.c hashtab.c \ |
1019 |
- pacct_rd.c uid_hash.c |
1020 |
-+sa_LDADD = $(LDADD) -lm |
1021 |
- |
1022 |
- noinst_HEADERS = common.h config.h dev_hash.h file_rd.h hashtab.h \ |
1023 |
- pacct_rd.h uid_hash.h utmp_rd.h al_share.cpp linux-acct.h |
1024 |
|
1025 |
diff --git a/sys-process/acct/files/acct-6.6.1-no-gets.patch b/sys-process/acct/files/acct-6.6.1-no-gets.patch |
1026 |
deleted file mode 100644 |
1027 |
index f2f83975d58..00000000000 |
1028 |
--- a/sys-process/acct/files/acct-6.6.1-no-gets.patch |
1029 |
+++ /dev/null |
1030 |
@@ -1,25 +0,0 @@ |
1031 |
-hack until acct pulls a newer gnulib version |
1032 |
- |
1033 |
-From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001 |
1034 |
-From: Eric Blake <eblake@××××××.com> |
1035 |
-Date: Thu, 29 Mar 2012 13:30:41 -0600 |
1036 |
-Subject: [PATCH] stdio: don't assume gets any more |
1037 |
- |
1038 |
-Gnulib intentionally does not have a gets module, and now that C11 |
1039 |
-and glibc have dropped it, we should be more proactive about warning |
1040 |
-any user on a platform that still has a declaration of this dangerous |
1041 |
-interface. |
1042 |
- |
1043 |
---- acct-6.6.1/lib/stdio.in.h |
1044 |
-+++ acct-6.6.1/lib/stdio.in.h |
1045 |
-@@ -699,10 +699,6 @@ |
1046 |
- so any use of gets warrants an unconditional warning; besides, C11 |
1047 |
- removed it. */ |
1048 |
- #undef gets |
1049 |
--#if HAVE_RAW_DECL_GETS |
1050 |
--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); |
1051 |
--#endif |
1052 |
-- |
1053 |
- |
1054 |
- #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ |
1055 |
- struct obstack; |
1056 |
|
1057 |
diff --git a/sys-process/acct/files/acct-6.6.1-texi-failure.patch b/sys-process/acct/files/acct-6.6.1-texi-failure.patch |
1058 |
deleted file mode 100644 |
1059 |
index aa9f3c3586b..00000000000 |
1060 |
--- a/sys-process/acct/files/acct-6.6.1-texi-failure.patch |
1061 |
+++ /dev/null |
1062 |
@@ -1,32 +0,0 @@ |
1063 |
-Description: Fix FTBFS with new texinfo. |
1064 |
-Author: Dmitrijs Ledkovs <dmitrij.ledkov@××××××.com> |
1065 |
- |
1066 |
---- acct-6.5.5.orig/accounting.texi |
1067 |
-+++ acct-6.5.5/accounting.texi |
1068 |
-@@ -66,7 +66,7 @@ approved by the Foundation. |
1069 |
- @end titlepage |
1070 |
- |
1071 |
- @c ---------------------------------------------------------------------- |
1072 |
--@ifinfo |
1073 |
-+@ifnottex |
1074 |
- @node Top, Preface, (dir), (dir) |
1075 |
- |
1076 |
- Welcome to the GNU Accounting Utilities! If you don't have a clue about |
1077 |
-@@ -77,7 +77,7 @@ program's name. |
1078 |
- This is Edition @value{EDITION} of the documentation, updated |
1079 |
- @value{UPDATED} for version @value{VERSION} of the GNU Accounting |
1080 |
- Utilities. |
1081 |
--@end ifinfo |
1082 |
-+@end ifnottex |
1083 |
- |
1084 |
- @menu |
1085 |
- * Preface:: general information about the accounting utilities |
1086 |
-@@ -468,7 +468,7 @@ overhead, it is forseeable that the entr |
1087 |
- wrong order. GNU @code{ac} automatically compensates for this, but some |
1088 |
- other @code{ac}s may not... beware. |
1089 |
- |
1090 |
--@unnumberedsubsubsec The FTP Problem |
1091 |
-+@unnumberedsubsec The FTP Problem |
1092 |
- |
1093 |
- I've tested the standard @code{ac} in Ultrix 4.2 (DECstation/DECsystem), |
1094 |
- SunOS 4.1.1 (Sun3, Sun4, Sparc), Mach 2.5 (Omron/Luna), and DomainOS |
1095 |
|
1096 |
diff --git a/sys-process/acct/files/acct-6.6.2-cross-compile.patch b/sys-process/acct/files/acct-6.6.2-cross-compile.patch |
1097 |
deleted file mode 100644 |
1098 |
index 70b0556fd48..00000000000 |
1099 |
--- a/sys-process/acct/files/acct-6.6.2-cross-compile.patch |
1100 |
+++ /dev/null |
1101 |
@@ -1,320 +0,0 @@ |
1102 |
-https://savannah.gnu.org/patch/?7473 |
1103 |
- |
1104 |
-From 8958c3cb7b77ec50d8dae0490d8c80dee798e20d Mon Sep 17 00:00:00 2001 |
1105 |
-From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
1106 |
-Date: Fri, 18 Feb 2011 06:13:20 +0100 |
1107 |
-Subject: [PATCH] Don't generate files.h at build-time using an execution test. |
1108 |
- |
1109 |
-The *_LOC variables are never used in the build itself, but only in the |
1110 |
-built code; this means that they don't need to be known to ./configure at |
1111 |
-all. |
1112 |
- |
1113 |
-Since the previous method made acct not cross-compilable at all, this is |
1114 |
-much preferred. |
1115 |
- |
1116 |
---- a/Makefile.am |
1117 |
-+++ b/Makefile.am |
1118 |
-@@ -69,11 +69,6 @@ SYS_LASTCOMM = @SYS_LASTCOMM@ |
1119 |
- SYS_AC = @SYS_AC@ |
1120 |
- SYS_SA = @SYS_SA@ |
1121 |
- |
1122 |
--WTMP_FILE_LOC = @WTMP_FILE_LOC@ |
1123 |
--ACCT_FILE_LOC = @ACCT_FILE_LOC@ |
1124 |
--SAVACCT_FILE_LOC = @SAVACCT_FILE_LOC@ |
1125 |
--USRACCT_FILE_LOC = @USRACCT_FILE_LOC@ |
1126 |
-- |
1127 |
- compare-ac: ac |
1128 |
- @echo |
1129 |
- @echo "Running tests for ac" |
1130 |
---- a/configure.ac |
1131 |
-+++ b/configure.ac |
1132 |
-@@ -229,101 +229,6 @@ AC_CHECK_HEADER(sys/acct.h, |
1133 |
- AC_EGREP_HEADER([comp_t],[sys/acct.h],[AC_DEFINE(HAVE_COMP_T, 1, Define if <sys/acct.h> uses the COMP_T type.)]) |
1134 |
- ) ] |
1135 |
- ) |
1136 |
--dnl |
1137 |
--dnl find out where utmp/pacct are stored |
1138 |
--dnl |
1139 |
--AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
1140 |
--#include <stdio.h> |
1141 |
--#include <stdlib.h> |
1142 |
--#include <sys/types.h> |
1143 |
--#include <stdint.h> /* GNU/kFreeBSD */ |
1144 |
--#include <sys/acct.h> |
1145 |
--#include <utmp.h> |
1146 |
-- |
1147 |
--#ifndef WTMP_FILE |
1148 |
--# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
1149 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1150 |
--# define WTMP_FILE "/var/log/account/wtmp" |
1151 |
--# else |
1152 |
--# if defined(sun) || defined(AMIX) |
1153 |
--# define WTMP_FILE "/var/adm/wtmp" |
1154 |
--# else |
1155 |
--# if defined(sgi) || defined(SVR4) |
1156 |
--# define WTMP_FILE "/usr/adm/wtmp" |
1157 |
--# else |
1158 |
--# define WTMP_FILE "/usr/adm/wtmp" |
1159 |
--# endif |
1160 |
--# endif |
1161 |
--# endif |
1162 |
--#endif |
1163 |
-- |
1164 |
--#ifndef ACCT_FILE |
1165 |
--# if defined(__FreeBSD__) || defined(__linux__) \ |
1166 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1167 |
--# define ACCT_FILE "/var/log/account/pacct" |
1168 |
--# else |
1169 |
--# if defined(__NetBSD__) |
1170 |
--# define ACCT_FILE "/var/log/account/acct" |
1171 |
--# else |
1172 |
--# if defined(sun) || defined(AMIX) |
1173 |
--# define ACCT_FILE "/var/adm/pacct" |
1174 |
--# else |
1175 |
--# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
1176 |
--# define ACCT_FILE "/usr/adm/pacct" |
1177 |
--# else |
1178 |
--# define ACCT_FILE "/usr/adm/acct" |
1179 |
--# endif |
1180 |
--# endif |
1181 |
--# endif |
1182 |
--# endif |
1183 |
--#endif |
1184 |
-- |
1185 |
--#ifndef SAVACCT_FILE |
1186 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
1187 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1188 |
--# define SAVACCT_FILE "/var/log/account/savacct" |
1189 |
--# else |
1190 |
--# if defined(sun) || defined(AMIX) |
1191 |
--# define SAVACCT_FILE "/var/adm/savacct" |
1192 |
--# else |
1193 |
--# if defined(sgi) || defined(SVR4) |
1194 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
1195 |
--# else |
1196 |
--# define SAVACCT_FILE "/usr/adm/savacct" |
1197 |
--# endif |
1198 |
--# endif |
1199 |
--# endif |
1200 |
--#endif |
1201 |
-- |
1202 |
--#ifndef USRACCT_FILE |
1203 |
--# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
1204 |
-- || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1205 |
--# define USRACCT_FILE "/var/log/account/usracct" |
1206 |
--# else |
1207 |
--# if defined(sun) || defined(AMIX) |
1208 |
--# define USRACCT_FILE "/var/adm/usracct" |
1209 |
--# else |
1210 |
--# if defined(sgi) || defined(SVR4) |
1211 |
--# define USRACCT_FILE "/usr/adm/usracct" |
1212 |
--# else |
1213 |
--# define USRACCT_FILE "/usr/adm/usracct" |
1214 |
--# endif |
1215 |
--# endif |
1216 |
--# endif |
1217 |
--#endif |
1218 |
-- |
1219 |
--main () |
1220 |
--{ |
1221 |
-- FILE *fp; |
1222 |
-- fp = fopen ("locs", "w"); |
1223 |
-- fprintf (fp, "WTMP_FILE_LOC=%s\n", WTMP_FILE); |
1224 |
-- fprintf (fp, "ACCT_FILE_LOC=%s\n", ACCT_FILE); |
1225 |
-- fprintf (fp, "SAVACCT_FILE_LOC=%s\n", SAVACCT_FILE); |
1226 |
-- fprintf (fp, "USRACCT_FILE_LOC=%s\n", USRACCT_FILE); |
1227 |
-- fclose (fp); |
1228 |
-- exit(0); |
1229 |
--} |
1230 |
--]])],[. ./locs; rm locs],[echo "Error -- could not locate your wtmp and acct files."; exit 1],[echo "Sorry -- you cannot cross-compile this package (FIXME)."; exit 1 ]) |
1231 |
- |
1232 |
- dnl types |
1233 |
- AC_TYPE_PID_T dnl for sys/acct.h |
1234 |
-@@ -367,12 +272,6 @@ AC_SUBST(ACCTON_MAN) |
1235 |
- AC_SUBST(LASTCOMM_MAN) |
1236 |
- AC_SUBST(SA_MAN) |
1237 |
- |
1238 |
--dnl Substitutions for file locations |
1239 |
--AC_SUBST(WTMP_FILE_LOC) |
1240 |
--AC_SUBST(ACCT_FILE_LOC) |
1241 |
--AC_SUBST(SAVACCT_FILE_LOC) |
1242 |
--AC_SUBST(USRACCT_FILE_LOC) |
1243 |
-- |
1244 |
- dnl Dump the makefiles and etc. |
1245 |
--AC_CONFIG_FILES([Makefile lib/Makefile files.h version.h]) |
1246 |
-+AC_CONFIG_FILES([Makefile lib/Makefile version.h]) |
1247 |
- AC_OUTPUT |
1248 |
---- /dev/null |
1249 |
-+++ b/files.h |
1250 |
-@@ -0,0 +1,120 @@ |
1251 |
-+/* files.h.in |
1252 |
-+ * |
1253 |
-+ * file locations |
1254 |
-+ * |
1255 |
-+ */ |
1256 |
-+ |
1257 |
-+#ifndef FILES_H |
1258 |
-+#define FILES_H |
1259 |
-+ |
1260 |
-+#include "config.h" |
1261 |
-+ |
1262 |
-+#include <sys/types.h> |
1263 |
-+ |
1264 |
-+#ifdef LINUX_MULTIFORMAT |
1265 |
-+# include "linux-acct.h" |
1266 |
-+#else |
1267 |
-+# include <stdint.h> /* GNU/kFreeBSD */ |
1268 |
-+# include <sys/acct.h> |
1269 |
-+# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
1270 |
-+# include <osreldate.h> |
1271 |
-+# if defined __FreeBSD_kernel__ |
1272 |
-+# define __FreeBSD_version __FreeBSD_kernel_version |
1273 |
-+# endif /* __FreeBSD_kernel__ */ |
1274 |
-+# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
1275 |
-+# define acct acctv2 |
1276 |
-+# define ac_flag ac_flagx |
1277 |
-+# endif |
1278 |
-+# endif |
1279 |
-+#endif |
1280 |
-+ |
1281 |
-+#include <utmp.h> |
1282 |
-+ |
1283 |
-+#ifndef WTMP_FILE |
1284 |
-+# if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__linux__) \ |
1285 |
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1286 |
-+# define WTMP_FILE "/var/log/account/wtmp" |
1287 |
-+# else |
1288 |
-+# if defined(sun) || defined(AMIX) |
1289 |
-+# define WTMP_FILE "/var/adm/wtmp" |
1290 |
-+# else |
1291 |
-+# if defined(sgi) || defined(SVR4) |
1292 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
1293 |
-+# else |
1294 |
-+# define WTMP_FILE "/usr/adm/wtmp" |
1295 |
-+# endif |
1296 |
-+# endif |
1297 |
-+# endif |
1298 |
-+#endif |
1299 |
-+ |
1300 |
-+#ifndef ACCT_FILE |
1301 |
-+# if defined(__FreeBSD__) || defined(__linux__) \ |
1302 |
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1303 |
-+# define ACCT_FILE "/var/log/account/pacct" |
1304 |
-+# else |
1305 |
-+# if defined(__NetBSD__) |
1306 |
-+# define ACCT_FILE "/var/log/account/acct" |
1307 |
-+# else |
1308 |
-+# if defined(sun) || defined(AMIX) |
1309 |
-+# define ACCT_FILE "/var/adm/pacct" |
1310 |
-+# else |
1311 |
-+# if defined(sgi) || defined(SVR4) || defined(M_XENIX) |
1312 |
-+# define ACCT_FILE "/usr/adm/pacct" |
1313 |
-+# else |
1314 |
-+# define ACCT_FILE "/usr/adm/acct" |
1315 |
-+# endif |
1316 |
-+# endif |
1317 |
-+# endif |
1318 |
-+# endif |
1319 |
-+#endif |
1320 |
-+ |
1321 |
-+#ifndef SAVACCT_FILE |
1322 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
1323 |
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1324 |
-+# define SAVACCT_FILE "/var/log/account/savacct" |
1325 |
-+# else |
1326 |
-+# if defined(sun) || defined(AMIX) |
1327 |
-+# define SAVACCT_FILE "/var/adm/savacct" |
1328 |
-+# else |
1329 |
-+# if defined(sgi) || defined(SVR4) |
1330 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
1331 |
-+# else |
1332 |
-+# define SAVACCT_FILE "/usr/adm/savacct" |
1333 |
-+# endif |
1334 |
-+# endif |
1335 |
-+# endif |
1336 |
-+#endif |
1337 |
-+ |
1338 |
-+#ifndef USRACCT_FILE |
1339 |
-+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__linux__) \ |
1340 |
-+ || defined(__FreeBSD_kernel__) || defined(__GLIBC__) |
1341 |
-+# define USRACCT_FILE "/var/log/account/usracct" |
1342 |
-+# else |
1343 |
-+# if defined(sun) || defined(AMIX) |
1344 |
-+# define USRACCT_FILE "/var/adm/usracct" |
1345 |
-+# else |
1346 |
-+# if defined(sgi) || defined(SVR4) |
1347 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
1348 |
-+# else |
1349 |
-+# define USRACCT_FILE "/usr/adm/usracct" |
1350 |
-+# endif |
1351 |
-+# endif |
1352 |
-+# endif |
1353 |
-+#endif |
1354 |
-+ |
1355 |
-+#define WTMP_FILE_LOC WTMP_FILE |
1356 |
-+#define ACCT_FILE_LOC ACCT_FILE |
1357 |
-+#define SAVACCT_FILE_LOC SAVACCT_FILE |
1358 |
-+#define USRACCT_FILE_LOC USRACCT_FILE |
1359 |
-+ |
1360 |
-+/* Workaround for a kernel includes problem */ |
1361 |
-+#if defined(__linux__) && defined(__alpha__) |
1362 |
-+#undef AHZ |
1363 |
-+#define AHZ 1024 |
1364 |
-+#endif |
1365 |
-+ |
1366 |
-+#ifndef AHZ |
1367 |
-+#define AHZ 64 |
1368 |
-+#endif |
1369 |
-+ |
1370 |
-+#endif /* ! FILES_H */ |
1371 |
---- a/files.h.in |
1372 |
-+++ /dev/null |
1373 |
-@@ -1,48 +0,0 @@ |
1374 |
--/* files.h.in |
1375 |
-- * |
1376 |
-- * file locations |
1377 |
-- * |
1378 |
-- */ |
1379 |
-- |
1380 |
--#ifndef FILES_H |
1381 |
--#define FILES_H |
1382 |
-- |
1383 |
--#include "config.h" |
1384 |
-- |
1385 |
--#include <sys/types.h> |
1386 |
-- |
1387 |
--#ifdef LINUX_MULTIFORMAT |
1388 |
--# include "linux-acct.h" |
1389 |
--#else |
1390 |
--# include <stdint.h> /* GNU/kFreeBSD */ |
1391 |
--# include <sys/acct.h> |
1392 |
--# if defined __FreeBSD__ || defined __FreeBSD_kernel__ |
1393 |
--# include <osreldate.h> |
1394 |
--# if defined __FreeBSD_kernel__ |
1395 |
--# define __FreeBSD_version __FreeBSD_kernel_version |
1396 |
--# endif /* __FreeBSD_kernel__ */ |
1397 |
--# if __FreeBSD_version >= 700100 /* FreeBSD 7.0-STABLE */ |
1398 |
--# define acct acctv2 |
1399 |
--# define ac_flag ac_flagx |
1400 |
--# endif |
1401 |
--# endif |
1402 |
--#endif |
1403 |
-- |
1404 |
--#include <utmp.h> |
1405 |
-- |
1406 |
--#define WTMP_FILE_LOC "@WTMP_FILE_LOC@" |
1407 |
--#define ACCT_FILE_LOC "@ACCT_FILE_LOC@" |
1408 |
--#define SAVACCT_FILE_LOC "@SAVACCT_FILE_LOC@" |
1409 |
--#define USRACCT_FILE_LOC "@USRACCT_FILE_LOC@" |
1410 |
-- |
1411 |
--/* Workaround for a kernel includes problem */ |
1412 |
--#if defined(__linux__) && defined(__alpha__) |
1413 |
--#undef AHZ |
1414 |
--#define AHZ 1024 |
1415 |
--#endif |
1416 |
-- |
1417 |
--#ifndef AHZ |
1418 |
--#define AHZ 64 |
1419 |
--#endif |
1420 |
-- |
1421 |
--#endif /* ! FILES_H */ |
1422 |
|
1423 |
diff --git a/sys-process/acct/files/acct.confd b/sys-process/acct/files/acct.confd |
1424 |
deleted file mode 100644 |
1425 |
index 133efabcf62..00000000000 |
1426 |
--- a/sys-process/acct/files/acct.confd |
1427 |
+++ /dev/null |
1428 |
@@ -1,13 +0,0 @@ |
1429 |
-# /etc/conf.d/acct |
1430 |
- |
1431 |
-# ACCT_LOG specifies the accounting logging file. |
1432 |
-# Remember to create it manually if it doesn't yet exist. |
1433 |
- |
1434 |
-ACCT_LOG="/var/account/pacct" |
1435 |
- |
1436 |
-# REPORT_OPTS contains arguments for the "sa" command, |
1437 |
-# used for console-reporting. |
1438 |
-# Please run "sa --help" or "man sa" to get a description |
1439 |
-# of available options. |
1440 |
- |
1441 |
-REPORT_OPTS="--sort-real-time --list-all-names --percentage" |
1442 |
|
1443 |
diff --git a/sys-process/acct/files/acct.initd b/sys-process/acct/files/acct.initd |
1444 |
deleted file mode 100644 |
1445 |
index d6d9dfd6245..00000000000 |
1446 |
--- a/sys-process/acct/files/acct.initd |
1447 |
+++ /dev/null |
1448 |
@@ -1,36 +0,0 @@ |
1449 |
-#!/sbin/openrc-run |
1450 |
-# Copyright 1999-2012 Gentoo Foundation |
1451 |
-# Distributed under the terms of the GNU General Public License v2 |
1452 |
- |
1453 |
-extra_started_commands="report" |
1454 |
- |
1455 |
-depend() { |
1456 |
- need localmount |
1457 |
-} |
1458 |
- |
1459 |
-checkconfig() { |
1460 |
- export ACCT_LOG=${ACCT_LOG:-/var/account/pacct} |
1461 |
- if [ ! -e "${ACCT_LOG}" ] ; then |
1462 |
- touch "${ACCT_LOG}" |
1463 |
- chmod 600 "${ACCT_LOG}" |
1464 |
- fi |
1465 |
- return 0 |
1466 |
-} |
1467 |
- |
1468 |
-start() { |
1469 |
- checkconfig || return 1 |
1470 |
- |
1471 |
- ebegin "Starting accounting" |
1472 |
- accton "${ACCT_LOG}" >/dev/null |
1473 |
- eend $? |
1474 |
-} |
1475 |
- |
1476 |
-stop() { |
1477 |
- ebegin "Stopping accounting" |
1478 |
- accton off >/dev/null |
1479 |
- eend $? |
1480 |
-} |
1481 |
- |
1482 |
-report() { |
1483 |
- sa ${REPORT_OPTS} "${ACCT_LOG}" |
1484 |
-} |
1485 |
|
1486 |
diff --git a/sys-process/acct/files/acct.initd-r1 b/sys-process/acct/files/acct.initd-r1 |
1487 |
deleted file mode 100644 |
1488 |
index 09d9739fea2..00000000000 |
1489 |
--- a/sys-process/acct/files/acct.initd-r1 |
1490 |
+++ /dev/null |
1491 |
@@ -1,33 +0,0 @@ |
1492 |
-#!/sbin/openrc-run |
1493 |
-# Copyright 1999-2012 Gentoo Foundation |
1494 |
-# Distributed under the terms of the GNU General Public License v2 |
1495 |
- |
1496 |
-extra_started_commands="report" |
1497 |
- |
1498 |
-depend() { |
1499 |
- need localmount |
1500 |
-} |
1501 |
- |
1502 |
-checkconfig() { |
1503 |
- export ACCT_LOG=${ACCT_LOG:-/var/account/pacct} |
1504 |
- checkpath -f -m 600 "${ACCT_LOG}" |
1505 |
- return 0 |
1506 |
-} |
1507 |
- |
1508 |
-start() { |
1509 |
- checkconfig || return 1 |
1510 |
- |
1511 |
- ebegin "Starting accounting" |
1512 |
- accton "${ACCT_LOG}" >/dev/null |
1513 |
- eend $? |
1514 |
-} |
1515 |
- |
1516 |
-stop() { |
1517 |
- ebegin "Stopping accounting" |
1518 |
- accton off >/dev/null |
1519 |
- eend $? |
1520 |
-} |
1521 |
- |
1522 |
-report() { |
1523 |
- sa ${REPORT_OPTS} "${ACCT_LOG}" |
1524 |
-} |
1525 |
|
1526 |
diff --git a/sys-process/acct/files/acct.logrotate b/sys-process/acct/files/acct.logrotate |
1527 |
deleted file mode 100644 |
1528 |
index af6213434cd..00000000000 |
1529 |
--- a/sys-process/acct/files/acct.logrotate |
1530 |
+++ /dev/null |
1531 |
@@ -1,14 +0,0 @@ |
1532 |
-# Logrotate file for acct |
1533 |
- |
1534 |
-/var/account/pacct { |
1535 |
- compress |
1536 |
- delaycompress |
1537 |
- notifempty |
1538 |
- daily |
1539 |
- rotate 31 |
1540 |
- create 0600 root root |
1541 |
- missingok |
1542 |
- postrotate |
1543 |
- /etc/init.d/acct --quiet --ifstarted restart |
1544 |
- endscript |
1545 |
-} |