diff options
Diffstat (limited to 'mail-filter/milter-regex/files')
3 files changed, 65 insertions, 0 deletions
diff --git a/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch b/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch new file mode 100644 index 000000000000..14efd964f843 --- /dev/null +++ b/mail-filter/milter-regex/files/milter-regex-2.2-gentoo.patch @@ -0,0 +1,38 @@ +--- a/Makefile.linux 2011-07-16 16:51:34.000000000 +0300 ++++ a/Makefile.linux 2012-08-05 18:15:30.906378968 +0300 +@@ -6,28 +6,27 @@ + # see milter-regex.init for an init script for RedHat/Fedora + # (contributed by admin@2ka.mipt.ru) + +-CFLAGS= -g +-LDFLAGS= -L/usr/lib/libmilter -lmilter -lpthread ++LIBS= -lmilter -lpthread + + all: milter-regex milter-regex.cat8 + + milter-regex: milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o +- gcc -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LDFLAGS) ++ $(CC) $(LDFLAGS) -o milter-regex milter-regex.o eval.o strlcat.o strlcpy.o y.tab.o $(LIBS) + + milter-regex.o: milter-regex.c eval.h +- gcc $(CFLAGS) -c milter-regex.c ++ $(CC) $(CFLAGS) -c milter-regex.c + + eval.o: eval.c eval.h +- gcc $(CFLAGS) -c eval.c ++ $(CC) $(CFLAGS) -c eval.c + + strlcat.o: strlcat.c +- gcc $(CFLAGS) -c strlcat.c ++ $(CC) $(CFLAGS) -c strlcat.c + + strlcpy.o: strlcpy.c +- gcc $(CFLAGS) -c strlcpy.c ++ $(CC) $(CFLAGS) -c strlcpy.c + + y.tab.o: y.tab.c +- gcc $(CFLAGS) -c y.tab.c ++ $(CC) $(CFLAGS) -c y.tab.c + + y.tab.c: parse.y + yacc -d parse.y diff --git a/mail-filter/milter-regex/files/milter-regex-conf-2.2 b/mail-filter/milter-regex/files/milter-regex-conf-2.2 new file mode 100644 index 000000000000..382a5fe1d978 --- /dev/null +++ b/mail-filter/milter-regex/files/milter-regex-conf-2.2 @@ -0,0 +1,13 @@ +# Config file. +MR_CONF="/etc/milter-regex.conf" + +# Process and socket owner, socket group, socket permissions. +MR_USER="milter" +MR_GROUP="milter" +MR_PERM="0660" + +MR_RUNDIR="/run/milter-regex" +MR_SOCKET="${MR_RUNDIR}/socket" + +# Additional options for logging etc. +MR_OPTS="" diff --git a/mail-filter/milter-regex/files/milter-regex-init-2.2 b/mail-filter/milter-regex/files/milter-regex-init-2.2 new file mode 100644 index 000000000000..57c5988babb1 --- /dev/null +++ b/mail-filter/milter-regex/files/milter-regex-init-2.2 @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/milter-regex" +command_args="-c ${MR_CONF} -u ${MR_USER} -p unix:${MR_SOCKET} -P ${MR_PERM} -U ${MR_USER} -G ${MR_GROUP} ${MR_OPTS}" + +depend() { + before postfix sendmail +} + +start_pre() { + checkpath --directory --mode 0755 --owner ${MR_USER}:${MR_GROUP} ${MR_RUNDIR} +} |