1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-79.ebuild,v 1.2 2009/09/17 13:58:51 arfrever Exp $
7 inherit flag-o-matic pam
9 DESCRIPTION
="eCryptfs userspace utilities"
10 HOMEPAGE
="http://launchpad.net/ecryptfs"
11 SRC_URI
="http://launchpad.net/ecryptfs/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"
15 KEYWORDS
="~amd64 ~x86"
16 IUSE
="doc gpg gtk openssl pam pkcs11 python suid tpm"
18 RDEPEND
=">=sys-apps/keyutils-1.0
19 >=dev-libs/libgcrypt-1.2.0
21 gpg? ( app-crypt/gpgme )
22 gtk? ( x11-libs/gtk+ )
23 openssl? ( >=dev-libs/openssl-0.9.7 )
26 >=dev-libs/openssl-0.9.7
27 >=dev-libs/pkcs11-helper-1.04
29 python? ( >=dev-lang/python-2.5 )
30 tpm? ( app-crypt/trousers )"
32 >=dev-util/pkgconfig-0.9.0
33 python? ( dev-lang/swig )"
36 append-flags
-D_FILE_OFFSET_BITS=64
41 --docdir="/usr/share/doc/${PF}" \
43 --with-pamdir=$
(getpam_mod_dir
) \
44 $
(use_enable doc docs
) \
46 $
(use_enable gtk gui
) \
47 $
(use_enable openssl
) \
49 $
(use_enable pkcs11 pkcs11-helper
) \
50 $
(use_enable python pywrap
) \
51 $
(use_enable tpm tspi
)
55 emake DESTDIR
="${D}" install || die
"emake install failed"
56 use suid
&& fperms u
+s
/sbin
/mount.ecryptfs
62 ewarn
"You have chosen to install ${PN} with the binary setuid root. This"
63 ewarn
"means that if there are any undetected vulnerabilities in the binary,"
64 ewarn
"then local users may be able to gain root access on your machine."