aboutsummaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2006-10-08 19:28:57 +0800
committerdinoex <dinoex@FreeBSD.org>2006-10-08 19:28:57 +0800
commit62cb46bf77b874b72990680546e9b67b2462cfac (patch)
tree987b8ac82c663758aeb5f7631017593a241e6ff5 /news
parentf8f269462540e6f51002c44606eb8e7534c4fd74 (diff)
downloadfreebsd-ports-gnome-62cb46bf77b874b72990680546e9b67b2462cfac.tar.gz
freebsd-ports-gnome-62cb46bf77b874b72990680546e9b67b2462cfac.tar.zst
freebsd-ports-gnome-62cb46bf77b874b72990680546e9b67b2462cfac.zip
- new option WITH_SEDMAIL / WITH_CNEWS_SENDMAIL
Submitted by: Scott Hazen Mueller
Diffstat (limited to 'news')
-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