aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-09-07 18:38:36 +0800
committerache <ache@FreeBSD.org>2003-09-07 18:38:36 +0800
commite89508caaafb75b7b62d8aaae0a6d08ec7bc0e98 (patch)
tree05abd4ecc7ebdd6dad477b0a6f8f4b1d75e89f9f /mail
parent3b2b910c3d4df94e465790b558fccbcc80aac956 (diff)
downloadfreebsd-ports-gnome-e89508caaafb75b7b62d8aaae0a6d08ec7bc0e98.tar.gz
freebsd-ports-gnome-e89508caaafb75b7b62d8aaae0a6d08ec7bc0e98.tar.zst
freebsd-ports-gnome-e89508caaafb75b7b62d8aaae0a6d08ec7bc0e98.zip
Remove socket before starting daemon
Don't install binary with smmsp:smmsp, it is not suid
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-sender/files/patch-ac13
-rw-r--r--mail/milter-sender/files/patch-ad21
2 files changed, 24 insertions, 10 deletions
diff --git a/mail/milter-sender/files/patch-ac b/mail/milter-sender/files/patch-ac
index f16b9696cc6f..c84e4d3e1548 100644
--- a/mail/milter-sender/files/patch-ac
+++ b/mail/milter-sender/files/patch-ac
@@ -1,5 +1,5 @@
---- milter-sender/milter-sender.sh.bak Tue Sep 2 21:12:30 2003
-+++ milter-sender/milter-sender.sh Sun Sep 7 12:09:08 2003
+--- milter-sender/milter-sender.sh.orig Tue Sep 2 21:12:30 2003
++++ milter-sender/milter-sender.sh Sun Sep 7 14:28:41 2003
@@ -10,15 +10,14 @@
# BEFORE: mail
# KEYWORD: FreeBSD NetBSD
@@ -24,7 +24,7 @@
##########################################################################
# Nothing to be configured below this point.
-@@ -64,11 +63,10 @@
+@@ -64,31 +63,29 @@
start()
{
NAME=`basename "$PROGRAM"`
@@ -36,8 +36,11 @@
+ echo " milter-sender:FAILED"
return
fi
-
-@@ -78,17 +76,16 @@
+-
++ rm -f ${PREFIX}/lib/milter-sender/socket
+ # Start the program in the background from a sub-shell
+ # so that process will appear in the ps output immediately.
+ sh -c "$PROGRAM $OPTIONS &"
pid=`getpid "$PROGRAM"`
if [ X"$pid" = X ]; then
diff --git a/mail/milter-sender/files/patch-ad b/mail/milter-sender/files/patch-ad
index f66541a17bf0..a69138a289f8 100644
--- a/mail/milter-sender/files/patch-ad
+++ b/mail/milter-sender/files/patch-ad
@@ -1,15 +1,26 @@
---- milter-sender/install.sh.bak Mon Aug 25 14:36:47 2003
-+++ milter-sender/install.sh Sun Sep 7 12:12:40 2003
-@@ -26,10 +26,10 @@
+--- milter-sender/install.sh.orig Mon Aug 25 14:36:47 2003
++++ milter-sender/install.sh Sun Sep 7 14:35:00 2003
+@@ -18,19 +18,17 @@
+ chgrp ${GROUP} ${STATEDIR}
+
+ cp -f ${MILTER} ${BINDIR}
+-chown ${USER} ${BINDIR}/${MILTER}
+-chgrp ${GROUP} ${BINDIR}/${MILTER}
++#chown ${USER} ${BINDIR}/${MILTER}
++#chgrp ${GROUP} ${BINDIR}/${MILTER}
+
+ chgrp ${GROUP} ${MAILDIR} ${MAILDIR}/access.* ${MAILDIR}/aliases.*
+
case `uname -s` in
*BSD*)
- RC="/usr/local/etc/rc.d/${MILTER}.sh"
+- if [ ! -f $RC ]; then
+ RC="/usr/local/etc/rc.d/${MILTER}.sh-dist"
- if [ ! -f $RC ]; then
cp ${MILTER}.sh $RC
- chmod 540 $RC
+- fi
+ chmod 640 $RC
- fi
;;
Linux*)
+ if [ -d '/etc/rc.d/init.d' ]; then