aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmhandle/files
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-01-23 21:32:09 +0800
committerpetef <petef@FreeBSD.org>2003-01-23 21:32:09 +0800
commitf344a70abc515bd6554aec5e8314a5765cbc428b (patch)
treefae4ca2c7bdc890215c11d75db1a926c682b961f /mail/qmhandle/files
parent394df135e7bddb13d6fb3b9c87aea3bc270b0551 (diff)
downloadfreebsd-ports-graphics-f344a70abc515bd6554aec5e8314a5765cbc428b.tar.gz
freebsd-ports-graphics-f344a70abc515bd6554aec5e8314a5765cbc428b.tar.zst
freebsd-ports-graphics-f344a70abc515bd6554aec5e8314a5765cbc428b.zip
- add a patch so we have sensible defaults for freebsd
- bump PORTREVISION PR: 47137 Submitted by: Marco Molteni <molter@tin.it>
Diffstat (limited to 'mail/qmhandle/files')
-rw-r--r--mail/qmhandle/files/patch-qmHandle34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/qmhandle/files/patch-qmHandle b/mail/qmhandle/files/patch-qmHandle
new file mode 100644
index 00000000000..f894d23c036
--- /dev/null
+++ b/mail/qmhandle/files/patch-qmHandle
@@ -0,0 +1,34 @@
+$FreeBSD$
+
+--- qmHandle.orig Thu Jan 16 10:05:21 2003
++++ qmHandle Thu Jan 16 10:31:33 2003
+@@ -26,8 +26,12 @@
+ #my ($startqmail) = '/usr/local/bin/svc -u /service/qmail-send';
+
+ # While this is if you have a Debian GNU/Linux with its qmail package
+-my ($stopqmail) = '/etc/init.d/qmail stop';
+-my ($startqmail) = '/etc/init.d/qmail start';
++#my ($stopqmail) = '/etc/init.d/qmail stop';
++#my ($startqmail) = '/etc/init.d/qmail start';
++
++# This is if you have FreeBSD with its qmail package
++my ($stopqmail) = '%%LOCALBASE%%/etc/rc.d/qmail.sh stop';
++my ($startqmail) = '%%LOCALBASE%%/etc/rc.d/qmail.sh start';
+
+ # If you don't have scripts, leave $stopqmail blank (the process will
+ # be hunted and killed by qmHandle):
+@@ -43,7 +47,10 @@
+ #####
+ # Enter here the system command which returns qmail PID. The following
+ # should work on most Unixes:
+-my ($pidcmd) = 'pidof qmail-send';
++#my ($pidcmd) = 'pidof qmail-send';
++# This is for FreeBSD with a standard qmail installation:
++my ($pidcmd) = 'ps -U qmails | grep qmail-send | cut -s -d " " -f 3';
++
+
+ #################### USER CONFIGURATION END ####################
+
+
+
+