forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integrit-4.1-r1.ebuild
66 lines (53 loc) · 1.29 KB
/
integrit-4.1-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit autotools toolchain-funcs
DESCRIPTION="file integrity verification program"
HOMEPAGE="http://integrit.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
src_prepare() {
sed -i -e "/^CC/d" configure.in hashtbl/configure.in || die
sed -i -e "/^AC_PROGRAM_PATH/d" configure.in hashtbl/configure.in || die
eautoreconf
tc-export AR
}
src_compile() {
emake
emake utils
cd "${S}"/doc && emake
cd "${S}"/hashtbl && emake hashtest
}
src_test() {
chmod +x test/test || die
default
}
src_install() {
dosbin integrit
dolib libintegrit.a
dodoc Changes HACKING README todo.txt
cd "${S}"/utils
dosbin i-viewdb
dobin i-ls
cd "${S}"/hashtbl
dolib libhashtbl.a
insinto /usr/include
doins hashtbl.h
dobin hashtest
newdoc README README.hashtbl
cd "${S}"/doc
doman i-ls.1 i-viewdb.1 integrit.1
doinfo integrit.info
cd "${S}"/examples
docinto examples
dodoc *
}
pkg_postinst() {
elog "It is recommended that the integrit binary is copied to a secure"
elog "location and re-copied at runtime or run from a secure medium."
elog "You should also create a configuration file (see examples)."
}