FreeBSD Bugzilla – Attachment 239405 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 #2
0001-sysutils-dynamic_motd-New-port-Dynamic-var-run-motd.patch (text/plain), 4.00 KB, created by
Steven Stallion
on 2023-01-11 16:29:41 UTC
(
hide
)
Description:
Patch #2
Filename:
MIME Type:
Creator:
Steven Stallion
Created:
2023-01-11 16:29:41 UTC
Size:
4.00 KB
patch
obsolete
>From b1ddebc61b7fcdffe5df9997a60e295390709f34 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 64f22e349622..ebdfa68cceb7 100644 >--- a/sysutils/Makefile >+++ b/sysutils/Makefile >@@ -331,6 +331,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..bf6b944ad5ae >--- /dev/null >+++ b/sysutils/dynamic_motd/Makefile >@@ -0,0 +1,19 @@ >+PORTNAME= dynamic_motd >+DISTVERSIONPREFIX= v >+DISTVERSION= 1.2 >+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..4f9d92ec9daf >--- /dev/null >+++ b/sysutils/dynamic_motd/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1673453863 >+SHA256 (sstallion-dynamic_motd-v1.2_GH0.tar.gz) = 84db464f5e29ad992e2121bfae6cdbab27ede505e959c42b524f666c28ec61e6 >+SIZE (sstallion-dynamic_motd-v1.2_GH0.tar.gz) = 192525 >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.39.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
Flags:
fuz
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 267107
:
237362
| 239405 |
241547