1 |
commit: e2ce4d3855b4d7e1b4a559f6a3c1fd4ea7774b63 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 28 00:36:25 2018 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 28 00:52:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2ce4d38 |
7 |
|
8 |
sys-apps/qingy: Drop old version |
9 |
|
10 |
sys-apps/qingy/qingy-1.0.0-r2.ebuild | 134 ----------------------------------- |
11 |
1 file changed, 134 deletions(-) |
12 |
|
13 |
diff --git a/sys-apps/qingy/qingy-1.0.0-r2.ebuild b/sys-apps/qingy/qingy-1.0.0-r2.ebuild |
14 |
deleted file mode 100644 |
15 |
index e07aaae10bf..00000000000 |
16 |
--- a/sys-apps/qingy/qingy-1.0.0-r2.ebuild |
17 |
+++ /dev/null |
18 |
@@ -1,134 +0,0 @@ |
19 |
-# Copyright 1999-2015 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
- |
22 |
-EAPI=5 |
23 |
-inherit autotools elisp-common eutils pam systemd |
24 |
- |
25 |
-GENTOO_THEME_VERSION=2.1 |
26 |
- |
27 |
-DESCRIPTION="a DirectFB getty replacement" |
28 |
-HOMEPAGE="http://qingy.sourceforge.net/" |
29 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 |
30 |
- mirror://gentoo/${PN}-gentoo-theme-${GENTOO_THEME_VERSION}.tar.bz2 |
31 |
- https://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-screensavers.patch.gz |
32 |
- https://dev.gentoo.org/~gienah/2big4tree/sys-apps/qingy/${P}-consolekit-pam.patch.gz" |
33 |
- |
34 |
-LICENSE="GPL-2" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="amd64 ppc x86" |
37 |
-IUSE="consolekit crypt directfb emacs gpm opensslcrypt pam static X" |
38 |
- |
39 |
-RDEPEND=">=sys-libs/ncurses-5.7-r7:= |
40 |
- opensslcrypt? ( dev-libs/openssl:0= ) |
41 |
- crypt? ( >=dev-libs/libgcrypt-1.2.1:0= ) |
42 |
- directfb? ( >=dev-libs/DirectFB-1.4.2[fbcon,jpeg,png,truetype] ) |
43 |
- emacs? ( virtual/emacs ) |
44 |
- pam? ( >=sys-libs/pam-0.75-r11 ) |
45 |
- X? ( |
46 |
- x11-libs/libX11:= |
47 |
- x11-libs/libXScrnSaver:= |
48 |
- x11-proto/scrnsaverproto |
49 |
- )" |
50 |
-DEPEND="${RDEPEND} |
51 |
- >=sys-apps/sed-4.1.4-r1 |
52 |
- virtual/pkgconfig" |
53 |
-RDEPEND="${RDEPEND} |
54 |
- consolekit? ( |
55 |
- sys-auth/consolekit |
56 |
- sys-apps/dbus ) |
57 |
- pam? ( sys-auth/pambase )" |
58 |
- |
59 |
-SITEFILE=50${PN}-gentoo.el |
60 |
- |
61 |
-src_prepare() { |
62 |
- epatch "${FILESDIR}"/${P}-tinfo.patch |
63 |
- # bug #359637 and bug #462634 - fixes from upstream |
64 |
- epatch "${DISTDIR}"/${P}-screensavers.patch.gz |
65 |
- # bug #372675 - fix from upstream |
66 |
- epatch "${DISTDIR}"/${P}-consolekit-pam.patch.gz |
67 |
- epatch_user #510738 |
68 |
- eautoreconf |
69 |
-} |
70 |
- |
71 |
-src_configure() { |
72 |
- local crypto_support="--disable-crypto" |
73 |
- local emacs_support="--disable-emacs --without-lispdir" |
74 |
- |
75 |
- if use crypt && use opensslcrypt; then |
76 |
- echo |
77 |
- ewarn "You can have openssl or libgcrypt as a crypto library, not both." |
78 |
- ewarn "Using libgcrypt now..." |
79 |
- echo |
80 |
- fi |
81 |
- |
82 |
- use emacs && emacs_support="--enable-emacs --with-lispdir=${SITELISP}/${PN}" |
83 |
- use opensslcrypt && crypto_support="--enable-crypto=openssl" |
84 |
- use crypt && crypto_support="--enable-crypto=libgcrypt" |
85 |
- econf \ |
86 |
- --sbindir=/sbin \ |
87 |
- --disable-optimizations \ |
88 |
- $(use_enable consolekit) \ |
89 |
- $(use_enable pam) \ |
90 |
- $(use_enable static static-build) \ |
91 |
- $(use_enable gpm gpm-lock) \ |
92 |
- $(use_enable X x-support) \ |
93 |
- $(use_enable directfb DirectFB-support ) \ |
94 |
- ${crypto_support} \ |
95 |
- ${emacs_support} |
96 |
-} |
97 |
- |
98 |
-src_install() { |
99 |
- # Copy documentation manually as make install only installs info files |
100 |
- # INSTALL is left because it contains also configuration informations |
101 |
- dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO |
102 |
- |
103 |
- # Install the program |
104 |
- emake DESTDIR="${D}" install |
105 |
- |
106 |
- # Set the settings file umask to 600, in case somebody |
107 |
- # wants to make use of the autologin feature |
108 |
- /bin/chmod 600 "${D}"/etc/qingy/settings |
109 |
- |
110 |
- # Install Gentoo theme |
111 |
- dodir /usr/share/${PN}/themes/gentoo |
112 |
- cp "${WORKDIR}"/gentoo/* "${D}"/usr/share/${PN}/themes/gentoo || die |
113 |
- |
114 |
- # Alter config file so that it uses our theme |
115 |
- sed -i 's/theme = "default"/theme = "gentoo"/' "${D}"/etc/${PN}/settings |
116 |
- |
117 |
- # Install log rotation policy |
118 |
- insinto /etc/logrotate.d |
119 |
- newins "${FILESDIR}"/${PN}-logrotate ${PN} |
120 |
- |
121 |
- use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
122 |
- |
123 |
- rm "${D}"/etc/pam.d/qingy |
124 |
- pamd_mimic system-local-login qingy auth account password session |
125 |
- |
126 |
- systemd_newunit "${FILESDIR}/${PN}_at.service" "${PN}@.service" |
127 |
-} |
128 |
- |
129 |
-pkg_postinst() { |
130 |
- einfo "In order to use qingy you must first edit your /etc/inittab" |
131 |
- einfo "Check the documentation at ${HOMEPAGE}" |
132 |
- einfo "for instructions on how to do that." |
133 |
- echo |
134 |
- einfo "Also, make sure to adjust qingy settings file (/etc/qingy/settings)" |
135 |
- einfo "to your preferences/machine configuration..." |
136 |
- |
137 |
- if use crypt; then |
138 |
- echo |
139 |
- einfo "You will have to create a key pair using 'qingy-keygen'" |
140 |
- echo |
141 |
- ewarn "Note that sometimes a generated key-pair may pass the internal tests" |
142 |
- ewarn "but fail to work properly. You will get a 'regenerate your keys'" |
143 |
- ewarn "message. If this is your case, please remove /etc/qingy/public_key" |
144 |
- ewarn "and /etc/qingy/private_key and run qingy-keygen again..." |
145 |
- fi |
146 |
- |
147 |
- use emacs && echo && elisp-site-regen |
148 |
-} |
149 |
- |
150 |
-pkg_postrm() { |
151 |
- use emacs && elisp-site-regen |
152 |
-} |