Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/ecryptfs-utils: ecryptfs-utils-104.ebuild ChangeLog
Date: Sat, 25 Jan 2014 08:34:56
Message-Id: 20140125083453.1B1302004C@flycatcher.gentoo.org
1 radhermit 14/01/25 08:34:53
2
3 Modified: ChangeLog
4 Added: ecryptfs-utils-104.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.55 sys-fs/ecryptfs-utils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog?rev=1.55&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog?rev=1.55&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog?r1=1.54&r2=1.55
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog,v
20 retrieving revision 1.54
21 retrieving revision 1.55
22 diff -u -r1.54 -r1.55
23 --- ChangeLog 5 Jun 2013 00:36:41 -0000 1.54
24 +++ ChangeLog 25 Jan 2014 08:34:52 -0000 1.55
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-fs/ecryptfs-utils
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog,v 1.54 2013/06/05 00:36:41 vapier Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ChangeLog,v 1.55 2014/01/25 08:34:52 radhermit Exp $
31 +
32 +*ecryptfs-utils-104 (25 Jan 2014)
33 +
34 + 25 Jan 2014; Tim Harder <radhermit@g.o> +ecryptfs-utils-104.ebuild:
35 + Version bump.
36
37 05 Jun 2013; Mike Frysinger <vapier@g.o> metadata.xml:
38 Add upstream CPE tag (security info) from ChromiumOS.
39
40
41
42 1.1 sys-fs/ecryptfs-utils/ecryptfs-utils-104.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-104.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-104.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ecryptfs-utils-104.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/ecryptfs-utils/ecryptfs-utils-104.ebuild,v 1.1 2014/01/25 08:34:52 radhermit Exp $
52
53 EAPI="4"
54 PYTHON_DEPEND="python? 2:2.5"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="2.4 3.* *-jython 2.7-pypy-*"
57
58 inherit flag-o-matic pam python linux-info autotools
59
60 DESCRIPTION="eCryptfs userspace utilities"
61 HOMEPAGE="https://launchpad.net/ecryptfs"
62 SRC_URI="http://launchpad.net/ecryptfs/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~x86"
67 IUSE="doc gpg gtk openssl pam pkcs11 python suid tpm"
68
69 RDEPEND=">=sys-apps/keyutils-1.0
70 >=dev-libs/libgcrypt-1.2.0
71 dev-libs/nss
72 gpg? ( app-crypt/gpgme )
73 gtk? ( x11-libs/gtk+:2 )
74 openssl? ( >=dev-libs/openssl-0.9.7 )
75 pam? ( sys-libs/pam )
76 pkcs11? (
77 >=dev-libs/openssl-0.9.7
78 >=dev-libs/pkcs11-helper-1.04
79 )
80 tpm? ( app-crypt/trousers )"
81 DEPEND="${RDEPEND}
82 virtual/pkgconfig
83 sys-devel/gettext
84 >=dev-util/intltool-0.41.0
85 python? ( dev-lang/swig )"
86
87 pkg_setup() {
88 use python && python_pkg_setup
89
90 CONFIG_CHECK="~ECRYPT_FS"
91 linux-info_pkg_setup
92 }
93
94 src_prepare() {
95 echo "#!/bin/sh" > py-compile
96
97 # Python bindings are built/installed manually.
98 sed -e "/SUBDIRS =/s/ libecryptfs-swig//" -i src/Makefile.am || die "sed failed"
99
100 eautoreconf
101 }
102
103 src_configure() {
104 append-cppflags -D_FILE_OFFSET_BITS=64
105
106 econf \
107 --docdir="/usr/share/doc/${PF}" \
108 --enable-nss \
109 --with-pamdir=$(getpam_mod_dir) \
110 $(use_enable doc docs) \
111 $(use_enable gpg) \
112 $(use_enable gtk gui) \
113 $(use_enable openssl) \
114 $(use_enable pam) \
115 $(use_enable pkcs11 pkcs11-helper) \
116 $(use_enable python pywrap) \
117 $(use_enable tpm tspi)
118 }
119
120 src_compile() {
121 default
122
123 if use python; then
124 python_copy_sources src/libecryptfs-swig
125 building() {
126 emake \
127 PYTHON="$(PYTHON)" \
128 PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
129 PYTHON_LDFLAGS="-L$(python_get_libdir) $(python_get_library -l)" \
130 PYTHON_SITE_PKG="$(python_get_sitedir)" \
131 PYTHON_VERSION="$(python_get_version)" \
132 SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
133 pyexecdir="$(python_get_sitedir)" \
134 pythondir="$(python_get_sitedir)"
135 }
136 python_execute_function -s --source-dir src/libecryptfs-swig building
137 fi
138 }
139
140 src_install(){
141 emake DESTDIR="${D}" install
142
143 if use python; then
144 installation() {
145 emake \
146 DESTDIR="${D}" \
147 PYTHON="$(PYTHON)" \
148 PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
149 PYTHON_LDFLAGS="-L$(python_get_libdir) $(python_get_library -l)" \
150 PYTHON_SITE_PKG="$(python_get_sitedir)" \
151 PYTHON_VERSION="$(python_get_version)" \
152 SWIG_PYTHON_CPPFLAGS="-I$(python_get_includedir)" \
153 pyexecdir="$(python_get_sitedir)" \
154 pythondir="$(python_get_sitedir)" \
155 install || return 1
156 echo "ecryptfs-utils" > "${ED}$(python_get_sitedir)/ecryptfs-utils.pth"
157 }
158 python_execute_function -s --source-dir src/libecryptfs-swig installation
159
160 python_clean_installation_image
161 fi
162
163 use suid && fperms u+s /sbin/mount.ecryptfs_private
164
165 find "${ED}" -name '*.la' -exec rm -f '{}' +
166 }
167
168 pkg_postinst() {
169 use python && python_mod_optimize ecryptfs-utils
170
171 if use suid; then
172 ewarn
173 ewarn "You have chosen to install ${PN} with the binary setuid root. This"
174 ewarn "means that if there are any undetected vulnerabilities in the binary,"
175 ewarn "then local users may be able to gain root access on your machine."
176 ewarn
177 fi
178 }
179
180 pkg_postrm() {
181 use python && python_mod_cleanup ecryptfs-utils
182 }