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