/[gentoo-x86]/sys-process/audit/audit-1.7.4.ebuild
Gentoo

Diff of /sys-process/audit/audit-1.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.7.4.ebuild,v 1.3 2010/08/24 13:56:22 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-1.7.4.ebuild,v 1.4 2010/10/15 21:15:49 arfrever Exp $
4
5EAPI="3"
6PYTHON_DEPEND="2"
4 7
5inherit autotools multilib toolchain-funcs python 8inherit autotools multilib toolchain-funcs python
6 9
7DESCRIPTION="Userspace utilities for storing and processing auditing records" 10DESCRIPTION="Userspace utilities for storing and processing auditing records"
8HOMEPAGE="http://people.redhat.com/sgrubb/audit/" 11HOMEPAGE="http://people.redhat.com/sgrubb/audit/"
14IUSE="ldap" 17IUSE="ldap"
15# Testcases are pretty useless as they are built for RedHat users/groups and 18# Testcases are pretty useless as they are built for RedHat users/groups and
16# kernels. 19# kernels.
17RESTRICT="test" 20RESTRICT="test"
18 21
19RDEPEND=">=dev-lang/python-2.4
20 ldap? ( net-nds/openldap )" 22RDEPEND="ldap? ( net-nds/openldap )"
21DEPEND="${RDEPEND} 23DEPEND="${RDEPEND}
22 dev-lang/swig 24 dev-lang/swig
23 >=sys-kernel/linux-headers-2.6.23" 25 >=sys-kernel/linux-headers-2.6.23"
24# Do not use os-headers as this is linux specific 26# Do not use os-headers as this is linux specific
25 27
26src_unpack() { 28pkg_setup() {
27 unpack ${A} 29 python_set_active_version 2
28 cd "${S}" 30 python_pkg_setup
31}
29 32
33src_prepare() {
30 # Old patch applies fine 34 # Old patch applies fine
31 #EPATCH_OPTS="-p0 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-build.patch 35 #EPATCH_OPTS="-p0 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-build.patch
32 36
33 # Applied by upstream 37 # Applied by upstream
34 #EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-swig-gcc-attribute.patch 38 #EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/${PN}-1.5.4-swig-gcc-attribute.patch
55 "${S}"/audisp/plugins/Makefile.am 59 "${S}"/audisp/plugins/Makefile.am
56 fi 60 fi
57 61
58 epatch "${FILESDIR}"/${P}-glibc212.patch 62 epatch "${FILESDIR}"/${P}-glibc212.patch
59 63
64 # Don't build static version of Python module.
65 epatch "${FILESDIR}"/${P}-python.patch
66
60 # Regenerate autotooling 67 # Regenerate autotooling
61 eautoreconf 68 eautoreconf
69
70 # Disable byte-compilation of Python modules.
71 echo "#!/bin/sh" > py-compile
62} 72}
63 73
64src_compile() { 74src_configure() {
65 #append-flags -D'__attribute__(x)=' 75 #append-flags -D'__attribute__(x)='
66 econf --sbindir=/sbin --without-prelude || die 76 econf --sbindir=/sbin --without-prelude
67 emake || die "emake failed"
68} 77}
69 78
70src_install() { 79src_install() {
71 emake DESTDIR="${D}" install || die "emake install failed" 80 emake DESTDIR="${D}" install || die "emake install failed"
72 dodoc AUTHORS ChangeLog README* THANKS TODO 81 dodoc AUTHORS ChangeLog README* THANKS TODO
93 # audit logs go here 102 # audit logs go here
94 keepdir /var/log/audit/ 103 keepdir /var/log/audit/
95 104
96 # Security 105 # Security
97 lockdown_perms "${D}" 106 lockdown_perms "${D}"
107
108 # Don't install .la files in Python directories.
109 python_clean_installation_image
98} 110}
99 111
100pkg_postinst() { 112pkg_postinst() {
101 lockdown_perms "${ROOT}" 113 lockdown_perms "${ROOT}"
102 python_mod_optimize 114 python_mod_optimize audit.py
103} 115}
104 116
105pkg_postrm() { 117pkg_postrm() {
106 python_mod_cleanup 118 python_mod_cleanup audit.py
107} 119}
108 120
109lockdown_perms() { 121lockdown_perms() {
110 # upstream wants these to have restrictive perms 122 # upstream wants these to have restrictive perms
111 basedir="$1" 123 basedir="$1"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20