Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/qingy: qingy-1.0.0-r1.ebuild qingy-1.0.0.ebuild metadata.xml ChangeLog
Date: Sun, 26 Jan 2014 09:08:00
Message-Id: 20140126090757.19B3C2004C@flycatcher.gentoo.org
1 gienah 14/01/26 09:07:57
2
3 Modified: qingy-1.0.0.ebuild metadata.xml ChangeLog
4 Added: qingy-1.0.0-r1.ebuild
5 Log:
6 qingy-1.0.0: fix bug #359637 Updating sys-apps/qingy-1.0.0 autotools files: thanks to Justin for reporting, hal and axs for testing, Justin and s4t4n for fixing. Fix bug #462634 - sys-apps/qingy-1.0.0 build error: Thanks to Ole Langbehn for reporting, Rafal Muzylo, Ellison Marks, needle and Stephan Litterst for help. qingy-1.0.0-r1: Fix bug #372675 - sys-apps/qingy fails to keep ConsoleKit PAM session open with default setting (using DirectFB: Thanks to guboj for reporting, Richard Kenney for testing, Tomoh K. and s4t4n for fixing. Patches are from qingy upstream subversion.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
9
10 Revision Changes Path
11 1.7 sys-apps/qingy/qingy-1.0.0.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild?r1=1.6&r2=1.7
16
17 Index: qingy-1.0.0.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- qingy-1.0.0.ebuild 5 Mar 2013 10:10:31 -0000 1.6
24 +++ qingy-1.0.0.ebuild 26 Jan 2014 09:07:56 -0000 1.7
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2013 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild,v 1.6 2013/03/05 10:10:31 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-1.0.0.ebuild,v 1.7 2014/01/26 09:07:56 gienah Exp $
31
32 EAPI=5
33 inherit autotools elisp-common eutils pam
34 @@ -10,7 +10,8 @@
35 DESCRIPTION="a DirectFB getty replacement"
36 HOMEPAGE="http://qingy.sourceforge.net/"
37 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
38 - mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2"
39 + mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2
40 + http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz"
41
42 LICENSE="GPL-2"
43 SLOT="0"
44 @@ -38,6 +39,8 @@
45
46 src_prepare() {
47 epatch "${FILESDIR}"/${P}-tinfo.patch
48 + # bug #359637 and bug #462634 - fixes from upstream
49 + epatch "${DISTDIR}"/${P}-screensavers.patch.gz
50 eautoreconf
51 }
52
53
54
55
56 1.9 sys-apps/qingy/metadata.xml
57
58 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/metadata.xml?rev=1.9&view=markup
59 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/metadata.xml?rev=1.9&content-type=text/plain
60 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/metadata.xml?r1=1.8&r2=1.9
61
62 Index: metadata.xml
63 ===================================================================
64 RCS file: /var/cvsroot/gentoo-x86/sys-apps/qingy/metadata.xml,v
65 retrieving revision 1.8
66 retrieving revision 1.9
67 diff -u -r1.8 -r1.9
68 --- metadata.xml 2 Feb 2013 12:10:16 -0000 1.8
69 +++ metadata.xml 26 Jan 2014 09:07:56 -0000 1.9
70 @@ -3,6 +3,7 @@
71 <pkgmetadata>
72 <herd>base-system</herd>
73 <use>
74 + <flag name='consolekit'>Enable native consolekit support</flag>
75 <flag name='opensslcrypt'>Encrypt communications between qingy and its GUI
76 using <pkg>dev-libs/openssl</pkg></flag>
77 </use>
78
79
80
81 1.72 sys-apps/qingy/ChangeLog
82
83 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/ChangeLog?rev=1.72&view=markup
84 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/ChangeLog?rev=1.72&content-type=text/plain
85 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/ChangeLog?r1=1.71&r2=1.72
86
87 Index: ChangeLog
88 ===================================================================
89 RCS file: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v
90 retrieving revision 1.71
91 retrieving revision 1.72
92 diff -u -r1.71 -r1.72
93 --- ChangeLog 25 Aug 2013 22:38:15 -0000 1.71
94 +++ ChangeLog 26 Jan 2014 09:07:56 -0000 1.72
95 @@ -1,6 +1,19 @@
96 # ChangeLog for sys-apps/qingy
97 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
98 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.71 2013/08/25 22:38:15 ulm Exp $
99 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
100 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/ChangeLog,v 1.72 2014/01/26 09:07:56 gienah Exp $
101 +
102 +*qingy-1.0.0-r1 (26 Jan 2014)
103 +
104 + 26 Jan 2014; Mark Wright <gienah@g.o> +qingy-1.0.0-r1.ebuild,
105 + metadata.xml, qingy-1.0.0.ebuild:
106 + qingy-1.0.0: fix bug #359637 Updating sys-apps/qingy-1.0.0 autotools files:
107 + thanks to Justin for reporting, hal and axs for testing, Justin and s4t4n for
108 + fixing. Fix bug #462634 - sys-apps/qingy-1.0.0 build error: Thanks to Ole
109 + Langbehn for reporting, Rafal Muzylo, Ellison Marks, needle and Stephan
110 + Litterst for help. qingy-1.0.0-r1: Fix bug #372675 - sys-apps/qingy fails to
111 + keep ConsoleKit PAM session open with default setting (using DirectFB: Thanks
112 + to guboj for reporting, Richard Kenney for testing, Tomoh K. and s4t4n for
113 + fixing. Patches are from qingy upstream subversion.
114
115 27 May 2013; Ulrich Müller <ulm@g.o> files/50qingy-gentoo.el:
116 Autoload correct function in Emacs site-init file, bug 392029.
117
118
119
120 1.1 sys-apps/qingy/qingy-1.0.0-r1.ebuild
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/qingy-1.0.0-r1.ebuild?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/qingy/qingy-1.0.0-r1.ebuild?rev=1.1&content-type=text/plain
124
125 Index: qingy-1.0.0-r1.ebuild
126 ===================================================================
127 # Copyright 1999-2014 Gentoo Foundation
128 # Distributed under the terms of the GNU General Public License v2
129 # $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-1.0.0-r1.ebuild,v 1.1 2014/01/26 09:07:56 gienah Exp $
130
131 EAPI=5
132 inherit autotools elisp-common eutils pam
133
134 GENTOO_THEME_VERSION=2.1
135
136 DESCRIPTION="a DirectFB getty replacement"
137 HOMEPAGE="http://qingy.sourceforge.net/"
138 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
139 mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2
140 http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz
141 http://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-consolekit-pam.patch.gz"
142
143 LICENSE="GPL-2"
144 SLOT="0"
145 KEYWORDS="~amd64 ~ppc ~x86"
146 IUSE="consolekit crypt directfb emacs gpm opensslcrypt pam static X"
147
148 RDEPEND=">=sys-libs/ncurses-5.7-r7:=
149 opensslcrypt? ( dev-libs/openssl:0= )
150 crypt? ( >=dev-libs/libgcrypt-1.2.1:= )
151 directfb? ( >=dev-libs/DirectFB-1.4.2[fbcon,jpeg,png,truetype] )
152 emacs? ( virtual/emacs )
153 pam? ( >=sys-libs/pam-0.75-r11 )
154 X? (
155 x11-libs/libX11:=
156 x11-libs/libXScrnSaver:=
157 x11-proto/scrnsaverproto
158 )"
159 DEPEND="${RDEPEND}
160 >=sys-apps/sed-4.1.4-r1
161 virtual/pkgconfig"
162 RDEPEND="${RDEPEND}
163 consolekit? (
164 sys-auth/consolekit
165 sys-apps/dbus )
166 pam? ( sys-auth/pambase )"
167
168 SITEFILE=50${PN}-gentoo.el
169
170 src_prepare() {
171 epatch "${FILESDIR}"/${P}-tinfo.patch
172 # bug #359637 and bug #462634 - fixes from upstream
173 epatch "${DISTDIR}"/${P}-screensavers.patch.gz
174 # bug #372675 - fix from upstream
175 epatch "${DISTDIR}"/${P}-consolekit-pam.patch.gz
176 eautoreconf
177 }
178
179 src_configure() {
180 local crypto_support="--disable-crypto"
181 local emacs_support="--disable-emacs --without-lispdir"
182
183 if use crypt && use opensslcrypt; then
184 echo
185 ewarn "You can have openssl or libgcrypt as a crypto library, not both."
186 ewarn "Using libgcrypt now..."
187 echo
188 fi
189
190 use emacs && emacs_support="--enable-emacs --with-lispdir=${SITELISP}/${PN}"
191 use opensslcrypt && crypto_support="--enable-crypto=openssl"
192 use crypt && crypto_support="--enable-crypto=libgcrypt"
193 econf \
194 --sbindir=/sbin \
195 --disable-optimizations \
196 $(use_enable consolekit) \
197 $(use_enable pam) \
198 $(use_enable static static-build) \
199 $(use_enable gpm gpm-lock) \
200 $(use_enable X x-support) \
201 $(use_enable directfb DirectFB-support ) \
202 ${crypto_support} \
203 ${emacs_support}
204 }
205
206 src_install() {
207 # Copy documentation manually as make install only installs info files
208 # INSTALL is left because it contains also configuration informations
209 dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
210
211 # Install the program
212 emake DESTDIR="${D}" install
213
214 # Set the settings file umask to 600, in case somebody
215 # wants to make use of the autologin feature
216 /bin/chmod 600 "${D}"/etc/qingy/settings
217
218 # Install Gentoo theme
219 dodir /usr/share/${PN}/themes/gentoo
220 cp "${WORKDIR}"/gentoo/* "${D}"/usr/share/${PN}/themes/gentoo || die
221
222 # Alter config file so that it uses our theme
223 sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings
224
225 # Install log rotation policy
226 insinto /etc/logrotate.d
227 newins "${FILESDIR}"/${PN}-logrotate ${PN}
228
229 use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE}
230
231 rm "${D}"/etc/pam.d/qingy
232 pamd_mimic system-local-login qingy auth account password session
233 }
234
235 pkg_postinst() {
236 einfo "In order to use qingy you must first edit your /etc/inittab"
237 einfo "Check the documentation at ${HOMEPAGE}"
238 einfo "for instructions on how to do that."
239 echo
240 einfo "Also, make sure to adjust qingy settings file (/etc/qingy/settings)"
241 einfo "to your preferences/machine configuration..."
242
243 if use crypt; then
244 echo
245 einfo "You will have to create a key pair using 'qingy-keygen'"
246 echo
247 ewarn "Note that sometimes a generated key-pair may pass the internal tests"
248 ewarn "but fail to work properly. You will get a 'regenerate your keys'"
249 ewarn "message. If this is your case, please remove /etc/qingy/public_key"
250 ewarn "and /etc/qingy/private_key and run qingy-keygen again..."
251 fi
252
253 use emacs && echo && elisp-site-regen
254 }
255
256 pkg_postrm() {
257 use emacs && elisp-site-regen
258 }