1 |
commit: 3abb7646b7c19ff0bb285319bf689eb5ccee36c8 |
2 |
Author: Michael Weber <michael <AT> xmw <DOT> de> |
3 |
AuthorDate: Wed Feb 24 12:12:38 2016 +0000 |
4 |
Commit: Michael Weber <xmw <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 24 12:12:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/xmw.git/commit/?id=3abb7646 |
7 |
|
8 |
x11-misc/trivdm: add RDEPEND=ncurses for /usr/bin/clear |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Manifest-Sign-Key: 0x71D573A82F434065 |
12 |
|
13 |
x11-misc/trivdm/trivdm-0_p20160224.ebuild | 65 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/x11-misc/trivdm/trivdm-0_p20160224.ebuild b/x11-misc/trivdm/trivdm-0_p20160224.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..0b4bd30 |
19 |
--- /dev/null |
20 |
+++ b/x11-misc/trivdm/trivdm-0_p20160224.ebuild |
21 |
@@ -0,0 +1,65 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Header: $ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit eutils readme.gentoo user |
29 |
+ |
30 |
+DESCRIPTION="trivial display manager" |
31 |
+HOMEPAGE="http://xmw.de/tmp/trivdm" |
32 |
+SRC_URI="" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="" |
38 |
+ |
39 |
+RDEPEND="app-admin/sudo |
40 |
+ app-misc/toilet |
41 |
+ app-shells/zsh |
42 |
+ sys-apps/daemonize |
43 |
+ sys-apps/kbd |
44 |
+ sys-libs/ncurses:0" |
45 |
+DEPEND="" |
46 |
+ |
47 |
+S=${WORKDIR} |
48 |
+ |
49 |
+pkg_postinst() { |
50 |
+ enewgroup ${PN} |
51 |
+ enewuser ${PN} -1 /usr/bin/${PN} -1 ${PN} |
52 |
+ |
53 |
+ readme.gentoo_print_elog |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ newbin "${FILESDIR}"/${P} ${PN} |
58 |
+ |
59 |
+ echo "CONFIG_PROTECT=\"/usr/bin/${PN}\"" > "${T}"/90${PN} || die |
60 |
+ doenvd "${T}"/90${PN} |
61 |
+ |
62 |
+ echo "#${PN} ALL=(root) NOPASSWD: /sbin/reboot,/sbin/halt" \ |
63 |
+ > "${T}"/${PN} || die |
64 |
+ insopts -m0440 |
65 |
+ insinto /etc/sudoers.d |
66 |
+ doins "${T}"/${PN} |
67 |
+ |
68 |
+ readme.gentoo_create_doc |
69 |
+} |
70 |
+ |
71 |
+DISABLE_AUTOFORMATTING=1 |
72 |
+DOC_CONTENTS="Your system needs 5 minor adjustments that |
73 |
+must not be made by Gentoo portage system: |
74 |
+1) enable xscreensaver->newlogin compartibility |
75 |
+ ln -s ../../bin/${PN} /usr/local/bin/gdmflexiserver |
76 |
+2) tune w to display remote login sessions and daemonized X11 |
77 |
+ ln -s ../../bin/${PN} /usr/local/bin/w |
78 |
+3) set a fancy font on framebuffer console on startup |
79 |
+ ln -s ../../usr/bin/${PN} /etc/local.d/${PN}.start |
80 |
+4) grant chvt to everyone |
81 |
+ chmod u+s /usr/bin/chvt |
82 |
+5) updated /etc/inittab (etc-update, dispatch-conf, ...) and reload |
83 |
+ echo \"c7:2345:respawn:/usr/bin/openvt -c 7 -f -w /usr/bin/trivdm\" \ |
84 |
+ > /etc/inittab |
85 |
+ kill -HUP 1 |
86 |
+Install app-admin/sudo and review /etc/sudoers.d/${PN}" |