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