From 9c4919c1d49f0bc1da343d16725ad0281a4ca878 Mon Sep 17 00:00:00 2001 From: gjb Date: Mon, 8 Feb 2016 18:41:46 +0000 Subject: [PATCH] Create a package for sendmail(8). Sponsored by: The FreeBSD Foundation --- etc/Makefile | 6 +++++- etc/rc.d/Makefile | 6 +++++- lib/libmilter/Makefile | 2 +- lib/libsm/Makefile | 2 +- libexec/mail.local/Makefile | 1 + usr.sbin/sendmail/Makefile | 1 + 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/etc/Makefile b/etc/Makefile index 60dda7a441aa..3de8f974ba98 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -139,8 +139,12 @@ BIN1+= pf.os .endif .if ${MK_SENDMAIL} != "no" -BIN1+= rc.sendmail +FILESGROUPS+= SENDMAILRC +SENDMAILRC= rc.sendmail .endif +SENDMAILRCDIR= /etc +SENDMAILRCMODE= ${BINMODE} +SENDMAILRCPACKAGE=sendmail .if ${MK_TCSH} != "no" BIN1+= csh.cshrc csh.login csh.logout diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 31cffcddfda9..d0660fb80023 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -296,8 +296,12 @@ FILES+= routed .endif .if ${MK_SENDMAIL} != "no" -FILES+= sendmail +FILESGROUPS+= SMRCD +SMRCD= sendmail .endif +SMRCDDIR= /etc/rc.d +SMRCDDIRMODE= ${BINMODE} +SMRCDPACKAGE= sendmail .if ${MK_TIMED} != "no" FILES+= timed diff --git a/lib/libmilter/Makefile b/lib/libmilter/Makefile index 2cb2694bac80..88a80b7e0684 100644 --- a/lib/libmilter/Makefile +++ b/lib/libmilter/Makefile @@ -2,7 +2,7 @@ .include -PACKAGE=lib${LIB} +PACKAGE=sendmail SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail .PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm diff --git a/lib/libsm/Makefile b/lib/libsm/Makefile index af2831479b06..984009259fc3 100644 --- a/lib/libsm/Makefile +++ b/lib/libsm/Makefile @@ -2,7 +2,7 @@ .include -PACKAGE=lib${LIB} +PACKAGE=sendmail SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail .PATH: ${SENDMAIL_DIR}/libsm diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile index 79844e8972dd..6b4256f8a091 100644 --- a/libexec/mail.local/Makefile +++ b/libexec/mail.local/Makefile @@ -1,6 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 7/19/93 # $FreeBSD$ +PACKAGE=sendmail SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail .PATH: ${SENDMAIL_DIR}/mail.local diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index f9641c1675d8..d7246cbef84b 100644 --- a/usr.sbin/sendmail/Makefile +++ b/usr.sbin/sendmail/Makefile @@ -3,6 +3,7 @@ .include +PACKAGE=sendmail SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail SMDIR= ${SENDMAIL_DIR}/src .PATH: ${SMDIR}