aboutsummaryrefslogtreecommitdiff
path: root/mail/rbl-milter/files
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-04-07 19:09:33 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-04-07 19:09:33 +0000
commit47051d970cbe0c9754529e38182efb3fd85fbaad (patch)
treee241b568c798730f9c0765dd5947987ee92f6f6b /mail/rbl-milter/files
parent379f7c98923a976bd55e31e503732aa76f363871 (diff)
downloadports-47051d970cbe0c9754529e38182efb3fd85fbaad.tar.gz
ports-47051d970cbe0c9754529e38182efb3fd85fbaad.zip
Notes
Diffstat (limited to 'mail/rbl-milter/files')
-rw-r--r--mail/rbl-milter/files/patch-aa19
-rw-r--r--mail/rbl-milter/files/rbl-milter.sh.in28
2 files changed, 47 insertions, 0 deletions
diff --git a/mail/rbl-milter/files/patch-aa b/mail/rbl-milter/files/patch-aa
new file mode 100644
index 000000000000..c2d886cf2a8d
--- /dev/null
+++ b/mail/rbl-milter/files/patch-aa
@@ -0,0 +1,19 @@
+*** configure.old Fri Nov 22 06:30:28 2002
+--- configure Fri Nov 22 06:30:25 2002
+***************
+*** 1230,1236 ****
+
+ LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm -L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib";
+ CFLAGS="$CFLAGS -Wall -Werror"
+! LIBS="$LIBS -pthread -lpthread"
+
+
+ echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
+--- 1230,1236 ----
+
+ LDFLAGS="$LDFLAGS -L$SENDMAIL_OBJ/libmilter -L$SENDMAIL_OBJ/libsm -L$SENDMAIL_OBJ/libsmutil -L$SENDMAIL_OBJ/lib";
+ CFLAGS="$CFLAGS -Wall -Werror"
+! LIBS="$LIBS -pthread -lc_r"
+
+
+ echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
diff --git a/mail/rbl-milter/files/rbl-milter.sh.in b/mail/rbl-milter/files/rbl-milter.sh.in
new file mode 100644
index 000000000000..2f540d3c7f5c
--- /dev/null
+++ b/mail/rbl-milter/files/rbl-milter.sh.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+if [ ! -f %%PREFIX%%/sbin/rbl-milter ]
+then
+ echo "rbl-milter not installed"
+ exit 0;
+fi
+
+case $1 in
+start)
+ %%PREFIX%%/sbin/rbl-milter -l -r -p local:/var/run/rbl-milter -d relays.ordb.org \
+ && echo -n " rbl-milter" \
+ || echo " rbl-milter FAILED TO START"
+ ;;
+stop)
+ killall rbl-milter && echo -n " rbl-milter"
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ exit 64
+ ;;
+esac
+
+exit 0