Binary name

View: New views
5 Messages — Rating Filter:   Alert me  

Binary name

by D. E. Evans-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Most GNU+Linux systems install a {M,m}ail{x} program by
default.  The default mailutils name is mail, but I'm not
seeing an option to change this in the Makefile.  On my
system Mail would be sufficient, but I think a recommended
option be available, perhaps GMail (or something else to
avoid the Google connection).

Have I overlooked a configure option, or make variable?


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: Binary name

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

D. E. Evans <sinuhe@...> ha escrit:

> Most GNU+Linux systems install a {M,m}ail{x} program by
> default.  The default mailutils name is mail, but I'm not
> seeing an option to change this in the Makefile.

It is called `mail' because it is designed as a replacement for
the system /bin/mail command.

> On my system Mail would be sufficient, but I think a recommended
> option be available, perhaps GMail (or something else to
> avoid the Google connection).

Hmm, I'd not call it recommended, since it actually goes against the
purpose of MU mail implemetation.

> Have I overlooked a configure option, or make variable?

Yes, probably you have.  The configure script provides three options for
that purpose:

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program
                                     names
  --program-suffix=SUFFIX            append SUFFIX to installed
                                     program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed
                                     program names

Regards,
Sergey


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Parent Message unknown Re: Binary name

by D. E. Evans-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


   It is called `mail' because it is designed as a replacement for
   the system /bin/mail command.

Let me put it more directly.  I'm not asking this as a GNU+Linux
distributor, but as a system admin who wants to take advantage
of GNU mailutils' extra features (MRA, mimeview, and movemail
for Emacs).  If I "yum remove mailx" I lose half my installed
system, (Ubuntu/Debian make this easier with alternatives,
which allows me to substitute GNU mail for mailx).  I don't
believe you intend to have /bin/mail overwritten with GNU mail,
hence my question.  I could install /usr/local/bin/mail, and
modify the PATH so that GNU mail is called first, but changing
the name to /usr/local/bin/Mail seems an easier alternative.

The prefix options you provided earlier appear to be for
path modification of where the binary is installed--something
that would be useful for a distribution's build system--not
under what name the specific binary is installed as, except
"--program-transform-name", but I'm not sure I understand
how the latter would work for my purpose.


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: Binary name

by Sergey Poznyakoff-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

D. E. Evans <sinuhe@...> ha escrit:

> I don't believe you intend to have /bin/mail overwritten with GNU
> mail,

Why not, provided that it has been linked statically?

> I could install /usr/local/bin/mail, and
> modify the PATH so that GNU mail is called first, but changing
> the name to /usr/local/bin/Mail seems an easier alternative.

That's exactly what --program-transform-name is for.  Here's how
to do that:

   ./configure --program-transform-name='s,^mail$,Mail,'

   
Regards,
Sergey


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Re: Binary name

by D. E. Evans-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   D. E. Evans <sinuhe@...> ha escrit:
   
   > I don't believe you intend to have /bin/mail overwritten with GNU
   > mail,
   
   Why not, provided that it has been linked statically?

The moment a package upgrade occurs it gets wiped out.  
   
   > I could install /usr/local/bin/mail, and
   > modify the PATH so that GNU mail is called first, but changing
   > the name to /usr/local/bin/Mail seems an easier alternative.
   
   That's exactly what --program-transform-name is for.  Here's how
   to do that:
   
      ./configure --program-transform-name='s,^mail$,Mail,'
   
Oh, I see.  The SED reference in INSTALL wasn't very clear.
Thank you.


_______________________________________________
Bug-mailutils mailing list
Bug-mailutils@...
http://lists.gnu.org/mailman/listinfo/bug-mailutils
LightInTheBox - Buy quality products at wholesale price!