Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/qingy/, sys-apps/qingy/files/
Date: Wed, 21 Feb 2018 20:39:46
Message-Id: 1519245440.8bfc444e289e02aa1652b39c9bccd5c7771715a2.pacho@gentoo
1 commit: 8bfc444e289e02aa1652b39c9bccd5c7771715a2
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 21 20:33:58 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 21 20:37:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfc444e
7
8 sys-apps/qingy: Disable DirectFB support (#642510), drop .la files, bump eapi.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sys-apps/qingy/files/qingy-1.0.0-tinfo.patch | 8 +-
13 sys-apps/qingy/qingy-1.0.0-r3.ebuild | 140 +++++++++++++++++++++++++++
14 2 files changed, 144 insertions(+), 4 deletions(-)
15
16 diff --git a/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch b/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch
17 index f752996c92f..fdb59256bbf 100644
18 --- a/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch
19 +++ b/sys-apps/qingy/files/qingy-1.0.0-tinfo.patch
20 @@ -4,8 +4,8 @@ linking since symbols are used from both
21
22 http://bugs.gentoo.org/459650
23
24 ---- configure.in
25 -+++ configure.in
26 +--- a/configure.in
27 ++++ b/configure.in
28 @@ -125,12 +125,7 @@
29 # End compile emacs stuff
30
31 @@ -20,8 +20,8 @@ http://bugs.gentoo.org/459650
32 # End check for ncurses
33
34 # Check for PAM support
35 ---- src/libraries/Makefile.am
36 -+++ src/libraries/Makefile.am
37 +--- a/src/libraries/Makefile.am
38 ++++ b/src/libraries/Makefile.am
39 @@ -4,7 +4,7 @@
40 INCLUDES = -I../.. -I../
41 BUILT_SOURCES = parse_settings.h
42
43 diff --git a/sys-apps/qingy/qingy-1.0.0-r3.ebuild b/sys-apps/qingy/qingy-1.0.0-r3.ebuild
44 new file mode 100644
45 index 00000000000..dc95a4a0d2b
46 --- /dev/null
47 +++ b/sys-apps/qingy/qingy-1.0.0-r3.ebuild
48 @@ -0,0 +1,140 @@
49 +# Copyright 1999-2018 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=6
53 +inherit autotools elisp-common eutils pam systemd
54 +
55 +GENTOO_THEME_VERSION="2.1"
56 +
57 +DESCRIPTION="A DirectFB getty replacement"
58 +HOMEPAGE="http://qingy.sourceforge.net/"
59 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
60 + mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2
61 + https://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz
62 + https://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-consolekit-pam.patch.gz"
63 +
64 +LICENSE="GPL-2"
65 +SLOT="0"
66 +KEYWORDS="~amd64 ~ppc ~x86"
67 +IUSE="consolekit crypt emacs gpm opensslcrypt pam static X"
68 +
69 +RDEPEND="
70 + >=sys-libs/ncurses-5.7-r7:=
71 + opensslcrypt? ( dev-libs/openssl:0= )
72 + crypt? ( >=dev-libs/libgcrypt-1.2.1:0= )
73 + emacs? ( virtual/emacs )
74 + pam? ( >=sys-libs/pam-0.75-r11 )
75 + X? (
76 + x11-libs/libX11:=
77 + x11-libs/libXScrnSaver:=
78 + x11-proto/scrnsaverproto
79 + )
80 +"
81 +DEPEND="${RDEPEND}
82 + >=sys-apps/sed-4.1.4-r1
83 + virtual/pkgconfig
84 +"
85 +RDEPEND="${RDEPEND}
86 + consolekit? (
87 + sys-auth/consolekit
88 + sys-apps/dbus )
89 + pam? ( sys-auth/pambase )
90 +"
91 +
92 +SITEFILE="50${PN}-gentoo.el"
93 +
94 +src_prepare() {
95 + eapply "${FILESDIR}"/${P}-tinfo.patch
96 + # bug #359637 and bug #462634 - fixes from upstream
97 + epatch "${DISTDIR}"/${P}-screensavers.patch.gz
98 + # bug #372675 - fix from upstream
99 + epatch "${DISTDIR}"/${P}-consolekit-pam.patch.gz
100 + default
101 + mv configure.in configure.ac || die
102 + eautoreconf
103 +}
104 +
105 +src_configure() {
106 + local crypto_support="--disable-crypto"
107 + local emacs_support="--disable-emacs --without-lispdir"
108 +
109 + if use crypt && use opensslcrypt; then
110 + echo
111 + ewarn "You can have openssl or libgcrypt as a crypto library, not both."
112 + ewarn "Using libgcrypt now..."
113 + echo
114 + fi
115 +
116 + use emacs && emacs_support="--enable-emacs --with-lispdir=${SITELISP}/${PN}"
117 + use opensslcrypt && crypto_support="--enable-crypto=openssl"
118 + use crypt && crypto_support="--enable-crypto=libgcrypt"
119 + econf \
120 + --sbindir=/sbin \
121 + --disable-optimizations \
122 + --disable-static \
123 + --disable-DirectFB-support \
124 + $(use_enable consolekit) \
125 + $(use_enable pam) \
126 + $(use_enable static static-build) \
127 + $(use_enable gpm gpm-lock) \
128 + $(use_enable X x-support) \
129 + ${crypto_support} \
130 + ${emacs_support}
131 +}
132 +
133 +src_install() {
134 + # Copy documentation manually as make install only installs info files
135 + # INSTALL is left because it contains also configuration informations
136 + dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
137 +
138 + # Install the program
139 + default
140 + find "${D}" -name '*.la' -delete || die
141 +
142 + # Set the settings file umask to 600, in case somebody
143 + # wants to make use of the autologin feature
144 + /bin/chmod 600 "${D}"/etc/qingy/settings
145 +
146 + # Install Gentoo theme
147 + dodir /usr/share/${PN}/themes/gentoo
148 + cp "${WORKDIR}"/gentoo/* "${D}"/usr/share/${PN}/themes/gentoo || die
149 +
150 + # Alter config file so that it uses our theme
151 + sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings
152 +
153 + # Install log rotation policy
154 + insinto /etc/logrotate.d
155 + newins "${FILESDIR}"/${PN}-logrotate ${PN}
156 +
157 + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE}
158 +
159 + rm "${D}"/etc/pam.d/qingy
160 + pamd_mimic system-local-login qingy auth account password session
161 +
162 + systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service"
163 +}
164 +
165 +pkg_postinst() {
166 + einfo "In order to use qingy you must first edit your /etc/inittab"
167 + einfo "Check the documentation at ${HOMEPAGE}"
168 + einfo "for instructions on how to do that."
169 + echo
170 + einfo "Also, make sure to adjust qingy settings file (/etc/qingy/settings)"
171 + einfo "to your preferences/machine configuration..."
172 +
173 + if use crypt; then
174 + echo
175 + einfo "You will have to create a key pair using 'qingy-keygen'"
176 + echo
177 + ewarn "Note that sometimes a generated key-pair may pass the internal tests"
178 + ewarn "but fail to work properly. You will get a 'regenerate your keys'"
179 + ewarn "message. If this is your case, please remove /etc/qingy/public_key"
180 + ewarn "and /etc/qingy/private_key and run qingy-keygen again..."
181 + fi
182 +
183 + use emacs && echo && elisp-site-regen
184 +}
185 +
186 +pkg_postrm() {
187 + use emacs && elisp-site-regen
188 +}