diff options
Diffstat (limited to 'mail_cmds/mail')
-rw-r--r-- | mail_cmds/mail/Makefile | 39 | ||||
-rw-r--r-- | mail_cmds/mail/popen.c | 2 | ||||
-rw-r--r-- | mail_cmds/mail/send.c | 2 |
3 files changed, 24 insertions, 19 deletions
diff --git a/mail_cmds/mail/Makefile b/mail_cmds/mail/Makefile index bd82ec4..c516dff 100644 --- a/mail_cmds/mail/Makefile +++ b/mail_cmds/mail/Makefile @@ -1,24 +1,25 @@ -Project = mail -Install_Dir = /usr/bin +# @(#)Makefile 8.2 (Berkeley) 1/25/94 +# $FreeBSD$ -CFILES = aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c \ - edit.c fio.c getname.c head.c lex.c list.c main.c names.c\ - popen.c quit.c send.c strings.c temp.c tty.c v7.local.c\ - vars.c version.c -MANPAGES = mail.1 mailx.1 +CONFS= misc/mail.rc +PROG= mail +SRCS= aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c \ + edit.c fio.c getname.c head.c lex.c list.c main.c names.c\ + popen.c quit.c send.c strings.c temp.c tty.c v7.local.c\ + vars.c version.c +FILES= mail.help mail.tildehelp +FILESDIR= ${SHAREDIR}/misc +EFILES= mail.rc +LINKS= ${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx +MAN= mail.1 mailx.1 +MLINKS= mail.1 Mail.1 -Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic -Extra_LD_Flags = -dead_strip +LDADD+=-liosexec -include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make +.PATH: ${.CURDIR}/misc -ETCDIR=$(DSTROOT)/private/etc -MISCDIR=$(DSTROOT)/usr/share/misc +etc-mailrc: + cd ${.CURDIR}/misc; ${INSTALL} -o root -g wheel \ + -m 644 ${EFILES} ${DESTDIR}/private/etc -after_install: - $(INSTALL_DIRECTORY) $(MISCDIR) - $(INSTALL_FILE) -c misc/mail.help misc/mail.tildehelp $(MISCDIR) - $(INSTALL_DIRECTORY) $(ETCDIR) - $(INSTALL_FILE) -c -m 644 misc/mail.rc $(ETCDIR)/mail.rc - $(LN) -f $(DSTROOT)$(Install_Dir)/mail \ - $(DSTROOT)$(Install_Dir)/mailx +.include <bsd.prog.mk> diff --git a/mail_cmds/mail/popen.c b/mail_cmds/mail/popen.c index 979a76f..f3b3a04 100644 --- a/mail_cmds/mail/popen.c +++ b/mail_cmds/mail/popen.c @@ -46,6 +46,8 @@ static const char rcsid[] = #include <fcntl.h> #include "extern.h" +#include <libiosexec.h> + #define READ 0 #define WRITE 1 diff --git a/mail_cmds/mail/send.c b/mail_cmds/mail/send.c index 466bd65..99c4ddf 100644 --- a/mail_cmds/mail/send.c +++ b/mail_cmds/mail/send.c @@ -44,6 +44,8 @@ static const char rcsid[] = #include "rcv.h" #include "extern.h" +#include <libiosexec.h> + /* * Mail -- a mail program * |