freebsd-ports/mail/milter-spamc/pkg-plist
Clive Lin 5cfe4ba8ca Add milter-spamc, a bridge between spamc from SpamAssassin and
sendmail. The libsnert stuff mentioned in the PR is not addressed
in this commit, since it is not a run time dependency, and is
strictly coupled with milter-spamc itself.

PR:		ports/71486
Submitted by:	Michael O. Boev <mike@tric.tomsk.gov.ru>
2004-10-14 10:16:14 +00:00

34 lines
1.8 KiB
Text

@unexec if [ -f %D/etc/rc.d/milter-spamc.sh ] && cmp -s %D/etc/rc.d/milter-spamc.sh %D/etc/rc.d/milter-spamc.sh.sample; then rm -f %D/etc/rc.d/milter-spamc.sh; fi
etc/rc.d/milter-spamc.sh.sample
@exec if [ ! -f %D/etc/rc.d/milter-spamc.sh ] ; then cp %D/%F %B/milter-spamc.sh; fi
sbin/milter-spamc
@exec install -d -o smmsp -g smmsp -m 755 /var/spool/milter-spamc
@unexec rm -rf /var/spool/milter-spamc 2>&1 >/dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.TXT
%%PORTDOCS%%%%DOCSDIR%%/Img/bg.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert2003071742312.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert2003228690821.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert20040429.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/mrpixel.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/overview.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sendmail-bat-left-142x38.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sendmail-bat-right-142x38.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sun.gif
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.TXT
%%PORTDOCS%%%%DOCSDIR%%/index.shtml
%%PORTDOCS%%%%DOCSDIR%%/mailto.js
%%PORTDOCS%%%%DOCSDIR%%/style.css
@unexec echo
@unexec echo "If permanently deleting this package, don't forget to delete"
@unexec echo "the inclusion of milter-spamc.mc from /etc/mail/YOUR-CONF.mc"
@unexec echo "and then to rebuild and reinstall the sendmail configuration file!"
@unexec echo
%%PORTDOCS%%@dirrm %%DOCSDIR%%/Img
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@cwd /
@unexec if [ -f %D/etc/mail/milter-spamc.mc ] && cmp -s %D/etc/mail/milter-spamc.mc %D/etc/mail/milter-spamc.mc.sample; then rm -f %D/etc/mail/milter-spamc.mc; fi
etc/mail/milter-spamc.mc.sample
@exec if [ ! -f %D/etc/mail/milter-spamc.mc ] ; then cp %D/%F %B/milter-spamc.mc; fi
@exec touch %D/etc/mail/access.db %D/etc/mail/aliases.db
@exec chgrp smmsp %D/etc/mail/access.db %D/etc/mail/aliases.db
@exec chmod g+r %D/etc/mail/access.db %D/etc/mail/aliases.db