Page MenuHomeFreeBSD

D28052.id82072.diff
No OneTemporary

D28052.id82072.diff

Index: mail/Makefile
===================================================================
--- mail/Makefile
+++ mail/Makefile
@@ -615,6 +615,7 @@
SUBDIR += sigrot
SUBDIR += simscan
SUBDIR += slapd-cyrus
+ SUBDIR += slimta
SUBDIR += sma
SUBDIR += smfsav
SUBDIR += smfsav-devel
Index: mail/slimta/Makefile
===================================================================
--- /dev/null
+++ mail/slimta/Makefile
@@ -0,0 +1,32 @@
+# $FreeBSD$
+
+PORTNAME= slimta
+PORTVERSION= 0.7.8
+CATEGORIES= mail
+MASTER_SITES= CHEESESHOP
+
+MAINTAINER= nc@FreeBSD.org
+COMMENT= Configurable MTA based on the python-slimta libraries
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}passlib>0:security/py-passlib@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-slimta>0:mail/py-python-slimta@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+USE_RC_SUBR= ${PORTNAME}
+
+NO_ARCH= yes
+SUB_FILES= pkg-message
+
+post-patch:
+.for file in setup main state
+ @${REINPLACE_CMD} -i '' -e 's|/etc/|${PREFIX}/etc/|' ${WRKSRC}/${PORTNAME}/app/${file}.py
+.endfor
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
+
+.include <bsd.port.mk>
Index: mail/slimta/distinfo
===================================================================
--- /dev/null
+++ mail/slimta/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1609989855
+SHA256 (slimta-0.7.8.tar.gz) = 506ee680f6accd14d48f85faf1ff8a64f53b64be19555077cdff54ba38a70501
+SIZE (slimta-0.7.8.tar.gz) = 17095
Index: mail/slimta/files/pkg-message.in
===================================================================
--- /dev/null
+++ mail/slimta/files/pkg-message.in
@@ -0,0 +1,21 @@
+[
+{ type: install
+ message: <<EOM
+In order to be able to use slimta, you will need to run the following command
+to create the configuration file:
+
+ - slimta-setup config
+
+If you chose a directory other than %%PREFIX%%/etc/slimta, set the directory
+in /etc/rc.conf as follows:
+
+ - sysrc slimta_conf="/path/to/slimta/dir/slimta.yaml"
+
+After running slimta-setup, edit slimta.yaml in the directory you set.
+
+Then, you can enable slimta at startup:
+
+ - sysrc slimta_enable="YES"
+EOM
+}
+]
Index: mail/slimta/files/slimta.in
===================================================================
--- /dev/null
+++ mail/slimta/files/slimta.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: slimta
+# REQUIRE: DAEMON FILESYSTEMS NETWORKING
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable slimta.
+#
+#slimta_enable="YES"
+
+. /etc/rc.subr
+
+name="slimta"
+rcvar="slimta_enable"
+
+load_rc_config $name
+
+: ${slimta_enable:="NO"}
+: ${slimta_conf:="%%PREFIX%%/etc/slimta/slimta.yaml"}
+
+command="%%PREFIX%%/bin/slimta"
+pidfile=/var/run/${name}.pid
+start_cmd="slimta_start"
+
+slimta_start()
+{
+ check_startmsgs && echo "Starting ${name}."
+ /usr/sbin/daemon \
+ -p ${pidfile} \
+ ${command} -c ${slimta_conf}
+}
+
+run_rc_command "$1"
Index: mail/slimta/pkg-descr
===================================================================
--- /dev/null
+++ mail/slimta/pkg-descr
@@ -0,0 +1,5 @@
+The slimta project is a traditional application built on top of the
+python-slimta library. It allows a more "out-of-the-box" MTA that offers
+all the useful, built-in features needed for a normal mail system setup.
+
+WWW: https://www.slimta.org/
Index: mail/slimta/pkg-plist
===================================================================
--- /dev/null
+++ mail/slimta/pkg-plist
@@ -0,0 +1 @@
+@dir etc/slimta

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 20, 1:31 AM (17 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31814202
Default Alt Text
D28052.id82072.diff (3 KB)

Event Timeline