Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/audit/files/, sys-process/audit/
Date: Fri, 01 Jan 2021 02:03:09
Message-Id: 1609466444.7494ff77d198e87226f368af01769e2ebb38cb61.mgorny@gentoo
1 commit: 7494ff77d198e87226f368af01769e2ebb38cb61
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 02:00:44 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 02:00:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7494ff77
7
8 sys-process/audit: Remove old (py3.6)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-process/audit/Manifest | 4 -
13 sys-process/audit/audit-2.6.4.ebuild | 230 ---------------------
14 sys-process/audit/audit-2.7.1.ebuild | 230 ---------------------
15 sys-process/audit/audit-2.8.2.ebuild | 228 --------------------
16 sys-process/audit/audit-2.8.3.ebuild | 228 --------------------
17 .../audit/files/audit-2.1.3-ia64-compile-fix.patch | 212 -------------------
18 sys-process/audit/files/audit.rules | 24 ---
19 sys-process/audit/files/audit.rules.stop.post | 12 --
20 sys-process/audit/files/audit.rules.stop.pre | 15 --
21 9 files changed, 1183 deletions(-)
22
23 diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
24 index 2890c29de36..d5276de092b 100644
25 --- a/sys-process/audit/Manifest
26 +++ b/sys-process/audit/Manifest
27 @@ -1,8 +1,4 @@
28 DIST audit-017e6c6ab95df55f34e339d2139def83e5dada1f.patch 852 BLAKE2B 60d8b813f57338ce267a09913e68a0726acf5cf878cd2893fe2493f80d2b0ac1e0504dc7a72e85134ae2597b268cb1772b4e7c6c2f19149fc905f6928e2db47f SHA512 78e32c05b6896d37bacf0938954fbce7486a528dabd55421f1715438fe489171f9157059050abdcb3f673258aa28b4a11f643ddb7824f3499a195dbbe634f101
29 -DIST audit-2.6.4.tar.gz 1078677 BLAKE2B 056d9f269926d9b0d74f7187f833f1e94d4e03a5137750fe4ff87b71fa0ce0e0a8569b97ecbd671f951061cfb088dff17b46e37cc14122864c37615356646fc5 SHA512 69b5d3987d2b8b189d1242fde639af3d7d366e901733133e47ee71223caf73aa7da40b7811298f0af861969b0ab482c5ef9830b711bdd15bd5f4d0ebc88a1224
30 -DIST audit-2.7.1.tar.gz 1099083 BLAKE2B 10f72ac3273ce9e23e1fb8ad8d57dcae772ba1f861f519867399d95e14f4809897637969de45566d62a73a35e5674260155773daf8de00481fcbd1b9c3138f96 SHA512 37964d81deee8608fde5f90d5d096727d3eb009e084be34749adcb0662e607e35c49c80bd83ce38b17161f11363b691721c8a8aa5dea832d320c53ab0ebb7483
31 -DIST audit-2.8.2.tar.gz 1121970 BLAKE2B bbec694ed1177a8590d035c2d6d197e49343fc370b101589e58736042c3b12cabb68fe796422f3133feb79068ab7d5931efa5414d22edead10c8871fefcd2549 SHA512 888ebf5e8e9d285b82d87377fc8836886d7a8b089c1be4091420a77a0250c9baf09aebb7a6330ff5043fb35f51eb6baf8d4491e26da7ad0811f0087e395b5012
32 -DIST audit-2.8.3.tar.gz 1107583 BLAKE2B 21c2b8543a31c0ca4319af40b844f4400615108a59195a95ea79499ff2923d7dbbc840716d60dfba311bfc451983cd4cd0f7cb27c2444825df2c0dfb50f9614f SHA512 aa939b81a66111f4e466208d7a38414bd186d00ccd374b420439764905b4707bbfcdc2331a6179a080fca981d19171696ecabd26674205b2f9339c44954db933
33 DIST audit-2.8.4.tar.gz 1123889 BLAKE2B b80272b1984942d3c38bde30d22c736a8cc8896a2e42a9bf286446129313ce57a2a117ce26a0a5f1a4a06b4a48ddde463b8837b8c98273051be0c90e5bbebd42 SHA512 5795c565effab995cee447a2dc457ef6a6f15201fb185d7104992ac373a3cb5cfc865dd661c0896a895c96f452eff392d455064d0eead55cd7364d96e0d15c4a
34 DIST audit-2.8.5.tar.gz 1140694 BLAKE2B 64fd0cd93f934e3dd11faf21fcd765894a9c4336d8322179980bb7df1ef5a06d301a665860aeb84fefa0cf278940668023675b99ba7f33cdcfb542d869034358 SHA512 7d416aaa21c1a167f8e911ca82aecbaba804424f3243f505066c43ecc4a62a34feb2c27555e99d3268608404793dccca0f828c63670e3aa816016fb493f8174a
35 DIST audit-2.8.5_p80866dc78b5d.tar.gz 552094 BLAKE2B adb936a314ef2f11828ee00f3513631e06e2df09e37e68be27b1b694e278116d2f486dbde7ed57c77d9ff0bcd09309ea841959c7a66caed6770f367d65dd14f4 SHA512 7ec103bf076cfac7906748162e78835f1f65dd9d68e3a7466346e0473075beb47897adf88ab9ba0eb42db1953372aafb16cc040674b9a9c887730c062b82540a
36
37 diff --git a/sys-process/audit/audit-2.6.4.ebuild b/sys-process/audit/audit-2.6.4.ebuild
38 deleted file mode 100644
39 index fe6c17834e6..00000000000
40 --- a/sys-process/audit/audit-2.6.4.ebuild
41 +++ /dev/null
42 @@ -1,230 +0,0 @@
43 -# Copyright 1999-2020 Gentoo Authors
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI="6"
47 -
48 -PYTHON_COMPAT=( python3_6 )
49 -
50 -inherit autotools ltprune multilib multilib-minimal toolchain-funcs preserve-libs python-r1 linux-info systemd usr-ldscript
51 -
52 -DESCRIPTION="Userspace utilities for storing and processing auditing records"
53 -HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
54 -SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz"
55 -
56 -LICENSE="GPL-2+ LGPL-2.1+"
57 -SLOT="0"
58 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
59 -IUSE="gssapi ldap python static-libs"
60 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
61 -# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
62 -RESTRICT="test"
63 -
64 -RDEPEND="gssapi? ( virtual/krb5 )
65 - ldap? ( net-nds/openldap )
66 - sys-libs/libcap-ng
67 - python? ( ${PYTHON_DEPS} )"
68 -DEPEND="${RDEPEND}
69 - >=sys-kernel/linux-headers-2.6.34
70 - python? ( dev-lang/swig:0 )"
71 -# Do not use os-headers as this is linux specific
72 -
73 -CONFIG_CHECK="~AUDIT"
74 -
75 -pkg_setup() {
76 - linux-info_pkg_setup
77 -}
78 -
79 -src_prepare() {
80 - eapply_user
81 -
82 - # Do not build GUI tools
83 - sed -i \
84 - -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \
85 - "${S}"/configure.ac || die
86 - sed -i \
87 - -e 's,system-config-audit,,g' \
88 - "${S}"/Makefile.am || die
89 - rm -rf "${S}"/system-config-audit
90 -
91 - if ! use ldap; then
92 - sed -i \
93 - -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \
94 - "${S}"/configure.ac || die
95 - sed -i \
96 - -e '/^SUBDIRS/s,zos-remote,,g' \
97 - "${S}"/audisp/plugins/Makefile.am || die
98 - fi
99 -
100 - # Don't build static version of Python module.
101 - eapply "${FILESDIR}"/${PN}-2.4.3-python.patch
102 -
103 - # glibc/kernel upstreams suck with both defining ia64_fpreg
104 - # This patch is a horribly workaround that is only valid as long as you
105 - # don't need the OTHER definitions in fpu.h.
106 - eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
107 -
108 - # there is no --without-golang conf option
109 - sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die
110 -
111 - # Regenerate autotooling
112 - eautoreconf
113 -}
114 -
115 -multilib_src_configure() {
116 - local ECONF_SOURCE=${S}
117 - econf \
118 - --sbindir="${EPREFIX}/sbin" \
119 - $(use_enable gssapi gssapi-krb5) \
120 - $(use_enable static-libs static) \
121 - --enable-systemd \
122 - --without-python \
123 - --without-python3
124 -
125 - if multilib_is_native_abi; then
126 - python_configure() {
127 - mkdir -p "${BUILD_DIR}" || die
128 - cd "${BUILD_DIR}" || die
129 -
130 - if python_is_python3; then
131 - econf --without-python --with-python3
132 - else
133 - econf --with-python --without-python3
134 - fi
135 - }
136 -
137 - use python && python_foreach_impl python_configure
138 - fi
139 -}
140 -
141 -src_configure() {
142 - tc-export_build_env BUILD_{CC,CPP}
143 - export CC_FOR_BUILD="${BUILD_CC}"
144 - export CPP_FOR_BUILD="${BUILD_CPP}"
145 -
146 - multilib-minimal_src_configure
147 -}
148 -
149 -multilib_src_compile() {
150 - if multilib_is_native_abi; then
151 - default
152 -
153 - python_compile() {
154 - local pysuffix pydef
155 - if python_is_python3; then
156 - pysuffix=3
157 - pydef='USE_PYTHON3=true'
158 - else
159 - pysuffix=2
160 - pydef='HAVE_PYTHON=true'
161 - fi
162 -
163 - emake -C "${BUILD_DIR}"/bindings/swig \
164 - VPATH="${native_build}/lib" \
165 - LIBS="${native_build}/lib/libaudit.la" \
166 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
167 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
168 - ${pydef}
169 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
170 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
171 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
172 - ${pydef}
173 - }
174 -
175 - local native_build="${BUILD_DIR}"
176 - use python && python_foreach_impl python_compile
177 - else
178 - emake -C lib
179 - emake -C auparse
180 - fi
181 -}
182 -
183 -multilib_src_install() {
184 - if multilib_is_native_abi; then
185 - emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install
186 -
187 - python_install() {
188 - local pysuffix pydef
189 - if python_is_python3; then
190 - pysuffix=3
191 - pydef='USE_PYTHON3=true'
192 - else
193 - pysuffix=2
194 - pydef='HAVE_PYTHON=true'
195 - fi
196 -
197 - emake -C "${BUILD_DIR}"/bindings/swig \
198 - VPATH="${native_build}/lib" \
199 - LIBS="${native_build}/lib/libaudit.la" \
200 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
201 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
202 - ${pydef} \
203 - DESTDIR="${D}" install
204 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
205 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
206 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
207 - ${pydef} \
208 - DESTDIR="${D}" install
209 - }
210 -
211 - local native_build=${BUILD_DIR}
212 - use python && python_foreach_impl python_install
213 -
214 - # things like shadow use this so we need to be in /
215 - gen_usr_ldscript -a audit auparse
216 - else
217 - emake -C lib DESTDIR="${D}" install
218 - emake -C auparse DESTDIR="${D}" install
219 - fi
220 -}
221 -
222 -multilib_src_install_all() {
223 - dodoc AUTHORS ChangeLog README* THANKS TODO
224 - docinto contrib
225 - dodoc contrib/{avc_snap,skeleton.c}
226 - docinto contrib/plugin
227 - dodoc contrib/plugin/*
228 - docinto rules
229 - dodoc rules/*
230 -
231 - newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd
232 - newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd
233 -
234 - chmod 644 "${D}$(systemd_get_systemunitdir)"/auditd.service || die # 556436
235 -
236 - [ -f "${ED}"/sbin/audisp-remote ] && \
237 - dodir /usr/sbin && \
238 - mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die
239 -
240 - # Gentoo rules
241 - insinto /etc/audit/
242 - newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules
243 - doins "${FILESDIR}"/audit.rules.stop*
244 -
245 - # audit logs go here
246 - keepdir /var/log/audit/
247 -
248 - # Security
249 - lockdown_perms "${ED}"
250 -
251 - prune_libtool_files --modules
252 -}
253 -
254 -pkg_preinst() {
255 - # Preserve from the audit-1 series
256 - preserve_old_lib /$(get_libdir)/libaudit.so.0
257 -}
258 -
259 -pkg_postinst() {
260 - lockdown_perms "${EROOT}"
261 - # Preserve from the audit-1 series
262 - preserve_old_lib_notify /$(get_libdir)/libaudit.so.0
263 -}
264 -
265 -lockdown_perms() {
266 - # Upstream wants these to have restrictive perms.
267 - # Should not || die as not all paths may exist.
268 - local basedir="$1"
269 - chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
270 - chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null
271 - chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null
272 -}
273
274 diff --git a/sys-process/audit/audit-2.7.1.ebuild b/sys-process/audit/audit-2.7.1.ebuild
275 deleted file mode 100644
276 index b3448548a50..00000000000
277 --- a/sys-process/audit/audit-2.7.1.ebuild
278 +++ /dev/null
279 @@ -1,230 +0,0 @@
280 -# Copyright 1999-2020 Gentoo Authors
281 -# Distributed under the terms of the GNU General Public License v2
282 -
283 -EAPI=6
284 -
285 -PYTHON_COMPAT=( python3_6 )
286 -
287 -inherit autotools ltprune multilib multilib-minimal toolchain-funcs preserve-libs python-r1 linux-info systemd usr-ldscript
288 -
289 -DESCRIPTION="Userspace utilities for storing and processing auditing records"
290 -HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
291 -SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz"
292 -
293 -LICENSE="GPL-2+ LGPL-2.1+"
294 -SLOT="0"
295 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
296 -IUSE="gssapi ldap python static-libs"
297 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
298 -# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
299 -RESTRICT="test"
300 -
301 -RDEPEND="gssapi? ( virtual/krb5 )
302 - ldap? ( net-nds/openldap )
303 - sys-libs/libcap-ng
304 - python? ( ${PYTHON_DEPS} )"
305 -DEPEND="${RDEPEND}
306 - >=sys-kernel/linux-headers-2.6.34
307 - python? ( dev-lang/swig:0 )"
308 -# Do not use os-headers as this is linux specific
309 -
310 -CONFIG_CHECK="~AUDIT"
311 -
312 -pkg_setup() {
313 - linux-info_pkg_setup
314 -}
315 -
316 -src_prepare() {
317 - eapply_user
318 -
319 - # Do not build GUI tools
320 - sed -i \
321 - -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \
322 - "${S}"/configure.ac || die
323 - sed -i \
324 - -e 's,system-config-audit,,g' \
325 - "${S}"/Makefile.am || die
326 - rm -rf "${S}"/system-config-audit
327 -
328 - if ! use ldap; then
329 - sed -i \
330 - -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \
331 - "${S}"/configure.ac || die
332 - sed -i \
333 - -e '/^SUBDIRS/s,zos-remote,,g' \
334 - "${S}"/audisp/plugins/Makefile.am || die
335 - fi
336 -
337 - # Don't build static version of Python module.
338 - eapply "${FILESDIR}"/${PN}-2.4.3-python.patch
339 -
340 - # glibc/kernel upstreams suck with both defining ia64_fpreg
341 - # This patch is a horribly workaround that is only valid as long as you
342 - # don't need the OTHER definitions in fpu.h.
343 - eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
344 -
345 - # there is no --without-golang conf option
346 - sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die
347 -
348 - # Regenerate autotooling
349 - eautoreconf
350 -}
351 -
352 -multilib_src_configure() {
353 - local ECONF_SOURCE=${S}
354 - econf \
355 - --sbindir="${EPREFIX}/sbin" \
356 - $(use_enable gssapi gssapi-krb5) \
357 - $(use_enable static-libs static) \
358 - --enable-systemd \
359 - --without-python \
360 - --without-python3
361 -
362 - if multilib_is_native_abi; then
363 - python_configure() {
364 - mkdir -p "${BUILD_DIR}" || die
365 - cd "${BUILD_DIR}" || die
366 -
367 - if python_is_python3; then
368 - econf --without-python --with-python3
369 - else
370 - econf --with-python --without-python3
371 - fi
372 - }
373 -
374 - use python && python_foreach_impl python_configure
375 - fi
376 -}
377 -
378 -src_configure() {
379 - tc-export_build_env BUILD_{CC,CPP}
380 - export CC_FOR_BUILD="${BUILD_CC}"
381 - export CPP_FOR_BUILD="${BUILD_CPP}"
382 -
383 - multilib-minimal_src_configure
384 -}
385 -
386 -multilib_src_compile() {
387 - if multilib_is_native_abi; then
388 - default
389 -
390 - python_compile() {
391 - local pysuffix pydef
392 - if python_is_python3; then
393 - pysuffix=3
394 - pydef='USE_PYTHON3=true'
395 - else
396 - pysuffix=2
397 - pydef='HAVE_PYTHON=true'
398 - fi
399 -
400 - emake -C "${BUILD_DIR}"/bindings/swig \
401 - VPATH="${native_build}/lib" \
402 - LIBS="${native_build}/lib/libaudit.la" \
403 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
404 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
405 - ${pydef}
406 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
407 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
408 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
409 - ${pydef}
410 - }
411 -
412 - local native_build="${BUILD_DIR}"
413 - use python && python_foreach_impl python_compile
414 - else
415 - emake -C lib
416 - emake -C auparse
417 - fi
418 -}
419 -
420 -multilib_src_install() {
421 - if multilib_is_native_abi; then
422 - emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install
423 -
424 - python_install() {
425 - local pysuffix pydef
426 - if python_is_python3; then
427 - pysuffix=3
428 - pydef='USE_PYTHON3=true'
429 - else
430 - pysuffix=2
431 - pydef='HAVE_PYTHON=true'
432 - fi
433 -
434 - emake -C "${BUILD_DIR}"/bindings/swig \
435 - VPATH="${native_build}/lib" \
436 - LIBS="${native_build}/lib/libaudit.la" \
437 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
438 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
439 - ${pydef} \
440 - DESTDIR="${D}" install
441 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
442 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
443 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
444 - ${pydef} \
445 - DESTDIR="${D}" install
446 - }
447 -
448 - local native_build=${BUILD_DIR}
449 - use python && python_foreach_impl python_install
450 -
451 - # things like shadow use this so we need to be in /
452 - gen_usr_ldscript -a audit auparse
453 - else
454 - emake -C lib DESTDIR="${D}" install
455 - emake -C auparse DESTDIR="${D}" install
456 - fi
457 -}
458 -
459 -multilib_src_install_all() {
460 - dodoc AUTHORS ChangeLog README* THANKS TODO
461 - docinto contrib
462 - dodoc contrib/{avc_snap,skeleton.c}
463 - docinto contrib/plugin
464 - dodoc contrib/plugin/*
465 - docinto rules
466 - dodoc rules/*
467 -
468 - newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd
469 - newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd
470 -
471 - chmod 644 "${D}$(systemd_get_systemunitdir)"/auditd.service || die # 556436
472 -
473 - [ -f "${ED}"/sbin/audisp-remote ] && \
474 - dodir /usr/sbin && \
475 - mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die
476 -
477 - # Gentoo rules
478 - insinto /etc/audit/
479 - newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules
480 - doins "${FILESDIR}"/audit.rules.stop*
481 -
482 - # audit logs go here
483 - keepdir /var/log/audit/
484 -
485 - # Security
486 - lockdown_perms "${ED}"
487 -
488 - prune_libtool_files --modules
489 -}
490 -
491 -pkg_preinst() {
492 - # Preserve from the audit-1 series
493 - preserve_old_lib /$(get_libdir)/libaudit.so.0
494 -}
495 -
496 -pkg_postinst() {
497 - lockdown_perms "${EROOT}"
498 - # Preserve from the audit-1 series
499 - preserve_old_lib_notify /$(get_libdir)/libaudit.so.0
500 -}
501 -
502 -lockdown_perms() {
503 - # Upstream wants these to have restrictive perms.
504 - # Should not || die as not all paths may exist.
505 - local basedir="$1"
506 - chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
507 - chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null
508 - chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null
509 -}
510
511 diff --git a/sys-process/audit/audit-2.8.2.ebuild b/sys-process/audit/audit-2.8.2.ebuild
512 deleted file mode 100644
513 index 6bcdd339ea4..00000000000
514 --- a/sys-process/audit/audit-2.8.2.ebuild
515 +++ /dev/null
516 @@ -1,228 +0,0 @@
517 -# Copyright 1999-2020 Gentoo Authors
518 -# Distributed under the terms of the GNU General Public License v2
519 -
520 -EAPI="6"
521 -
522 -PYTHON_COMPAT=( python3_6 )
523 -
524 -inherit autotools multilib multilib-minimal toolchain-funcs preserve-libs python-r1 linux-info systemd usr-ldscript
525 -
526 -DESCRIPTION="Userspace utilities for storing and processing auditing records"
527 -HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
528 -SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz"
529 -
530 -LICENSE="GPL-2+ LGPL-2.1+"
531 -SLOT="0"
532 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
533 -IUSE="gssapi ldap python static-libs"
534 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
535 -# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
536 -RESTRICT="test"
537 -
538 -RDEPEND="gssapi? ( virtual/krb5 )
539 - ldap? ( net-nds/openldap )
540 - sys-libs/libcap-ng
541 - python? ( ${PYTHON_DEPS} )"
542 -DEPEND="${RDEPEND}
543 - >=sys-kernel/linux-headers-2.6.34
544 - python? ( dev-lang/swig:0 )"
545 -# Do not use os-headers as this is linux specific
546 -
547 -CONFIG_CHECK="~AUDIT"
548 -
549 -pkg_setup() {
550 - linux-info_pkg_setup
551 -}
552 -
553 -src_prepare() {
554 - eapply_user
555 -
556 - # Do not build GUI tools
557 - sed -i \
558 - -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \
559 - "${S}"/configure.ac || die
560 - sed -i \
561 - -e 's,system-config-audit,,g' \
562 - "${S}"/Makefile.am || die
563 - rm -rf "${S}"/system-config-audit
564 -
565 - if ! use ldap; then
566 - sed -i \
567 - -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \
568 - "${S}"/configure.ac || die
569 - sed -i \
570 - -e '/^SUBDIRS/s,zos-remote,,g' \
571 - "${S}"/audisp/plugins/Makefile.am || die
572 - fi
573 -
574 - # Don't build static version of Python module.
575 - eapply "${FILESDIR}"/${PN}-2.4.3-python.patch
576 -
577 - # glibc/kernel upstreams suck with both defining ia64_fpreg
578 - # This patch is a horribly workaround that is only valid as long as you
579 - # don't need the OTHER definitions in fpu.h.
580 - eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
581 -
582 - # there is no --without-golang conf option
583 - sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die
584 -
585 - # Regenerate autotooling
586 - eautoreconf
587 -}
588 -
589 -multilib_src_configure() {
590 - local ECONF_SOURCE=${S}
591 - econf \
592 - --sbindir="${EPREFIX}/sbin" \
593 - $(use_enable gssapi gssapi-krb5) \
594 - $(use_enable static-libs static) \
595 - --enable-systemd \
596 - --without-python \
597 - --without-python3
598 -
599 - if multilib_is_native_abi; then
600 - python_configure() {
601 - mkdir -p "${BUILD_DIR}" || die
602 - cd "${BUILD_DIR}" || die
603 -
604 - if python_is_python3; then
605 - econf --without-python --with-python3
606 - else
607 - econf --with-python --without-python3
608 - fi
609 - }
610 -
611 - use python && python_foreach_impl python_configure
612 - fi
613 -}
614 -
615 -src_configure() {
616 - tc-export_build_env BUILD_{CC,CPP}
617 - export CC_FOR_BUILD="${BUILD_CC}"
618 - export CPP_FOR_BUILD="${BUILD_CPP}"
619 -
620 - multilib-minimal_src_configure
621 -}
622 -
623 -multilib_src_compile() {
624 - if multilib_is_native_abi; then
625 - default
626 -
627 - python_compile() {
628 - local pysuffix pydef
629 - if python_is_python3; then
630 - pysuffix=3
631 - pydef='USE_PYTHON3=true'
632 - else
633 - pysuffix=2
634 - pydef='HAVE_PYTHON=true'
635 - fi
636 -
637 - emake -C "${BUILD_DIR}"/bindings/swig \
638 - VPATH="${native_build}/lib" \
639 - LIBS="${native_build}/lib/libaudit.la" \
640 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
641 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
642 - ${pydef}
643 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
644 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
645 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
646 - ${pydef}
647 - }
648 -
649 - local native_build="${BUILD_DIR}"
650 - use python && python_foreach_impl python_compile
651 - else
652 - emake -C lib
653 - emake -C auparse
654 - fi
655 -}
656 -
657 -multilib_src_install() {
658 - if multilib_is_native_abi; then
659 - emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install
660 -
661 - python_install() {
662 - local pysuffix pydef
663 - if python_is_python3; then
664 - pysuffix=3
665 - pydef='USE_PYTHON3=true'
666 - else
667 - pysuffix=2
668 - pydef='HAVE_PYTHON=true'
669 - fi
670 -
671 - emake -C "${BUILD_DIR}"/bindings/swig \
672 - VPATH="${native_build}/lib" \
673 - LIBS="${native_build}/lib/libaudit.la" \
674 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
675 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
676 - ${pydef} \
677 - DESTDIR="${D}" install
678 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
679 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
680 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
681 - ${pydef} \
682 - DESTDIR="${D}" install
683 - }
684 -
685 - local native_build=${BUILD_DIR}
686 - use python && python_foreach_impl python_install
687 -
688 - # things like shadow use this so we need to be in /
689 - gen_usr_ldscript -a audit auparse
690 - else
691 - emake -C lib DESTDIR="${D}" install
692 - emake -C auparse DESTDIR="${D}" install
693 - fi
694 -}
695 -
696 -multilib_src_install_all() {
697 - dodoc AUTHORS ChangeLog README* THANKS TODO
698 - docinto contrib
699 - dodoc contrib/{avc_snap,skeleton.c}
700 - docinto contrib/plugin
701 - dodoc contrib/plugin/*
702 - docinto rules
703 - dodoc rules/*
704 -
705 - newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd
706 - newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd
707 -
708 - [ -f "${ED}"/sbin/audisp-remote ] && \
709 - dodir /usr/sbin && \
710 - mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die
711 -
712 - # Gentoo rules
713 - insinto /etc/audit/
714 - newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules
715 - doins "${FILESDIR}"/audit.rules.stop*
716 -
717 - # audit logs go here
718 - keepdir /var/log/audit/
719 -
720 - find "${D}" -name '*.la' -delete || die
721 -
722 - # Security
723 - lockdown_perms "${ED}"
724 -}
725 -
726 -pkg_preinst() {
727 - # Preserve from the audit-1 series
728 - preserve_old_lib /$(get_libdir)/libaudit.so.0
729 -}
730 -
731 -pkg_postinst() {
732 - lockdown_perms "${EROOT}"
733 - # Preserve from the audit-1 series
734 - preserve_old_lib_notify /$(get_libdir)/libaudit.so.0
735 -}
736 -
737 -lockdown_perms() {
738 - # Upstream wants these to have restrictive perms.
739 - # Should not || die as not all paths may exist.
740 - local basedir="$1"
741 - chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
742 - chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null
743 - chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null
744 -}
745
746 diff --git a/sys-process/audit/audit-2.8.3.ebuild b/sys-process/audit/audit-2.8.3.ebuild
747 deleted file mode 100644
748 index 64b55ec39e2..00000000000
749 --- a/sys-process/audit/audit-2.8.3.ebuild
750 +++ /dev/null
751 @@ -1,228 +0,0 @@
752 -# Copyright 1999-2020 Gentoo Authors
753 -# Distributed under the terms of the GNU General Public License v2
754 -
755 -EAPI="6"
756 -
757 -PYTHON_COMPAT=( python3_6 )
758 -
759 -inherit autotools multilib multilib-minimal toolchain-funcs preserve-libs python-r1 linux-info systemd usr-ldscript
760 -
761 -DESCRIPTION="Userspace utilities for storing and processing auditing records"
762 -HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
763 -SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz"
764 -
765 -LICENSE="GPL-2+ LGPL-2.1+"
766 -SLOT="0"
767 -KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
768 -IUSE="gssapi ldap python static-libs"
769 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
770 -# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
771 -RESTRICT="test"
772 -
773 -RDEPEND="gssapi? ( virtual/krb5 )
774 - ldap? ( net-nds/openldap )
775 - sys-libs/libcap-ng
776 - python? ( ${PYTHON_DEPS} )"
777 -DEPEND="${RDEPEND}
778 - >=sys-kernel/linux-headers-2.6.34
779 - python? ( dev-lang/swig:0 )"
780 -# Do not use os-headers as this is linux specific
781 -
782 -CONFIG_CHECK="~AUDIT"
783 -
784 -pkg_setup() {
785 - linux-info_pkg_setup
786 -}
787 -
788 -src_prepare() {
789 - eapply_user
790 -
791 - # Do not build GUI tools
792 - sed -i \
793 - -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \
794 - "${S}"/configure.ac || die
795 - sed -i \
796 - -e 's,system-config-audit,,g' \
797 - "${S}"/Makefile.am || die
798 - rm -rf "${S}"/system-config-audit
799 -
800 - if ! use ldap; then
801 - sed -i \
802 - -e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \
803 - "${S}"/configure.ac || die
804 - sed -i \
805 - -e '/^SUBDIRS/s,zos-remote,,g' \
806 - "${S}"/audisp/plugins/Makefile.am || die
807 - fi
808 -
809 - # Don't build static version of Python module.
810 - eapply "${FILESDIR}"/${PN}-2.4.3-python.patch
811 -
812 - # glibc/kernel upstreams suck with both defining ia64_fpreg
813 - # This patch is a horribly workaround that is only valid as long as you
814 - # don't need the OTHER definitions in fpu.h.
815 - eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
816 -
817 - # there is no --without-golang conf option
818 - sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die
819 -
820 - # Regenerate autotooling
821 - eautoreconf
822 -}
823 -
824 -multilib_src_configure() {
825 - local ECONF_SOURCE=${S}
826 - econf \
827 - --sbindir="${EPREFIX}/sbin" \
828 - $(use_enable gssapi gssapi-krb5) \
829 - $(use_enable static-libs static) \
830 - --enable-systemd \
831 - --without-python \
832 - --without-python3
833 -
834 - if multilib_is_native_abi; then
835 - python_configure() {
836 - mkdir -p "${BUILD_DIR}" || die
837 - cd "${BUILD_DIR}" || die
838 -
839 - if python_is_python3; then
840 - econf --without-python --with-python3
841 - else
842 - econf --with-python --without-python3
843 - fi
844 - }
845 -
846 - use python && python_foreach_impl python_configure
847 - fi
848 -}
849 -
850 -src_configure() {
851 - tc-export_build_env BUILD_{CC,CPP}
852 - export CC_FOR_BUILD="${BUILD_CC}"
853 - export CPP_FOR_BUILD="${BUILD_CPP}"
854 -
855 - multilib-minimal_src_configure
856 -}
857 -
858 -multilib_src_compile() {
859 - if multilib_is_native_abi; then
860 - default
861 -
862 - python_compile() {
863 - local pysuffix pydef
864 - if python_is_python3; then
865 - pysuffix=3
866 - pydef='USE_PYTHON3=true'
867 - else
868 - pysuffix=2
869 - pydef='HAVE_PYTHON=true'
870 - fi
871 -
872 - emake -C "${BUILD_DIR}"/bindings/swig \
873 - VPATH="${native_build}/lib" \
874 - LIBS="${native_build}/lib/libaudit.la" \
875 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
876 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
877 - ${pydef}
878 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
879 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
880 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
881 - ${pydef}
882 - }
883 -
884 - local native_build="${BUILD_DIR}"
885 - use python && python_foreach_impl python_compile
886 - else
887 - emake -C lib
888 - emake -C auparse
889 - fi
890 -}
891 -
892 -multilib_src_install() {
893 - if multilib_is_native_abi; then
894 - emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install
895 -
896 - python_install() {
897 - local pysuffix pydef
898 - if python_is_python3; then
899 - pysuffix=3
900 - pydef='USE_PYTHON3=true'
901 - else
902 - pysuffix=2
903 - pydef='HAVE_PYTHON=true'
904 - fi
905 -
906 - emake -C "${BUILD_DIR}"/bindings/swig \
907 - VPATH="${native_build}/lib" \
908 - LIBS="${native_build}/lib/libaudit.la" \
909 - _audit_la_LIBADD="${native_build}/lib/libaudit.la" \
910 - _audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
911 - ${pydef} \
912 - DESTDIR="${D}" install
913 - emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
914 - VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
915 - auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
916 - ${pydef} \
917 - DESTDIR="${D}" install
918 - }
919 -
920 - local native_build=${BUILD_DIR}
921 - use python && python_foreach_impl python_install
922 -
923 - # things like shadow use this so we need to be in /
924 - gen_usr_ldscript -a audit auparse
925 - else
926 - emake -C lib DESTDIR="${D}" install
927 - emake -C auparse DESTDIR="${D}" install
928 - fi
929 -}
930 -
931 -multilib_src_install_all() {
932 - dodoc AUTHORS ChangeLog README* THANKS TODO
933 - docinto contrib
934 - dodoc contrib/{avc_snap,skeleton.c}
935 - docinto contrib/plugin
936 - dodoc contrib/plugin/*
937 - docinto rules
938 - dodoc rules/*
939 -
940 - newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd
941 - newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd
942 -
943 - [ -f "${ED}"/sbin/audisp-remote ] && \
944 - dodir /usr/sbin && \
945 - mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die
946 -
947 - # Gentoo rules
948 - insinto /etc/audit/
949 - newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules
950 - doins "${FILESDIR}"/audit.rules.stop*
951 -
952 - # audit logs go here
953 - keepdir /var/log/audit/
954 -
955 - find "${D}" -name '*.la' -delete || die
956 -
957 - # Security
958 - lockdown_perms "${ED}"
959 -}
960 -
961 -pkg_preinst() {
962 - # Preserve from the audit-1 series
963 - preserve_old_lib /$(get_libdir)/libaudit.so.0
964 -}
965 -
966 -pkg_postinst() {
967 - lockdown_perms "${EROOT}"
968 - # Preserve from the audit-1 series
969 - preserve_old_lib_notify /$(get_libdir)/libaudit.so.0
970 -}
971 -
972 -lockdown_perms() {
973 - # Upstream wants these to have restrictive perms.
974 - # Should not || die as not all paths may exist.
975 - local basedir="$1"
976 - chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
977 - chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null
978 - chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null
979 -}
980
981 diff --git a/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch b/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch
982 deleted file mode 100644
983 index 3ec60fbc48e..00000000000
984 --- a/sys-process/audit/files/audit-2.1.3-ia64-compile-fix.patch
985 +++ /dev/null
986 @@ -1,212 +0,0 @@
987 -diff -Nuar -X exclude audit-2.1.3.orig/configure.ac audit-2.1.3/configure.ac
988 ---- audit-2.1.3.orig/configure.ac 2011-08-15 17:30:58.000000000 +0000
989 -+++ audit-2.1.3/configure.ac 2012-12-18 20:03:22.000000000 +0000
990 -@@ -79,6 +79,9 @@
991 - esac
992 - fi
993 -
994 -+AC_CHECK_HEADER([asm/ptrace.h], [AC_DEFINE([HAVE_ASM_PTRACE_H],[],[Define to 1 if you have asm/ptrace.h])], [])
995 -+AC_CHECK_HEADER([linux/ptrace.h], [AC_DEFINE([HAVE_LINUX_PTRACE_H],[],[Define to 1 if you have linux/ptrace.h])], [])
996 -+
997 - #gssapi
998 - AC_ARG_ENABLE(gssapi_krb5,
999 - [AS_HELP_STRING([--enable-gssapi-krb5],[Enable GSSAPI Kerberos 5 support @<:@default=no@:>@])],
1000 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditctl.c audit-2.1.3/src/auditctl.c
1001 ---- audit-2.1.3.orig/src/auditctl.c 2011-08-15 17:31:00.000000000 +0000
1002 -+++ audit-2.1.3/src/auditctl.c 2012-12-18 20:21:21.000000000 +0000
1003 -@@ -22,6 +22,7 @@
1004 - */
1005 -
1006 - #include "config.h"
1007 -+#include "fixup.h"
1008 - #include <stdio.h>
1009 - #include <stdlib.h>
1010 - #include <string.h> /* strdup needs xopen define */
1011 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-config.c audit-2.1.3/src/auditd-config.c
1012 ---- audit-2.1.3.orig/src/auditd-config.c 2011-08-15 17:31:00.000000000 +0000
1013 -+++ audit-2.1.3/src/auditd-config.c 2012-12-18 20:21:23.000000000 +0000
1014 -@@ -22,6 +22,7 @@
1015 - */
1016 -
1017 - #include "config.h"
1018 -+#include "fixup.h"
1019 - #include <stdio.h>
1020 - #include <unistd.h>
1021 - #include <sys/stat.h>
1022 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-dispatch.c audit-2.1.3/src/auditd-dispatch.c
1023 ---- audit-2.1.3.orig/src/auditd-dispatch.c 2011-08-15 17:31:00.000000000 +0000
1024 -+++ audit-2.1.3/src/auditd-dispatch.c 2012-12-18 20:21:27.000000000 +0000
1025 -@@ -22,6 +22,7 @@
1026 - */
1027 -
1028 - #include "config.h"
1029 -+#include "fixup.h"
1030 - #include <unistd.h>
1031 - #include <sys/uio.h>
1032 - #include <fcntl.h>
1033 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-event.c audit-2.1.3/src/auditd-event.c
1034 ---- audit-2.1.3.orig/src/auditd-event.c 2011-08-15 17:31:00.000000000 +0000
1035 -+++ audit-2.1.3/src/auditd-event.c 2012-12-18 20:21:29.000000000 +0000
1036 -@@ -22,6 +22,7 @@
1037 - */
1038 -
1039 - #include "config.h"
1040 -+#include "fixup.h"
1041 - #include <stdio.h>
1042 - #include <stdlib.h>
1043 - #include <unistd.h>
1044 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-listen.c audit-2.1.3/src/auditd-listen.c
1045 ---- audit-2.1.3.orig/src/auditd-listen.c 2011-08-15 17:31:00.000000000 +0000
1046 -+++ audit-2.1.3/src/auditd-listen.c 2012-12-18 20:21:31.000000000 +0000
1047 -@@ -22,6 +22,7 @@
1048 - */
1049 -
1050 - #include "config.h"
1051 -+#include "fixup.h"
1052 - #include <stdio.h>
1053 - #include <unistd.h>
1054 - #include <sys/stat.h>
1055 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-reconfig.c audit-2.1.3/src/auditd-reconfig.c
1056 ---- audit-2.1.3.orig/src/auditd-reconfig.c 2011-08-15 17:31:00.000000000 +0000
1057 -+++ audit-2.1.3/src/auditd-reconfig.c 2012-12-18 20:21:33.000000000 +0000
1058 -@@ -22,6 +22,7 @@
1059 - */
1060 -
1061 - #include "config.h"
1062 -+#include "fixup.h"
1063 - #include <pthread.h>
1064 - #include <signal.h>
1065 - #include <stdlib.h>
1066 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd-sendmail.c audit-2.1.3/src/auditd-sendmail.c
1067 ---- audit-2.1.3.orig/src/auditd-sendmail.c 2011-08-15 17:31:00.000000000 +0000
1068 -+++ audit-2.1.3/src/auditd-sendmail.c 2012-12-18 20:21:34.000000000 +0000
1069 -@@ -22,6 +22,7 @@
1070 - */
1071 -
1072 - #include "config.h"
1073 -+#include "fixup.h"
1074 - #include <stdio.h>
1075 - #include <unistd.h> // for access()
1076 - #include <string.h>
1077 -diff -Nuar -X exclude audit-2.1.3.orig/src/auditd.c audit-2.1.3/src/auditd.c
1078 ---- audit-2.1.3.orig/src/auditd.c 2011-08-15 17:31:00.000000000 +0000
1079 -+++ audit-2.1.3/src/auditd.c 2012-12-18 20:21:38.000000000 +0000
1080 -@@ -22,6 +22,7 @@
1081 - */
1082 -
1083 - #include "config.h"
1084 -+#include "fixup.h"
1085 - #include <stdio.h>
1086 - #include <sys/types.h>
1087 - #include <unistd.h>
1088 -diff -Nuar -X exclude audit-2.1.3.orig/src/autrace.c audit-2.1.3/src/autrace.c
1089 ---- audit-2.1.3.orig/src/autrace.c 2011-08-15 17:31:00.000000000 +0000
1090 -+++ audit-2.1.3/src/autrace.c 2012-12-18 20:21:43.000000000 +0000
1091 -@@ -21,6 +21,7 @@
1092 - */
1093 -
1094 - #include "config.h"
1095 -+#include "fixup.h"
1096 - #include <stdio.h>
1097 - #include <string.h>
1098 - #include <sys/wait.h>
1099 -diff -Nuar -X exclude audit-2.1.3.orig/src/delete_all.c audit-2.1.3/src/delete_all.c
1100 ---- audit-2.1.3.orig/src/delete_all.c 2011-08-15 17:31:00.000000000 +0000
1101 -+++ audit-2.1.3/src/delete_all.c 2012-12-18 20:21:48.000000000 +0000
1102 -@@ -20,6 +20,7 @@
1103 - * Steve Grubb <sgrubb@××××××.com>
1104 - */
1105 - #include "config.h"
1106 -+#include "fixup.h"
1107 - #include <stdio.h>
1108 - #include <string.h>
1109 - #include <errno.h>
1110 -diff -Nuar -X exclude audit-2.1.3.orig/lib/fixup.h audit-2.1.3/lib/fixup.h
1111 ---- audit-2.1.3.orig/lib/fixup.h 1970-01-01 00:00:00.000000000 +0000
1112 -+++ audit-2.1.3/lib/fixup.h 2012-12-18 20:21:02.000000000 +0000
1113 -@@ -0,0 +1,17 @@
1114 -+#ifndef _AUDIT_IA64_FIXUP_H_
1115 -+#define _AUDIT_IA64_FIXUP_H_
1116 -+
1117 -+#ifdef __ia64__ /* what a pos */
1118 -+# include <linux/types.h>
1119 -+# define _ASM_IA64_FPU_H
1120 -+#endif
1121 -+#include <signal.h>
1122 -+/*
1123 -+#ifdef HAVE_ASM_PTRACE_H
1124 -+# include <asm/ptrace.h>
1125 -+#endif
1126 -+#ifdef HAVE_LINUX_PTRACE_H
1127 -+# include <linux/ptrace.h>
1128 -+#endif
1129 -+*/
1130 -+#endif
1131 ---- audit-2.1.3/src/ausearch.c 2012-12-22 03:09:54.000000000 +0000
1132 -+++ audit-2.1.3/src/ausearch.c 2012-12-22 03:10:02.000000000 +0000
1133 -@@ -22,6 +22,7 @@
1134 - */
1135 -
1136 - #include "config.h"
1137 -+#include "fixup.h"
1138 - #include <stdio.h>
1139 - #include <stdio_ext.h>
1140 - #include <string.h>
1141 -diff -Nuar audit-2.1.3.orig/audisp/audispd.c audit-2.1.3/audisp/audispd.c
1142 ---- audit-2.1.3.orig/audisp/audispd.c 2011-08-15 17:30:59.000000000 +0000
1143 -+++ audit-2.1.3/audisp/audispd.c 2012-12-22 03:25:15.000000000 +0000
1144 -@@ -21,6 +21,7 @@
1145 - */
1146 -
1147 - #include "config.h"
1148 -+#include "fixup.h"
1149 - #include <stdio.h>
1150 - #include <unistd.h>
1151 - #include <stdlib.h>
1152 -diff -Nuar audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c
1153 ---- audit-2.1.3.orig/audisp/plugins/prelude/audisp-prelude.c 2011-08-15 17:30:59.000000000 +0000
1154 -+++ audit-2.1.3/audisp/plugins/prelude/audisp-prelude.c 2012-12-22 03:25:20.000000000 +0000
1155 -@@ -21,6 +21,8 @@
1156 - *
1157 - */
1158 -
1159 -+#include "config.h"
1160 -+#include "fixup.h"
1161 - #include <stdio.h>
1162 - #include <stdlib.h>
1163 - #include <signal.h>
1164 -diff -Nuar audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c audit-2.1.3/audisp/plugins/remote/audisp-remote.c
1165 ---- audit-2.1.3.orig/audisp/plugins/remote/audisp-remote.c 2011-08-15 17:30:59.000000000 +0000
1166 -+++ audit-2.1.3/audisp/plugins/remote/audisp-remote.c 2012-12-22 03:25:22.000000000 +0000
1167 -@@ -22,6 +22,7 @@
1168 - */
1169 -
1170 - #include "config.h"
1171 -+#include "fixup.h"
1172 - #include <stdio.h>
1173 - #include <signal.h>
1174 - #include <syslog.h>
1175 -diff -Nuar audit-2.1.3.orig/contrib/plugin/audisp-example.c audit-2.1.3/contrib/plugin/audisp-example.c
1176 ---- audit-2.1.3.orig/contrib/plugin/audisp-example.c 2011-08-15 17:31:02.000000000 +0000
1177 -+++ audit-2.1.3/contrib/plugin/audisp-example.c 2012-12-22 03:25:27.000000000 +0000
1178 -@@ -37,6 +37,8 @@
1179 - */
1180 -
1181 - #define _GNU_SOURCE
1182 -+#include "config.h"
1183 -+#include "fixup.h"
1184 - #include <stdio.h>
1185 - #include <signal.h>
1186 - #include <string.h>
1187 -diff -Nuar audit-2.1.3.orig/contrib/skeleton.c audit-2.1.3/contrib/skeleton.c
1188 ---- audit-2.1.3.orig/contrib/skeleton.c 2011-08-15 17:31:02.000000000 +0000
1189 -+++ audit-2.1.3/contrib/skeleton.c 2012-12-22 03:25:40.000000000 +0000
1190 -@@ -7,6 +7,8 @@
1191 - * gcc skeleton.c -o skeleton -laudit
1192 - */
1193 -
1194 -+#include "config.h"
1195 -+#include "fixup.h"
1196 - #include <stdio.h>
1197 - #include <sys/types.h>
1198 - #include <sys/uio.h>
1199
1200 diff --git a/sys-process/audit/files/audit.rules b/sys-process/audit/files/audit.rules
1201 deleted file mode 100644
1202 index ef0e6ee26f3..00000000000
1203 --- a/sys-process/audit/files/audit.rules
1204 +++ /dev/null
1205 @@ -1,24 +0,0 @@
1206 -# Copyright 1999-2005 Gentoo Foundation
1207 -# Distributed under the terms of the GNU General Public License v2
1208 -#
1209 -# This file contains the auditctl rules that are loaded
1210 -# whenever the audit daemon is started via the initscripts.
1211 -# The rules are simply the parameters that would be passed
1212 -# to auditctl.
1213 -
1214 -# First rule - delete all
1215 -# This is to clear out old rules, so we don't append to them.
1216 --D
1217 -
1218 -# Feel free to add below this line. See auditctl man page
1219 -
1220 -# The following rule would cause all of the syscalls listed to be ignored in logging.
1221 -# -a entry,never -S read -S write -S open -S fstat -S fstat64 -S mmap -S brk -S munmap -S _llseek -S nanosleep -S fcntl64 -S close -S dup2 -S rt_sigaction -S stat64 -S stat
1222 -
1223 -# The following rule would cause the capture of all systems not caught above.
1224 -# -a entry,always -S all
1225 -
1226 -# Increase the buffers to survive stress events
1227 --b 256
1228 -
1229 -# vim:ft=conf:
1230
1231 diff --git a/sys-process/audit/files/audit.rules.stop.post b/sys-process/audit/files/audit.rules.stop.post
1232 deleted file mode 100644
1233 index 29ae197f18b..00000000000
1234 --- a/sys-process/audit/files/audit.rules.stop.post
1235 +++ /dev/null
1236 @@ -1,12 +0,0 @@
1237 -# Copyright 1999-2005 Gentoo Foundation
1238 -# Distributed under the terms of the GNU General Public License v2
1239 -#
1240 -# This file contains the auditctl rules that are loaded immediately after the
1241 -# audit deamon is stopped via the initscripts.
1242 -# The rules are simply the parameters that would be passed
1243 -# to auditctl.
1244 -
1245 -# Not used for the default Gentoo configuration as of v1.2.3
1246 -# Paranoid security types might wish to reconfigure kauditd here.
1247 -
1248 -# vim:ft=conf:
1249
1250 diff --git a/sys-process/audit/files/audit.rules.stop.pre b/sys-process/audit/files/audit.rules.stop.pre
1251 deleted file mode 100644
1252 index 1f34173369e..00000000000
1253 --- a/sys-process/audit/files/audit.rules.stop.pre
1254 +++ /dev/null
1255 @@ -1,15 +0,0 @@
1256 -# Copyright 1999-2011 Gentoo Foundation
1257 -# Distributed under the terms of the GNU General Public License v2
1258 -#
1259 -# This file contains the auditctl rules that are loaded immediately before the
1260 -# audit deamon is stopped via the initscripts.
1261 -# The rules are simply the parameters that would be passed
1262 -# to auditctl.
1263 -
1264 -# auditd is stopping, don't capture events anymore
1265 --D
1266 -
1267 -# Disable kernel generating audit events
1268 --e 0
1269 -
1270 -# vim:ft=conf: