diff options
-rw-r--r-- | news/cnews/Makefile | 4 | ||||
-rw-r--r-- | news/cnews/files/sendmail.patch | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/news/cnews/Makefile b/news/cnews/Makefile index c19e70230def..41329d90032d 100644 --- a/news/cnews/Makefile +++ b/news/cnews/Makefile @@ -75,6 +75,10 @@ PGPVERIFY?= pgpverify-1.12 PATCHFILES+= c-news-patch-gawk3 .endif +.if defined(WITH_SENDMAIL) || defined(WITH_CNEWS_SENDMAIL) +EXTRA_PATCHES+= ${FILESDIR}/sendmail.patch +.endif + pre-patch: @${CP} ${DISTDIR}/${DIST_SUBDIR}/${PGPVERIFY} ${WRKSRC}/${PGPVERIFY} diff --git a/news/cnews/files/sendmail.patch b/news/cnews/files/sendmail.patch new file mode 100644 index 000000000000..b154ef459284 --- /dev/null +++ b/news/cnews/files/sendmail.patch @@ -0,0 +1,11 @@ +--- inject/injnews.orig Thu Sep 8 21:35:53 1994 ++++ inject/injnews Sat Oct 7 19:51:47 2006 +@@ -118,7 +118,7 @@ + # unApproved article: mail to a moderator. + moderator="` modroute $ng `" + echo "mailing your article to $moderator" +- mail "$moderator" <$censart ++ /usr/sbin/sendmail -oem -odb -oi "$moderator" <$censart + ;; + esac + trap "$justcleanup" 0 # normal exit - no dead.article |