FreeBSD Ports

sysutils/dynamic_motd 1.4

Dynamic /var/run/motd

Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
sysutils
Package size
6.7 KiB, 15.9 KiB installed

Description

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.

Install

As a binary package — by origin, or by package name:

pkg install sysutils/dynamic_motd
pkg install dynamic_motd

From the ports tree:

cd /usr/ports/sysutils/dynamic_motd/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	dynamic_motd>0:sysutils/dynamic_motd

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.41.4-1.41.4
FreeBSD:14:quarterly1.41.4n/a1.41.4
FreeBSD:15:latest1.41.4n/a1.41.4
FreeBSD:15:quarterly1.41.4n/an/an/a
FreeBSD:16:latest1.41.4n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

The /usr/local/etc/rc.motd script is responsible for generating content for
/var/run/motd on each login. A sample script is provided in
/usr/local/etc/rc.motd.sample that emulates the default motd(5) behavior.
More extensive examples can be found in /usr/local/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: /usr/local/etc/rc.motd can be updated without restarting the
dynamic_motd service; changes are automatically picked up on next login.

Files

pkg-plist 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
distinfo 1
FileSizeSHA256
sstallion-dynamic_motd-v1.4_GH0.tar.gz1927079ab41681363b5ae94227d53733af05e8d248b01c16fb44f4d125c8161cb25381

Commit history 0

No commits in the history this site was built from.