Gentoo Archives: gentoo-commits

From: Sam Jorna <wraeth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/pidgin-gnome-keyring/files/, x11-plugins/pidgin-gnome-keyring/
Date: Thu, 28 Apr 2016 15:15:32
Message-Id: 1461856492.5f5f50e4655d7da1cedc0f9c49a8d20010f9a6f1.wraeth@gentoo
1 commit: 5f5f50e4655d7da1cedc0f9c49a8d20010f9a6f1
2 Author: Marek Szuba <Marek.Szuba <AT> cern <DOT> ch>
3 AuthorDate: Thu Apr 28 08:06:38 2016 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 15:14:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5f50e4
7
8 x11-plugins/pidgin-gnome-keyring: new ebuild, initial version 2.0
9
10 By default Pidgin/Purple store saved passwords in plain text in their
11 configuration files. This plug-in makes it possible to store passwords
12 in a keyring instead.
13
14 Gentoo-Bug: 581422
15 Package-Manager: portage-2.2.28
16 Closes: https://github.com/gentoo/gentoo/pull/1368
17
18 x11-plugins/pidgin-gnome-keyring/Manifest | 1 +
19 .../files/pidgin-gnome-keyring-2.0-plugindir.patch | 21 ++++++++++++
20 x11-plugins/pidgin-gnome-keyring/metadata.xml | 18 ++++++++++
21 .../pidgin-gnome-keyring-2.0.ebuild | 38 ++++++++++++++++++++++
22 4 files changed, 78 insertions(+)
23
24 diff --git a/x11-plugins/pidgin-gnome-keyring/Manifest b/x11-plugins/pidgin-gnome-keyring/Manifest
25 new file mode 100644
26 index 0000000..ea47716
27 --- /dev/null
28 +++ b/x11-plugins/pidgin-gnome-keyring/Manifest
29 @@ -0,0 +1 @@
30 +DIST pidgin-gnome-keyring-2.0.tar.gz 12066 SHA256 f75bc1a859226a5ad7cf3012925835a4d70b83dcac57a95d452194601b03191c SHA512 b1f83c107631a7105aa517312f13d745922b8033afc15069cba1c515caeee9e6ad89c4c7a5f96c561713d7f7a6ca3f03cff8fb11566a8ea0d8980f10e85d4610 WHIRLPOOL 84549c2240121400c46be51e4562df1db27cd900e6170aabab9d18761b93af1b5b1b60dac4ea7124cadf22325e6b79efcae569573edb36458c2d8fe673962d23
31
32 diff --git a/x11-plugins/pidgin-gnome-keyring/files/pidgin-gnome-keyring-2.0-plugindir.patch b/x11-plugins/pidgin-gnome-keyring/files/pidgin-gnome-keyring-2.0-plugindir.patch
33 new file mode 100644
34 index 0000000..6aa6ffc
35 --- /dev/null
36 +++ b/x11-plugins/pidgin-gnome-keyring/files/pidgin-gnome-keyring-2.0-plugindir.patch
37 @@ -0,0 +1,21 @@
38 +--- a/Makefile 2015-02-07 03:23:05.000000000 +0000
39 ++++ b/Makefile 2016-04-28 09:53:59.915565380 +0000
40 +@@ -2,6 +2,7 @@
41 +
42 + SECRETFLAGS = `pkg-config --libs --cflags libsecret-1`
43 + PURPLEFLAGS = `pkg-config --cflags purple`
44 ++PLUGINDIR = `pkg-config --variable=plugindir purple`
45 + VERSION = $(shell cat VERSION)
46 + ifeq ($(strip $(VERSION)),)
47 + VERSION = `git describe --tags`
48 +@@ -18,8 +19,8 @@
49 + ${CC} ${CFLAGS} ${LDFLAGS} -Wall -I. -g -O2 ${TARGET}.c -o ${TARGET}.so -shared -fPIC -DPIC -ggdb ${PURPLEFLAGS} ${SECRETFLAGS} -DVERSION=\"${VERSION}\"
50 +
51 + install: ${TARGET}.so
52 +- mkdir -p ${DESTDIR}/usr/lib/purple-2/
53 +- cp ${TARGET}.so ${DESTDIR}/usr/lib/purple-2/
54 ++ mkdir -p ${DESTDIR}/$(PLUGINDIR)/
55 ++ cp ${TARGET}.so ${DESTDIR}/$(PLUGINDIR)/
56 +
57 + install_local: ${TARGET}.so
58 + mkdir -p ~/.purple/plugins
59
60 diff --git a/x11-plugins/pidgin-gnome-keyring/metadata.xml b/x11-plugins/pidgin-gnome-keyring/metadata.xml
61 new file mode 100644
62 index 0000000..cb327e2
63 --- /dev/null
64 +++ b/x11-plugins/pidgin-gnome-keyring/metadata.xml
65 @@ -0,0 +1,18 @@
66 +<?xml version="1.0" encoding="UTF-8"?>
67 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
68 +<pkgmetadata>
69 + <maintainer type="person">
70 + <email>Marek.Szuba@××××.ch</email>
71 + <name>Marek Szuba</name>
72 + </maintainer>
73 + <maintainer type="project">
74 + <email>proxy-maint@g.o</email>
75 + <name>Gentoo Proxy Maintainers Project</name>
76 + </maintainer>
77 + <longdescription lang="en">
78 + Pidgin usually stores passwords as plaintext with the "save password"
79 + function. This plugin instead saves all passwords to the system
80 + keyring, which some would argue is a more secure form of password
81 + storage.
82 + </longdescription>
83 +</pkgmetadata>
84
85 diff --git a/x11-plugins/pidgin-gnome-keyring/pidgin-gnome-keyring-2.0.ebuild b/x11-plugins/pidgin-gnome-keyring/pidgin-gnome-keyring-2.0.ebuild
86 new file mode 100644
87 index 0000000..99560c3
88 --- /dev/null
89 +++ b/x11-plugins/pidgin-gnome-keyring/pidgin-gnome-keyring-2.0.ebuild
90 @@ -0,0 +1,38 @@
91 +# Copyright 1999-2016 Gentoo Foundation
92 +# Distributed under the terms of the GNU General Public License v2
93 +# $Id$
94 +
95 +EAPI=6
96 +
97 +DESCRIPTION="Integrates Pidgin (and libpurple) with the system keyring"
98 +HOMEPAGE="https://github.com/aebrahim/pidgin-gnome-keyring"
99 +SRC_URI="https://github.com/aebrahim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
100 +
101 +LICENSE="GPL-2+"
102 +SLOT="0"
103 +KEYWORDS="~amd64 ~x86"
104 +
105 +RDEPEND="app-crypt/libsecret
106 + net-im/pidgin"
107 +DEPEND="${RDEPEND}
108 + virtual/pkgconfig"
109 +
110 +PATCHES=(
111 + "${FILESDIR}/${P}-plugindir.patch"
112 +)
113 +
114 +src_prepare() {
115 + default
116 +
117 + # This file is used by the upstream Makefile yet is missing from at least
118 + # some release tarballs.
119 + if [ ! -f VERSION ]; then
120 + echo "${PV}" > VERSION || die "failed to recreate VERSION file"
121 + fi
122 +
123 + sed -i \
124 + -e 's|-O2||g' \
125 + -e 's|-ggdb||g' \
126 + -e 's|-g||g' \
127 + Makefile || die "stripping hard-coded flags failed"
128 +}