aboutsummaryrefslogtreecommitdiff
path: root/news/cnews
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-10-08 11:28:57 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-10-08 11:28:57 +0000
commit81de54410730ce536b9675b0e8008add7ff4eb59 (patch)
tree6202cbb29c3fa14acbe927c1f2f4a3df98acda44 /news/cnews
parent20082f59c2001bab6a2c917ae94406725e6fcfd9 (diff)
downloadports-81de54410730ce536b9675b0e8008add7ff4eb59.tar.gz
ports-81de54410730ce536b9675b0e8008add7ff4eb59.zip
Notes
Diffstat (limited to 'news/cnews')
-rw-r--r--news/cnews/Makefile4
-rw-r--r--news/cnews/files/sendmail.patch11
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