From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tmux/files/, app-misc/tmux/
Date: Sat, 1 Jun 2024 20:17:55 +0000 (UTC) [thread overview]
Message-ID: <1717273052.f74d350f6a5a95c647ca173ce7bb9007c3433fcf.floppym@gentoo> (raw)
commit: f74d350f6a5a95c647ca173ce7bb9007c3433fcf
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 1 20:11:33 2024 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Jun 1 20:17:32 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f74d350f
app-misc/tmux: install a basic systemd user service/socket
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
app-misc/tmux/files/tmux.service | 9 +++++++++
app-misc/tmux/files/tmux.socket | 8 ++++++++
app-misc/tmux/{tmux-3.4.ebuild => tmux-3.4-r1.ebuild} | 7 ++++++-
app-misc/tmux/tmux-9999.ebuild | 7 ++++++-
4 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/app-misc/tmux/files/tmux.service b/app-misc/tmux/files/tmux.service
new file mode 100644
index 000000000000..d6eed0eb5bcd
--- /dev/null
+++ b/app-misc/tmux/files/tmux.service
@@ -0,0 +1,9 @@
+[Unit]
+Requires=tmux@%i.socket
+
+[Service]
+ExecStart=/usr/bin/tmux -D
+
+[Install]
+Also=tmux@%i.socket
+DefaultInstance=default
diff --git a/app-misc/tmux/files/tmux.socket b/app-misc/tmux/files/tmux.socket
new file mode 100644
index 000000000000..9b94d4235efb
--- /dev/null
+++ b/app-misc/tmux/files/tmux.socket
@@ -0,0 +1,8 @@
+[Socket]
+ListenStream=/tmp/tmux-%U/%i
+DirectoryMode=0700
+SocketMode=0660
+
+[Install]
+WantedBy=sockets.target
+DefaultInstance=default
diff --git a/app-misc/tmux/tmux-3.4.ebuild b/app-misc/tmux/tmux-3.4-r1.ebuild
similarity index 91%
rename from app-misc/tmux/tmux-3.4.ebuild
rename to app-misc/tmux/tmux-3.4-r1.ebuild
index fd74496420c5..d90d053355f5 100644
--- a/app-misc/tmux/tmux-3.4.ebuild
+++ b/app-misc/tmux/tmux-3.4-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools flag-o-matic
+inherit autotools flag-o-matic systemd
DESCRIPTION="Terminal multiplexer"
HOMEPAGE="https://tmux.github.io/"
@@ -83,4 +83,9 @@ src_install() {
dodoc example_tmux.conf
docompress -x /usr/share/doc/${PF}/example_tmux.conf
+
+ if use systemd; then
+ systemd_newuserunit "${FILESDIR}"/tmux.service tmux@.service
+ systemd_newuserunit "${FILESDIR}"/tmux.socket tmux@.socket
+ fi
}
diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild
index c213890ee26b..3f3b9e9bf1a6 100644
--- a/app-misc/tmux/tmux-9999.ebuild
+++ b/app-misc/tmux/tmux-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit autotools flag-o-matic
+inherit autotools flag-o-matic systemd
DESCRIPTION="Terminal multiplexer"
HOMEPAGE="https://tmux.github.io/"
@@ -83,4 +83,9 @@ src_install() {
dodoc example_tmux.conf
docompress -x /usr/share/doc/${PF}/example_tmux.conf
+
+ if use systemd; then
+ systemd_newuserunit "${FILESDIR}"/tmux.service tmux@.service
+ systemd_newuserunit "${FILESDIR}"/tmux.socket tmux@.socket
+ fi
}
next reply other threads:[~2024-06-01 20:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-01 20:17 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-03 17:01 [gentoo-commits] repo/gentoo:master commit in: app-misc/tmux/files/, app-misc/tmux/ Andreas K. Hüttel
2024-10-18 19:30 Arthur Zamarin
2018-04-13 19:21 Lars Wendler
2018-01-26 21:48 Patrice Clement
2016-09-30 7:32 Lars Wendler
2016-05-18 20:06 Mike Gilbert
2016-01-10 10:47 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1717273052.f74d350f6a5a95c647ca173ce7bb9007c3433fcf.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox