| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/lessfs-1.5.8.ebuild,v 1.3 2012/04/04 06:57:15 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
MY_PV="${PV/_/-}"
|
| 8 |
MY_P="${PN}-${MY_PV}"
|
| 9 |
DESCRIPTION="A high performance inline data deduplicating filesystem"
|
| 10 |
HOMEPAGE="http://www.lessfs.com"
|
| 11 |
SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}/${MY_P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-3"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 x86"
|
| 16 |
IUSE="crypt debug filelog memtrace lzo"
|
| 17 |
|
| 18 |
DEPEND=">=dev-db/tokyocabinet-1.4.42
|
| 19 |
app-crypt/mhash
|
| 20 |
>=sys-fs/fuse-2.8.0
|
| 21 |
crypt? ( dev-libs/openssl )
|
| 22 |
lzo? ( dev-libs/lzo )"
|
| 23 |
|
| 24 |
RDEPEND=""
|
| 25 |
|
| 26 |
S="${WORKDIR}/${MY_P}"
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
econf \
|
| 30 |
$(use_enable debug) $(use_enable debug lckdebug) \
|
| 31 |
$(use_enable filelog) $(use_with crypt crypto) \
|
| 32 |
$(use_with lzo) $(use_enable memtrace)
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install () {
|
| 36 |
emake DESTDIR="${D}" install
|
| 37 |
dodoc ChangeLog FAQ README.*
|
| 38 |
insinto /etc
|
| 39 |
newins examples/lessfs.cfg-master ${PN}.cfg
|
| 40 |
dodoc examples/lessfs.* etc/lessfs.*
|
| 41 |
|
| 42 |
}
|
| 43 |
|
| 44 |
pkg_postinst() {
|
| 45 |
elog
|
| 46 |
elog "Default configuration file: /etc/${PN}.cfg"
|
| 47 |
elog "If your host is a client consult the following configuration"
|
| 48 |
elog "file: /usr/share/doc/${PF}/${PN}.cfg-slave.bz2"
|
| 49 |
elog
|
| 50 |
}
|