1 |
robbat2 07/10/02 01:48:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: audit-1.6.1.ebuild |
5 |
Log: |
6 |
Bug #190804, version bump. |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.25 sys-process/audit/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/audit/ChangeLog?rev=1.25&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/audit/ChangeLog?rev=1.25&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/audit/ChangeLog?r1=1.24&r2=1.25 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-process/audit/ChangeLog,v |
19 |
retrieving revision 1.24 |
20 |
retrieving revision 1.25 |
21 |
diff -u -r1.24 -r1.25 |
22 |
--- ChangeLog 15 Jul 2007 07:03:40 -0000 1.24 |
23 |
+++ ChangeLog 2 Oct 2007 01:48:33 -0000 1.25 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sys-process/audit |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/ChangeLog,v 1.24 2007/07/15 07:03:40 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/ChangeLog,v 1.25 2007/10/02 01:48:33 robbat2 Exp $ |
29 |
+ |
30 |
+*audit-1.6.1 (02 Oct 2007) |
31 |
+ |
32 |
+ 02 Oct 2007; Robin H. Johnson <robbat2@g.o> +audit-1.6.1.ebuild: |
33 |
+ Bug #190804, version bump. |
34 |
|
35 |
15 Jul 2007; Robin H. Johnson <robbat2@g.o> |
36 |
+files/audit-1.5.4-swig-gcc-attribute.patch, audit-1.5.4.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-process/audit/audit-1.6.1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/audit/audit-1.6.1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/audit/audit-1.6.1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: audit-1.6.1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.6.1.ebuild,v 1.1 2007/10/02 01:48:33 robbat2 Exp $ |
50 |
|
51 |
inherit autotools multilib toolchain-funcs python |
52 |
|
53 |
DESCRIPTION="Userspace utilities for storing and processing auditing records" |
54 |
HOMEPAGE="http://people.redhat.com/sgrubb/audit/" |
55 |
SRC_URI="http://people.redhat.com/sgrubb/audit/${P}.tar.gz" |
56 |
|
57 |
LICENSE="GPL-2" |
58 |
SLOT="0" |
59 |
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" |
60 |
IUSE="" |
61 |
|
62 |
RDEPEND=">=dev-lang/python-2.4" |
63 |
DEPEND="${RDEPEND} |
64 |
dev-lang/swig |
65 |
>=sys-kernel/linux-headers-2.6.22-r2" |
66 |
# Do not use os-headers as this is linux specific |
67 |
|
68 |
src_unpack() { |
69 |
unpack ${A} |
70 |
cd "${S}" |
71 |
|
72 |
# Old patch applies fine |
73 |
EPATCH_OPTS="-p0 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-build.patch |
74 |
|
75 |
# Applied by upstream |
76 |
#EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-swig-gcc-attribute.patch |
77 |
|
78 |
# Do not build GUI tools |
79 |
sed -i -e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' ${S}/configure.ac |
80 |
sed -i -e 's,system-config-audit,,g' -e '/^SUBDIRS/s,\\$,,g' ${S}/Makefile.am |
81 |
rm -rf "${S}"/system-config-audit |
82 |
|
83 |
# Regenerate autotooling |
84 |
eautoreconf |
85 |
} |
86 |
|
87 |
src_compile() { |
88 |
#append-flags -D'__attribute__(x)=' |
89 |
econf --sbindir=/sbin || die |
90 |
emake || die "emake failed" |
91 |
} |
92 |
|
93 |
src_install() { |
94 |
emake DESTDIR="${D}" install || die "emake install failed" |
95 |
dodoc AUTHORS ChangeLog README* THANKS TODO sample.rules contrib/* |
96 |
|
97 |
newinitd "${FILESDIR}"/auditd-init.d-1.2.3 auditd |
98 |
newconfd "${FILESDIR}"/auditd-conf.d-1.2.3 auditd |
99 |
|
100 |
# things like shadow use this so we need to be in / |
101 |
dodir /$(get_libdir) |
102 |
mv "${D}"/usr/$(get_libdir)/lib*.so* "${D}"/$(get_libdir)/ || die |
103 |
gen_usr_ldscript libaudit.so libauparse.so |
104 |
|
105 |
# remove RedHat garbage |
106 |
rm -r "${D}"/etc/{rc.d,sysconfig} || die |
107 |
|
108 |
# Gentoo rules |
109 |
insinto /etc/audit/ |
110 |
doins "${FILESDIR}"/audit.rules* |
111 |
|
112 |
# audit logs go here |
113 |
keepdir /var/log/audit/ |
114 |
|
115 |
# Security |
116 |
lockdown_perms "${D}" |
117 |
} |
118 |
|
119 |
pkg_postinst() { |
120 |
lockdown_perms "${ROOT}" |
121 |
python_mod_optimize |
122 |
} |
123 |
|
124 |
pkg_postrm() { |
125 |
python_mod_cleanup |
126 |
} |
127 |
|
128 |
lockdown_perms() { |
129 |
# upstream wants these to have restrictive perms |
130 |
basedir="$1" |
131 |
chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null |
132 |
chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null |
133 |
chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null |
134 |
} |
135 |
|
136 |
|
137 |
|
138 |
-- |
139 |
gentoo-commits@g.o mailing list |