Lines 1-8
Link Here
|
1 |
# Copyright 1999-2007 Gentoo Foundation |
1 |
# Copyright 1999-2008 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/app-forensics/aide/aide-0.13.1-r1.ebuild,v 1.1 2007/12/23 06:37:49 matsuu Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/aide-0.13.1-r1.ebuild,v 1.1 2007/12/23 06:37:49 matsuu Exp $ |
4 |
WANT_AUTOCONF='latest' |
4 |
|
5 |
WANT_AUTOMAKE='latest' |
|
|
6 |
inherit eutils autotools |
5 |
inherit eutils autotools |
7 |
|
6 |
|
8 |
DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire" |
7 |
DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire" |
Lines 26-33
Link Here
|
26 |
zlib? ( sys-libs/zlib )" |
25 |
zlib? ( sys-libs/zlib )" |
27 |
# audit? ( sys-process/audit ) |
26 |
# audit? ( sys-process/audit ) |
28 |
|
27 |
|
29 |
RDEPEND="!static? ( ${DEPEND} ) |
28 |
RDEPEND="!static? ( ${DEPEND} )" |
30 |
virtual/mailx" |
|
|
31 |
|
29 |
|
32 |
DEPEND="${DEPEND} |
30 |
DEPEND="${DEPEND} |
33 |
nls? ( sys-devel/gettext ) |
31 |
nls? ( sys-devel/gettext ) |
Lines 45-51
Link Here
|
45 |
src_unpack() { |
43 |
src_unpack() { |
46 |
unpack ${A} |
44 |
unpack ${A} |
47 |
cd "${S}" |
45 |
cd "${S}" |
48 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
46 |
|
|
|
47 |
epatch "${FILESDIR}/${P}-gentoo.patch" |
48 |
|
49 |
# fix configure switch |
50 |
epatch "${FILESDIR}/${P}-configure.patch" |
49 |
|
51 |
|
50 |
if ! use mhash ; then |
52 |
if ! use mhash ; then |
51 |
# dev-libs/libgcrypt doesn't support whirlpool algorithm |
53 |
# dev-libs/libgcrypt doesn't support whirlpool algorithm |
Lines 63-115
Link Here
|
63 |
if ! use acl ; then |
65 |
if ! use acl ; then |
64 |
sed -i -e 's/\+acl//' doc/aide.conf.in || die |
66 |
sed -i -e 's/\+acl//' doc/aide.conf.in || die |
65 |
fi |
67 |
fi |
|
|
68 |
|
66 |
eautoreconf |
69 |
eautoreconf |
67 |
} |
70 |
} |
68 |
|
71 |
|
69 |
src_compile() { |
72 |
src_compile() { |
70 |
local myconf="--sysconfdir=/etc/aide $(use_enable static)" |
73 |
local myconf=" |
|
|
74 |
$(use_with acl posix-acl) |
75 |
$(use_with !mhash gcrypt) |
76 |
$(use_with mhash mhash) |
77 |
$(use_with nls locale) |
78 |
$(use_with postgres psql) |
79 |
$(use_with selinux) |
80 |
$(use_enable static) |
81 |
$(use_with xattr) |
82 |
$(use_with zlib) |
83 |
--sysconfdir=/etc/aide |
84 |
--with-extra-lib=/usr/lib" |
71 |
|
85 |
|
72 |
# --without-* borked |
86 |
# $(use_with audit) |
73 |
use zlib && myconf="${myconf} --with-zlib" |
|
|
74 |
use nls && myconf="${myconf} --with-locale" |
75 |
use postgres && myconf="${myconf} --with-psql" |
76 |
use selinux && myconf="${myconf} --with-selinux" |
77 |
use acl && myconf="${myconf} --with-posix-acl" |
78 |
use xattr && myconf="${myconf} --with-xattr" |
79 |
# use audit && myconf="${myconf} --with-audit" |
87 |
# use audit && myconf="${myconf} --with-audit" |
80 |
|
88 |
|
81 |
# curl doesn't work with static |
89 |
# curl doesn't work with static |
82 |
use curl && ! use static && myconf="${myconf} --with-curl" |
90 |
use curl && ! use static && myconf="${myconf} --with-curl" |
83 |
|
91 |
|
84 |
# If you use dev-libs/libgcrypt, --without-mhash is needed. |
92 |
econf ${myconf} || die "econf failed" |
85 |
use mhash \ |
93 |
# parallel make borked ? |
86 |
&& myconf="${myconf} --with-mhash" \ |
94 |
emake || die "emake failed" |
87 |
|| myconf="${myconf} --with-gcrypt --without-mhash" |
|
|
88 |
|
89 |
econf ${myconf} || die |
90 |
# parallel make borked |
91 |
emake -j1 || die |
92 |
} |
95 |
} |
93 |
|
96 |
|
94 |
src_install() { |
97 |
src_install() { |
95 |
emake DESTDIR="${D}" install || die |
98 |
emake DESTDIR="${D}" install || die "emake install failed" |
96 |
|
99 |
|
97 |
keepdir /var/lib/aide |
100 |
keepdir /var/lib/aide |
98 |
keepdir /var/log/aide |
101 |
keepdir /var/log/aide |
99 |
|
102 |
|
100 |
insinto /etc/aide |
103 |
insinto /etc/aide |
101 |
doins "${FILESDIR}"/aide.conf |
104 |
doins "${FILESDIR}"/aide.conf |
102 |
# doins doc/aide.conf |
105 |
|
|
|
106 |
insinto /etc/cron.daily |
107 |
doins "${FILESDIR}"/aide.cron |
103 |
|
108 |
|
104 |
dosbin "${FILESDIR}"/aideinit |
109 |
dosbin "${FILESDIR}"/aideinit |
105 |
|
110 |
|
106 |
dodoc ChangeLog AUTHORS NEWS README "${FILESDIR}"/aide.cron |
111 |
dodoc ChangeLog AUTHORS NEWS README |
107 |
dohtml doc/manual.html |
112 |
dohtml doc/manual.html |
108 |
} |
113 |
} |
109 |
|
114 |
|
110 |
pkg_postinst() { |
115 |
pkg_postinst() { |
111 |
chown root:0 /var/lib/aide |
116 |
fowners root:0 /var/lib/aide |
112 |
chmod 0755 /var/lib/aide |
117 |
fperms 0755 /var/lib/aide |
113 |
|
118 |
|
114 |
elog |
119 |
elog |
115 |
elog "A sample configuration file has been installed as" |
120 |
elog "A sample configuration file has been installed as" |