[Bug 259109] shells/zsh: Add BIN_ZSH option

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Oct 2021 17:26:12 UTC

            Bug ID: 259109
           Summary: shells/zsh: Add BIN_ZSH option
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bapt@FreeBSD.org
          Reporter: yasu@freebsd.org
             Flags: maintainer-feedback?(bapt@FreeBSD.org)
          Assignee: bapt@FreeBSD.org

Created attachment 228632
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228632&action=edit
Patch file

Add new option BIN_ZSH that makes zsh and rzsh also available as /bin/zsh and

Under ports flamework everything is installed under /usr/local unless custom
prefix is used. And according to it zsh is installed as /usr/local/bin/zsh. But
on most Linux based OSes zsh is installed as /bin/zsh. And it causes problem if
user's account information is shared between FreeBSD and Linux by using such
tools as LDAP or NIS as account information also includes absolute path of
user's login shell.
To work around it I have created /bin/zsh as symbolic link referencing
/usr/local/bin/zsh and also edited /etc/shells to add /bin/zsh to it every time
I set up new FreeBSD system. But it's quite bothersome and I decided to create
patch to add new option that makes this port do these jobs automatically by
enabling it.

You are receiving this mail because:
You are the assignee for the bug.