From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84A611582EF for ; Fri, 07 Mar 2025 18:36:52 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 70F03341465 for ; Fri, 07 Mar 2025 18:36:52 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 7981211027C; Fri, 07 Mar 2025 18:36:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 722AE11027C for ; Fri, 07 Mar 2025 18:36:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29A3B340C40 for ; Fri, 07 Mar 2025 18:36:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 903842893 for ; Fri, 07 Mar 2025 18:36:49 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1741372477.de80c9fcb1c2d67c6bb3f0019b08a6ed014c92e6.ulm@gentoo> Subject: [gentoo-commits] repo/proj/emacs:master commit in: app-emacs/emacs-common/ X-VCS-Repository: repo/proj/emacs X-VCS-Files: app-emacs/emacs-common/emacs-common-9999.ebuild X-VCS-Directories: app-emacs/emacs-common/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: de80c9fcb1c2d67c6bb3f0019b08a6ed014c92e6 X-VCS-Branch: master Date: Fri, 07 Mar 2025 18:36:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a01b1db2-f7d1-4949-9edf-d3eafb438a22 X-Archives-Hash: 87619ee07aea7534b51b1a3d8ccf1ec1 commit: de80c9fcb1c2d67c6bb3f0019b08a6ed014c92e6 Author: Ulrich Müller gentoo org> AuthorDate: Fri Mar 7 18:34:37 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Fri Mar 7 18:34:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=de80c9fc app-emacs/emacs-common: Install user initd file Bug: https://bugs.gentoo.org/950671 Signed-off-by: Ulrich Müller gentoo.org> app-emacs/emacs-common/emacs-common-9999.ebuild | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/app-emacs/emacs-common/emacs-common-9999.ebuild b/app-emacs/emacs-common/emacs-common-9999.ebuild index 2349bac..6db48eb 100644 --- a/app-emacs/emacs-common/emacs-common-9999.ebuild +++ b/app-emacs/emacs-common/emacs-common-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -32,6 +32,10 @@ src_install() { insinto /etc/emacs doins site-start.el + exeinto /etc/user/init.d + sed -e "s,/usr/bin/emacs,${EPREFIX}&," emacs.initd | newexe - emacs + pipestatus || die + if use games; then keepdir /var/games/emacs fowners 0:gamestat /var/games/emacs @@ -66,10 +70,25 @@ src_install() { site startup file /etc/emacs/site-start.el is installed. You are responsible for maintenance of this file. \n\nAlternatively, individual users can add the following command: - \n\n(require 'site-gentoo) + \n\n\t(require 'site-gentoo) \n\nto their ~/.emacs initialisation files, or, for greater flexibility, users may load single package-specific initialisation files from the ${SITELISP}/site-gentoo.d/ directory." + + [[ -d /run/openrc ]] && DOC_CONTENTS+="\n\n\nTo have OpenRC + (version 0.60 or later) automatically start Emacs as a daemon in + your user session, login as normal user and execute the command: + \n\n\t$ rc-update --user add emacs default + \n\nThis will add emacs to the default runlevel in + ~/.config/rc/runlevels/. + \n\nIf you want to start your user's Emacs daemon at system startup + and have it persist between login sessions, do the following in + addition (as the superuser): + \n\n\t# ln -s user /etc/init.d/user. + \n\t# rc-service user. start + \n\t# rc-update add user. default + \n\nSee OpenRC's user guide for the full documentation." + readme.gentoo_create_doc }