1 |
|
# Copyright 1999-2020 Gentoo Authors
|
|
1 |
# Copyright 1999-2022 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI="6"
|
|
4 |
EAPI=7
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python2_7 )
|
7 |
|
|
8 |
|
inherit flag-o-matic pam python-single-r1 linux-info autotools
|
|
6 |
inherit autotools flag-o-matic linux-info pam
|
9 |
7 |
|
|
8 |
MY_PN=${PN/-utils//}
|
10 |
9 |
DESCRIPTION="eCryptfs userspace utilities"
|
11 |
10 |
HOMEPAGE="https://launchpad.net/ecryptfs"
|
12 |
11 |
SRC_URI="https://dev.gentoo.org/~bkohler/dist/${P}.tar.gz"
|
|
12 |
S="${WORKDIR}/~${MY_PN}/${MY_PN}/trunk/"
|
13 |
13 |
|
14 |
14 |
LICENSE="GPL-2"
|
15 |
15 |
SLOT="0"
|
16 |
|
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
17 |
|
IUSE="doc gpg gtk nls openssl pam pkcs11 python suid tpm"
|
|
16 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
|
|
17 |
IUSE="doc gpg gtk nls openssl pam pkcs11 suid tpm"
|
18 |
18 |
|
19 |
|
RDEPEND=">=sys-apps/keyutils-1.5.11-r1:=
|
20 |
|
>=dev-libs/libgcrypt-1.2.0:0
|
|
19 |
BDEPEND="
|
|
20 |
>=dev-util/intltool-0.41.0
|
|
21 |
sys-devel/gettext
|
|
22 |
virtual/pkgconfig
|
|
23 |
"
|
|
24 |
RDEPEND="
|
|
25 |
>=dev-libs/libgcrypt-1.2.0:0=
|
21 |
26 |
dev-libs/nss
|
22 |
|
gpg? ( app-crypt/gpgme )
|
|
27 |
>=sys-apps/keyutils-1.5.11-r1:=
|
|
28 |
sys-process/lsof
|
|
29 |
gpg? ( app-crypt/gpgme:= )
|
23 |
30 |
gtk? ( x11-libs/gtk+:2 )
|
24 |
31 |
openssl? ( >=dev-libs/openssl-0.9.7:= )
|
25 |
32 |
pam? ( sys-libs/pam )
|
... | ... | |
27 |
34 |
>=dev-libs/openssl-0.9.7:=
|
28 |
35 |
>=dev-libs/pkcs11-helper-1.04
|
29 |
36 |
)
|
30 |
|
python? ( ${PYTHON_DEPS} )
|
31 |
37 |
tpm? ( app-crypt/trousers )"
|
32 |
|
DEPEND="${RDEPEND}
|
33 |
|
virtual/pkgconfig
|
34 |
|
sys-devel/gettext
|
35 |
|
>=dev-util/intltool-0.41.0
|
36 |
|
python? ( dev-lang/swig )"
|
37 |
|
|
38 |
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
38 |
DEPEND="
|
|
39 |
${RDEPEND}
|
|
40 |
dev-libs/glib:2
|
|
41 |
"
|
|
42 |
|
|
43 |
PATCHES=(
|
|
44 |
"${FILESDIR}/${PN}-111-musl-fix.patch"
|
|
45 |
)
|
39 |
46 |
|
40 |
47 |
pkg_setup() {
|
41 |
|
use python && python-single-r1_pkg_setup
|
42 |
|
|
43 |
48 |
CONFIG_CHECK="~ECRYPT_FS"
|
44 |
49 |
linux-info_pkg_setup
|
45 |
50 |
}
|
46 |
51 |
|
47 |
|
src_unpack() {
|
48 |
|
mkdir -p "${S}" || die
|
49 |
|
tar -xf "${DISTDIR}/${P}.tar.gz" --strip-components=3 -C "${S}"
|
50 |
|
}
|
51 |
|
|
52 |
52 |
src_prepare() {
|
53 |
53 |
default
|
54 |
54 |
eautoreconf
|
... | ... | |
60 |
60 |
econf \
|
61 |
61 |
--enable-nss \
|
62 |
62 |
--with-pamdir=$(getpam_mod_dir) \
|
|
63 |
--disable-pywrap \
|
63 |
64 |
$(use_enable doc docs) \
|
64 |
65 |
$(use_enable gpg) \
|
65 |
66 |
$(use_enable gtk gui) \
|
... | ... | |
67 |
68 |
$(use_enable openssl) \
|
68 |
69 |
$(use_enable pam) \
|
69 |
70 |
$(use_enable pkcs11 pkcs11-helper) \
|
70 |
|
$(use_enable python pywrap) \
|
71 |
71 |
$(use_enable tpm tspi)
|
72 |
72 |
}
|
73 |
73 |
|
74 |
74 |
src_install() {
|
75 |
75 |
emake DESTDIR="${D}" install
|
76 |
76 |
|
77 |
|
if use python; then
|
78 |
|
echo "ecryptfs-utils" > "${D}$(python_get_sitedir)/ecryptfs-utils.pth" || die
|
79 |
|
fi
|
80 |
|
|
81 |
77 |
use suid && fperms u+s /sbin/mount.ecryptfs_private
|
82 |
78 |
|
83 |
79 |
find "${ED}" -name '*.la' -exec rm -f '{}' + || die
|