FreeBSD Bugzilla – Attachment 241547 Details for
Bug 267107
[NEW PORT] sysutils/dynamic_motd: Dynamic /var/run/motd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch #3
0001-sysutils-dynamic_motd-New-port-Dynamic-var-run-motd.patch (text/plain), 4.00 KB, created by
Steven Stallion
on 2023-04-17 19:13:26 UTC
(
hide
)
Description:
Patch #3
Filename:
MIME Type:
Creator:
Steven Stallion
Created:
2023-04-17 19:13:26 UTC
Size:
4.00 KB
patch
obsolete
>From 637e8ab0e1d07936b2b6f01286f9200c428bc0a4 Mon Sep 17 00:00:00 2001 >From: Steven Stallion <sstallion@gmail.com> >Date: Wed, 11 Jan 2023 10:24:56 -0600 >Subject: [PATCH] sysutils/dynamic_motd: New port: Dynamic /var/run/motd > >--- > sysutils/Makefile | 1 + > sysutils/dynamic_motd/Makefile | 19 +++++++++++++++++++ > sysutils/dynamic_motd/distinfo | 3 +++ > sysutils/dynamic_motd/pkg-descr | 5 +++++ > sysutils/dynamic_motd/pkg-message | 23 +++++++++++++++++++++++ > sysutils/dynamic_motd/pkg-plist | 7 +++++++ > 6 files changed, 58 insertions(+) > create mode 100644 sysutils/dynamic_motd/Makefile > create mode 100644 sysutils/dynamic_motd/distinfo > create mode 100644 sysutils/dynamic_motd/pkg-descr > create mode 100644 sysutils/dynamic_motd/pkg-message > create mode 100644 sysutils/dynamic_motd/pkg-plist > >diff --git a/sysutils/Makefile b/sysutils/Makefile >index 34461c48677d..407a5ef30cf8 100644 >--- a/sysutils/Makefile >+++ b/sysutils/Makefile >@@ -339,6 +339,7 @@ > SUBDIR += dwatch-gource > SUBDIR += dwatch-json > SUBDIR += dwatch-pwsnoop >+ SUBDIR += dynamic_motd > SUBDIR += e2fsprogs > SUBDIR += e2fsprogs-core > SUBDIR += e2tools >diff --git a/sysutils/dynamic_motd/Makefile b/sysutils/dynamic_motd/Makefile >new file mode 100644 >index 000000000000..56cdae0f78b1 >--- /dev/null >+++ b/sysutils/dynamic_motd/Makefile >@@ -0,0 +1,19 @@ >+PORTNAME= dynamic_motd >+DISTVERSIONPREFIX= v >+DISTVERSION= 1.3 >+CATEGORIES= sysutils >+ >+MAINTAINER= sstallion@gmail.com >+COMMENT= Dynamic /var/run/motd >+WWW= https://github.com/sstallion/dynamic_motd >+ >+LICENSE= BSD2CLAUSE >+LICENSE_FILE= ${WRKSRC}/LICENSE >+ >+IGNORE_FreeBSD_12= requires FreeBSD 13.0 or later >+ >+NO_ARCH= yes >+USE_GITHUB= yes >+GH_ACCOUNT= sstallion >+ >+.include <bsd.port.mk> >diff --git a/sysutils/dynamic_motd/distinfo b/sysutils/dynamic_motd/distinfo >new file mode 100644 >index 000000000000..7b32f8fb36e6 >--- /dev/null >+++ b/sysutils/dynamic_motd/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1681758637 >+SHA256 (sstallion-dynamic_motd-v1.3_GH0.tar.gz) = 4f000c16f881ac15761b3c878c4845f0cb4f67a6de5172b2562384ac88143505 >+SIZE (sstallion-dynamic_motd-v1.3_GH0.tar.gz) = 192602 >diff --git a/sysutils/dynamic_motd/pkg-descr b/sysutils/dynamic_motd/pkg-descr >new file mode 100644 >index 000000000000..b069d418c114 >--- /dev/null >+++ b/sysutils/dynamic_motd/pkg-descr >@@ -0,0 +1,5 @@ >+dynamic_motd is a drop-in replacement for generating messages of the day on >+FreeBSD 13.0 or later. During system startup, the file /var/run/motd is >+replaced with a fifo whose content is generated by a user-configurable shell >+script that is executed on each login. All other aspects of motd(5) are >+preserved. >diff --git a/sysutils/dynamic_motd/pkg-message b/sysutils/dynamic_motd/pkg-message >new file mode 100644 >index 000000000000..21c84f031db5 >--- /dev/null >+++ b/sysutils/dynamic_motd/pkg-message >@@ -0,0 +1,23 @@ >+[ >+{ type: install >+ message: <<EOM >+The ${PREFIX}/etc/rc.motd script is responsible for generating content for >+/var/run/motd on each login. A sample script is provided in >+${PREFIX}/etc/rc.motd.sample that emulates the default motd(5) behavior. >+More extensive examples can be found in ${PREFIX}/share/examples/dynamic_motd. >+ >+To enable the dynamic_motd service, update_motd should be disabled in >+/etc/rc.conf as it is no longer needed at system startup: >+ >+ # sysrc update_motd="NO" >+ >+The dynamic_motd service can then be enabled by issuing: >+ >+ # sysrc dynamic_motd="YES" >+ # service dynamic_motd start >+ >+Note: ${PREFIX}/etc/rc.motd can be updated without restarting the >+dynamic_motd service; changes are automatically picked up on next login. >+EOM >+} >+] >diff --git a/sysutils/dynamic_motd/pkg-plist b/sysutils/dynamic_motd/pkg-plist >new file mode 100644 >index 000000000000..93596d11fe54 >--- /dev/null >+++ b/sysutils/dynamic_motd/pkg-plist >@@ -0,0 +1,7 @@ >+etc/rc.d/dynamic_motd >+@sample etc/rc.motd.sample >+libexec/dynamic_motd >+share/doc/dynamic_motd/CONTRIBUTING.md >+share/doc/dynamic_motd/README.md >+share/examples/dynamic_motd/motd.subr >+share/examples/dynamic_motd/rc.motd >-- >2.40.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 267107
:
237362
|
239405
| 241547