Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gnome-keyring: ChangeLog gnome-keyring-3.8.0.ebuild gnome-keyring-3.6.3.ebuild
Date: Sat, 30 Mar 2013 23:01:18
Message-Id: 20130330230113.9C8422171D@flycatcher.gentoo.org
1 eva 13/03/30 23:01:13
2
3 Modified: ChangeLog gnome-keyring-3.8.0.ebuild
4 Added: gnome-keyring-3.6.3.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key C6085806)
9
10 Revision Changes Path
11 1.230 gnome-base/gnome-keyring/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/ChangeLog?rev=1.230&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/ChangeLog?rev=1.230&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/ChangeLog?r1=1.229&r2=1.230
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/ChangeLog,v
20 retrieving revision 1.229
21 retrieving revision 1.230
22 diff -u -r1.229 -r1.230
23 --- ChangeLog 28 Mar 2013 17:04:38 -0000 1.229
24 +++ ChangeLog 30 Mar 2013 23:01:13 -0000 1.230
25 @@ -1,6 +1,12 @@
26 # ChangeLog for gnome-base/gnome-keyring
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/ChangeLog,v 1.229 2013/03/28 17:04:38 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/ChangeLog,v 1.230 2013/03/30 23:01:13 eva Exp $
30 +
31 +*gnome-keyring-3.6.3 (30 Mar 2013)
32 +
33 + 30 Mar 2013; Gilles Dartiguelongue <eva@g.o>
34 + +gnome-keyring-3.6.3.ebuild, gnome-keyring-3.8.0.ebuild:
35 + Version bump.
36
37 *gnome-keyring-3.8.0 (28 Mar 2013)
38
39
40
41
42 1.2 gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild?rev=1.2&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild?rev=1.2&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild?r1=1.1&r2=1.2
47
48 Index: gnome-keyring-3.8.0.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild,v
51 retrieving revision 1.1
52 retrieving revision 1.2
53 diff -u -r1.1 -r1.2
54 --- gnome-keyring-3.8.0.ebuild 28 Mar 2013 17:04:38 -0000 1.1
55 +++ gnome-keyring-3.8.0.ebuild 30 Mar 2013 23:01:13 -0000 1.2
56 @@ -1,12 +1,11 @@
57 # Copyright 1999-2013 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild,v 1.1 2013/03/28 17:04:38 pacho Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.8.0.ebuild,v 1.2 2013/03/30 23:01:13 eva Exp $
61
62 EAPI="5"
63 GCONF_DEBUG="yes" # Not gnome macro but similar
64 GNOME2_LA_PUNT="yes"
65
66 -# Need to learn how fcaps.eclass works
67 inherit gnome2 pam versionator virtualx
68
69 DESCRIPTION="Password and keyring managing daemon"
70 @@ -59,16 +58,15 @@
71 }
72
73 src_configure() {
74 - G2CONF="${G2CONF}
75 - $(use_with caps libcap-ng)
76 - $(use_enable pam)
77 - $(use_with pam pam-dir $(getpam_mod_dir))
78 - $(use_enable selinux)
79 - --with-root-certs=${EPREFIX}/etc/ssl/certs/
80 - --with-ca-certificates=${EPREFIX}/etc/ssl/certs/ca-certificates.crt
81 - --enable-ssh-agent
82 - --enable-gpg-agent"
83 - gnome2_src_configure
84 + gnome2_src_configure \
85 + $(use_with caps libcap-ng) \
86 + $(use_enable pam) \
87 + $(use_with pam pam-dir $(getpam_mod_dir)) \
88 + $(use_enable selinux) \
89 + --with-root-certs="${EPREFIX}"/etc/ssl/certs/ \
90 + --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
91 + --enable-ssh-agent \
92 + --enable-gpg-agent
93 }
94
95 src_test() {
96
97
98
99 1.1 gnome-base/gnome-keyring/gnome-keyring-3.6.3.ebuild
100
101 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.6.3.ebuild?rev=1.1&view=markup
102 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.6.3.ebuild?rev=1.1&content-type=text/plain
103
104 Index: gnome-keyring-3.6.3.ebuild
105 ===================================================================
106 # Copyright 1999-2013 Gentoo Foundation
107 # Distributed under the terms of the GNU General Public License v2
108 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-keyring/gnome-keyring-3.6.3.ebuild,v 1.1 2013/03/30 23:01:13 eva Exp $
109
110 EAPI="5"
111 GCONF_DEBUG="yes" # Not gnome macro but similar
112 GNOME2_LA_PUNT="yes"
113
114 inherit gnome2 pam versionator virtualx
115
116 DESCRIPTION="Password and keyring managing daemon"
117 HOMEPAGE="http://live.gnome.org/GnomeKeyring"
118
119 LICENSE="GPL-2+ LGPL-2+"
120 SLOT="0"
121 IUSE="+caps debug pam selinux"
122 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~sparc-solaris ~x86-solaris"
123
124 RDEPEND="
125 >=app-crypt/gcr-3.5.3:=
126 >=dev-libs/glib-2.32.0:2
127 >=x11-libs/gtk+-3.0:3
128 app-misc/ca-certificates
129 >=dev-libs/libgcrypt-1.2.2:=
130 >=sys-apps/dbus-1.0
131 caps? ( sys-libs/libcap-ng )
132 pam? ( virtual/pam )
133 "
134 DEPEND="${RDEPEND}
135 >=dev-util/intltool-0.35
136 sys-devel/gettext
137 virtual/pkgconfig
138 "
139 PDEPEND=">=gnome-base/libgnome-keyring-3.1.92"
140 # eautoreconf needs:
141 # >=dev-util/gtk-doc-am-1.9
142 # gtk-doc-am is not needed otherwise (no gtk-docs are installed)
143
144 src_prepare() {
145 # Disable stupid CFLAGS
146 sed -e 's/CFLAGS="$CFLAGS -g"//' \
147 -e 's/CFLAGS="$CFLAGS -O0"//' \
148 -i configure.ac configure || die
149
150 # FIXME: some tests write to /tmp (instead of TMPDIR)
151 # Disable failing tests
152 sed -e '/g_test_add.*test_remove_file_abort/d' \
153 -e '/g_test_add.*test_write_file/d' \
154 -e '/g_test_add.*write_large_file/,+2 c\ {}; \ ' \
155 -e '/g_test_add.*test_write_file_abort_.*/d' \
156 -e '/g_test_add.*test_unique_file_conflict.*/d' \
157 -i pkcs11/gkm/tests/test-transaction.c || die
158 sed -e '/g_test_add.*test_create_assertion_complete_on_token/d' \
159 -i pkcs11/xdg-store/tests/test-xdg-trust.c || die
160 sed -e '/g_test_add.*gnome2-store.import.pkcs12/,+1 d' \
161 -i pkcs11/gnome2-store/tests/test-import.c || die
162
163 gnome2_src_prepare
164 }
165
166 src_configure() {
167 gnome2_src_configure \
168 $(use_with caps libcap-ng) \
169 $(use_enable pam) \
170 $(use_with pam pam-dir $(getpam_mod_dir)) \
171 $(use_enable selinux) \
172 --with-root-certs="${EPREFIX}"/etc/ssl/certs/ \
173 --with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
174 --enable-ssh-agent \
175 --enable-gpg-agent
176 }
177
178 src_test() {
179 unset DBUS_SESSION_BUS_ADDRESS
180 Xemake check
181 }
182
183 pkg_postinst() {
184 use caps && fcaps 0:0 755 cap_ipc_lock "${EROOT}"/usr/bin/gnome-keyring-daemon
185 gnome2_pkg_postinst
186 }
187
188 # borrowed from GSoC2010_Gentoo_Capabilities by constanze and Flameeyes
189 # @FUNCTION: fcaps
190 # @USAGE: fcaps {uid:gid} {file-mode} {cap1[,cap2,...]} {file}
191 # @RETURN: 0 if all okay; non-zero if failure and fallback
192 # @DESCRIPTION:
193 # fcaps sets the specified capabilities in the effective and permitted set of
194 # the given file. In case of failure fcaps sets the given file-mode.
195 # Requires versionator.eclass
196 fcaps() {
197 local uid_gid=$1
198 local perms=$2
199 local capset=$3
200 local path=$4
201 local res
202
203 chmod $perms $path && \
204 chown $uid_gid $path
205 res=$?
206
207 use caps || return $res
208
209 #set the capability
210 setcap "$capset=ep" "$path" &> /dev/null
211 #check if the capability got set correctly
212 setcap -v "$capset=ep" "$path" &> /dev/null
213 res=$?
214
215 if [ $res -ne 0 ]; then
216 ewarn "Failed to set capabilities. Probable reason is missing kernel support."
217 ewarn "Your kernel must have <FS>_FS_SECURITY enabled (e.g. EXT4_FS_SECURITY)"
218 ewarn "where <FS> is the filesystem to store ${path}"
219 if ! version_is_at_least 2.6.33 "$(uname -r)"; then
220 ewarn "For kernel 2.6.32 or older, you will also need to enable"
221 ewarn "SECURITY_FILE_CAPABILITIES."
222 fi
223 ewarn
224 ewarn "Falling back to suid now..."
225 chmod u+s ${path}
226 fi
227 return $res
228 }