You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
13 years ago
|
# Copyright 1999-2008 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
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_unpack() {
|
||
|
unpack ${A}
|
||
|
cd "${S}"
|
||
|
|
||
|
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
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
tc-export AR
|
||
|
econf
|
||
|
emake || die
|
||
|
emake utils || die
|
||
|
cd "${S}"/doc
|
||
|
emake || die
|
||
|
cd "${S}"/hashtbl
|
||
|
emake hashtest || die
|
||
|
mv README README.hashtbl
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dosbin integrit || die
|
||
|
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
|
||
|
dodoc 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)."
|
||
|
}
|