diff --git a/etc/Makefile b/etc/Makefile index 6f1565f85cb8..547a8f779e5d 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -20,10 +20,6 @@ BIN1= \ # NB: keep these sorted by MK_* knobs -.if ${MK_SENDMAIL} != "no" -BIN1+= rc.sendmail -.endif - .if ${MK_SENDMAIL} == "no" ETCMAIL=mailer.conf aliases .else diff --git a/libexec/rc/Makefile b/libexec/rc/Makefile index 854fae6c7cfb..3e75a15201b9 100644 --- a/libexec/rc/Makefile +++ b/libexec/rc/Makefile @@ -8,6 +8,9 @@ CONFETC= network.subr rc rc.initdiskless rc.subr rc.shutdown rc.bsdextended .if ${MK_IPFW} != "no" CONFETC+= rc.firewall .endif +.if ${MK_SENDMAIL} != "no" +CONFETC+= rc.sendmail +.endif CONFETCMODE= 644 CONFETCEXEC= netstart pccard_ether rc.resume rc.suspend CONFETCEXECDIR= /etc