New port: mail/slimta: Configurable MTA based on the python-slimta libraries
Details
Passes poudriere on i386 and amd64.
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
mail/slimta/Makefile | ||
---|---|---|
11 ↗ | (On Diff #82072) | Is LICENSE_FILE available perhaps? |
26 ↗ | (On Diff #82072) |
|
30 ↗ | (On Diff #82072) | Would it also work? BTW, if upstream offers a sample slimta.yaml file you can install it as a sample. |
mail/slimta/files/pkg-message.in | ||
4 ↗ | (On Diff #82072) | We usually try to avoid you in pkg-messages (although I cannot find any documentation codifying that), |
mail/slimta/files/slimta.in | ||
11 ↗ | (On Diff #82072) | Missing space. |
33 ↗ | (On Diff #82072) | It could be that you'd be fine with: procname="%%PREFIX%%/bin/slimta" command="/usr/sbin/daemon" command_args="-p $pidfile $procname -c $slimta_conf" |
mail/slimta/pkg-plist | ||
1 ↗ | (On Diff #82072) | Could you confirm that this is the what make makeplist generates? Also, if it's only one entry, then maybe PLIST_FILES= is a better mechanism in this case. |
Here's an updated diff.
Some highlights:
- There is no license file, so LICENSE_FILE isn't used
- pkg-message.in was removed, since there are sample configuration files
- pkg-plist is used, since I'm installing the sample config files
- Some cleanups in the rc script
Hmm, it seems like both the slimta_start and the slimta_stop functions are simple enough that they could be removed altogether as their default implementations are probably good enough if not better. Am I missing something subtle?
Otherwise, the patch seems fine. We are almost ready to commit.
mail/slimta/Makefile | ||
---|---|---|
35 ↗ | (On Diff #82126) | ${PREFIX}/etc/${PORTNAME} could probably be replaced with ${ETCDIR} |
mail/slimta/files/slimta.in | ||
38 ↗ | (On Diff #82126) | The rc service should support stopping the service if it is not enabled, e.g., when a user issues service slimta onestop. |
41 ↗ | (On Diff #82126) | Would pkill -F ${pidfile} also work? |
Here's an updated diff.
Some highlights:
- I do need a slimta_stop(), but the default slimta_start() works fine
- Using ${ETCDIR} would mean I would end up with etc/py37-slimta, which obviously can't be done
You might need to define command_interpreter. See rc.subr(8).
Let me know if that works.
- Using ${ETCDIR} would mean I would end up with etc/py37-slimta, which obviously can't be done
Ach, good catch!