Gentoo Archives: gentoo-commits

From: Mark Wright <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/cdm/
Date: Mon, 29 Jan 2018 10:29:11
Message-Id: 1517221720.f536fcc093fa1d6a2df8dd8076cd568bdede48e3.gienah@gentoo
1 commit: f536fcc093fa1d6a2df8dd8076cd568bdede48e3
2 Author: Mark Wright <gienah <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 29 10:28:40 2018 +0000
4 Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 29 10:28:40 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f536fcc0
7
8 x11-misc/cdm: Bump
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 x11-misc/cdm/Manifest | 1 +
13 x11-misc/cdm/cdm-0.6.1_pre20180107.ebuild | 70 +++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/x11-misc/cdm/Manifest b/x11-misc/cdm/Manifest
17 index b4de7476ba0..4e29e07811c 100644
18 --- a/x11-misc/cdm/Manifest
19 +++ b/x11-misc/cdm/Manifest
20 @@ -1 +1,2 @@
21 DIST cdm-0.6.1_pre20130419.tar.gz 16056 BLAKE2B a92eabbc044b58e751b29bc05073052605b03460fa1aa62f15385c78e3c2ca033f8a25b40c646eed1602f3856e97d8dd6f987ecbc6ba50ad68aad4813725e72b SHA512 638d92c536609b8bf1d08f4be80933e5ff23acfe412ee6b72ff924edbe1e510110b7941caea9b206136ee5a75dddd998275e89c132feba0ed3df26ab1657bf8b
22 +DIST cdm-0.6.1_pre20180107.tar.gz 16541 BLAKE2B 19b7a8f6ef7541333b96bb3c2d6a9d3b7ce3bffdcf6653a3799d963d3b3bab3fe3553469a9cbf0f493109ad5308c739b25ce9e5801d0904f5d7b6e78b680e2fc SHA512 dc5587debb304636be25afdf60e8328b1eb9b961694813b089df504567f63cfeac6de17df715d589cec597f51044b8c121242ebefbe5bfeccf6aa072b1c03a40
23
24 diff --git a/x11-misc/cdm/cdm-0.6.1_pre20180107.ebuild b/x11-misc/cdm/cdm-0.6.1_pre20180107.ebuild
25 new file mode 100644
26 index 00000000000..d131c897863
27 --- /dev/null
28 +++ b/x11-misc/cdm/cdm-0.6.1_pre20180107.ebuild
29 @@ -0,0 +1,70 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="6"
34 +
35 +inherit pam eutils
36 +
37 +DESCRIPTION="The Console Display Manager"
38 +HOMEPAGE="https://github.com/evertiro/cdm"
39 +SRC_URI="https://dev.gentoo.org/~gienah/snapshots/${P}.tar.gz"
40 +
41 +LICENSE="GPL-3"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~x86"
44 +IUSE="pam consolekit"
45 +REQUIRED_USE="consolekit? ( pam )"
46 +
47 +DEPEND=""
48 +RDEPEND="${DEPEND}
49 + dev-util/dialog
50 + x11-apps/xdpyinfo
51 + x11-apps/xinit
52 + consolekit? ( sys-auth/consolekit
53 + sys-apps/dbus )
54 + pam? ( virtual/pam )"
55 +
56 +src_prepare() {
57 + default
58 + if ! use consolekit; then
59 + sed -e 's@consolekit=yes@consolekit=no@' \
60 + -i "${S}/src/cdmrc" || die "Could not turn off consolekit in cdmrc"
61 + fi
62 +}
63 +
64 +src_install() {
65 + if use pam ; then
66 + pamd_mimic system-local-login cdm auth account session
67 + fi
68 +
69 + insinto /usr/bin/
70 + insopts -m0755
71 + dobin src/${PN} src/${PN}-xlaunch
72 +
73 + insinto /etc
74 + insopts -Dm644
75 + doins src/cdmrc
76 +
77 + insinto /etc/profile.d/
78 + insopts -Dm755
79 + newins src/profile.sh zzz-${PN}.sh
80 +
81 + # Install themes
82 + insinto /usr/share/${PN}/themes
83 + doins themes/*
84 + # Copy documentation manually
85 + dodoc ChangeLog-0.6 ChangeLog-before-0.6 README.md
86 +}
87 +
88 +pkg_postinst() {
89 + ewarn "In order to use CDM you must first edit your /etc/cdmrc"
90 + ewarn "At least the binlist, namelist and flaglist entries should be added or edited"
91 + ewarn "to specify the X window managers and console shells that you want before"
92 + ewarn "you start CDM. Something like:"
93 + ewarn "binlist=('xmonad' 'startkde' '/bin/zsh --login' '/bin/bash --login')"
94 + ewarn "namelist=('XMonad' 'KDE' 'Console Zsh' 'Console Bash')"
95 + ewarn "flaglist=(X X C C)"
96 + ewarn "Ensure the flaglist X entries correspond to the X-Windows programs, and the"
97 + ewarn "C entries correspond to console shells. Then just login with your username."
98 + ewarn "Remove xdm from default runlevel."
99 +}