mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Updated to 0.18
- Added new OPTIONS - Fixed pkg-plist PR: ports/108370 Submitted by: Milan Obuch <bsd at dino.sk> (maintainer) Approved by: alexbl (mentor, implicit)
This commit is contained in:
parent
8fe7848586
commit
1bd5efef95
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183556
5 changed files with 48 additions and 26 deletions
|
@ -6,7 +6,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PORTNAME= courier-pythonfilter
|
PORTNAME= courier-pythonfilter
|
||||||
PORTVERSION= 0.16
|
PORTVERSION= 0.18
|
||||||
CATEGORIES= mail python
|
CATEGORIES= mail python
|
||||||
MASTER_SITES= http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/
|
MASTER_SITES= http://phantom.dragonsdawn.net/~gordon/courier-patches/courier-pythonfilter/
|
||||||
|
|
||||||
|
@ -30,8 +30,11 @@ OPTIONS= DEBUG "debug module" on \
|
||||||
NODUPLICATES "noduplicates module" off \
|
NODUPLICATES "noduplicates module" off \
|
||||||
CLAMAV "clamav module" off \
|
CLAMAV "clamav module" off \
|
||||||
AUTO_WHITELIST "auto_whitelist module" off \
|
AUTO_WHITELIST "auto_whitelist module" off \
|
||||||
WHITELIST "whitelist module" on \
|
WHITELIST_RELAY "whitelist_relayclients module" on \
|
||||||
WHITELIST_AUTH "whitelist_auth module" on \
|
WHITELIST_AUTH "whitelist_auth module" on \
|
||||||
|
WHITELIST_BLOCK "whitelist_block module" off \
|
||||||
|
WHITELIST_DNSWL "whitelist_dnswl module" off \
|
||||||
|
WHITELIST_SPF "whitelist_spf module" off \
|
||||||
PRIVATEADDR "privateaddr module" off \
|
PRIVATEADDR "privateaddr module" off \
|
||||||
SPFCHECK "spfcheck module" off \
|
SPFCHECK "spfcheck module" off \
|
||||||
NOSUCCESSDSN "nosuccessdsn module" off \
|
NOSUCCESSDSN "nosuccessdsn module" off \
|
||||||
|
@ -53,7 +56,7 @@ post-extract:
|
||||||
${MV} ${WRKSRC}/pythonfilter.conf ${WRKSRC}/pythonfilter.conf.sample
|
${MV} ${WRKSRC}/pythonfilter.conf ${WRKSRC}/pythonfilter.conf.sample
|
||||||
|
|
||||||
post-configure:
|
post-configure:
|
||||||
@${ECHO_MSG} Creating sample config file based on your OPTIONS ...
|
@${ECHO_MSG} Adding your OPTIONS to sample config file...
|
||||||
.if !defined(WITHOUT_DEBUG)
|
.if !defined(WITHOUT_DEBUG)
|
||||||
@${ECHO_MSG} debug >> ${WRKSRC}/pythonfilter.conf.sample
|
@${ECHO_MSG} debug >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
.endif
|
.endif
|
||||||
|
@ -66,12 +69,21 @@ post-configure:
|
||||||
.if !defined(WITHOUT_AUTO_WHITELIST)
|
.if !defined(WITHOUT_AUTO_WHITELIST)
|
||||||
@${ECHO_MSG} auto_whitelist >> ${WRKSRC}/pythonfilter.conf.sample
|
@${ECHO_MSG} auto_whitelist >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
.endif
|
.endif
|
||||||
.if !defined(WITHOUT_WHITELIST)
|
.if !defined(WITHOUT_WHITELIST_RELAY)
|
||||||
@${ECHO_MSG} whitelist >> ${WRKSRC}/pythonfilter.conf.sample
|
@${ECHO_MSG} whitelist_relayclients >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
.endif
|
.endif
|
||||||
.if !defined(WITHOUT_WHITELIST_AUTH)
|
.if !defined(WITHOUT_WHITELIST_AUTH)
|
||||||
@${ECHO_MSG} whitelist_auth >> ${WRKSRC}/pythonfilter.conf.sample
|
@${ECHO_MSG} whitelist_auth >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
.endif
|
.endif
|
||||||
|
.if defined(WHITELIST_BLOCK)
|
||||||
|
@${ECHO_MSG} whitelist_block >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
|
.endif
|
||||||
|
.if defined(WHITELIST_DNSWL)
|
||||||
|
@${ECHO_MSG} whitelist_dnswl >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
|
.endif
|
||||||
|
.if defined(WHITELIST_SPF)
|
||||||
|
@${ECHO_MSG} whitelist_spf >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
|
.endif
|
||||||
.if defined(WITH_PRIVATEADDR)
|
.if defined(WITH_PRIVATEADDR)
|
||||||
@${ECHO_MSG} privateaddr >> ${WRKSRC}/pythonfilter.conf.sample
|
@${ECHO_MSG} privateaddr >> ${WRKSRC}/pythonfilter.conf.sample
|
||||||
.endif
|
.endif
|
||||||
|
@ -100,6 +112,6 @@ post-configure:
|
||||||
post-install:
|
post-install:
|
||||||
${MKDIR} ${LOCALSTATEDIR}/pythonfilter
|
${MKDIR} ${LOCALSTATEDIR}/pythonfilter
|
||||||
${CHOWN} ${MAILOWN}:${MAILGRP} ${LOCALSTATEDIR}/pythonfilter
|
${CHOWN} ${MAILOWN}:${MAILGRP} ${LOCALSTATEDIR}/pythonfilter
|
||||||
if [ -e ${PREFIX}/etc/pythonfilter.conf ]; then ${CP} -p ${PREFIX}/etc/pythonfilter.conf.sample ${PREFIX}/etc/pythonfilter.conf; fi
|
if [ ! -e ${PREFIX}/etc/pythonfilter.conf ]; then cp -p ${PREFIX}/etc/pythonfilter.conf.sample ${PREFIX}/etc/pythonfilter.conf; fi
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
MD5 (courier-pythonfilter-0.16.tar.gz) = 67998e92c107a1a55099c9c038084a32
|
MD5 (courier-pythonfilter-0.18.tar.gz) = dd245fa5e9cf31c4a52f0fc3dbc27342
|
||||||
SHA256 (courier-pythonfilter-0.16.tar.gz) = d57c675bdcba52dea0fe7b29e8b39902703e05841a315fa2075b2d1ba0f75c14
|
SHA256 (courier-pythonfilter-0.18.tar.gz) = d2bf1a355a606ee111895fee3041be5076ad944b5f21a696a5b3515d430552b5
|
||||||
SIZE (courier-pythonfilter-0.16.tar.gz) = 33160
|
SIZE (courier-pythonfilter-0.18.tar.gz) = 40135
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- pythonfilter.orig Fri Dec 1 19:59:03 2006
|
--- pythonfilter.orig Tue Jan 23 17:30:50 2007
|
||||||
+++ pythonfilter Thu Dec 28 12:44:19 2006
|
+++ pythonfilter Thu Jan 25 19:34:11 2007
|
||||||
@@ -71,17 +71,15 @@
|
@@ -71,17 +71,15 @@
|
||||||
# First, locate and open the configuration file.
|
# First, locate and open the configuration file.
|
||||||
config = None
|
config = None
|
||||||
|
@ -16,9 +16,9 @@
|
||||||
sys.stderr.write('Could not open config file for reading.\n')
|
sys.stderr.write('Could not open config file for reading.\n')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if not config:
|
if not config:
|
||||||
- sys.stderr.write('Could not locate a configuration file in any of: %s\n',
|
- sys.stderr.write('Could not locate a configuration file in any of: %s\n' %
|
||||||
- configDirs)
|
- configDirs)
|
||||||
+ sys.stderr.write('Could not locate a configuration file in %s\n',
|
+ sys.stderr.write('Could not locate a configuration file in %s\n' %
|
||||||
+ configDir)
|
+ configDir)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
# Read the lines from the configuration file and load any module listed
|
# Read the lines from the configuration file and load any module listed
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- pythonfilter.conf.sample.orig Tue Dec 12 07:18:58 2006
|
--- pythonfilter.conf.sample.orig Thu Jan 18 01:49:55 2007
|
||||||
+++ pythonfilter.conf.sample Sun Jan 14 13:48:07 2007
|
+++ pythonfilter.conf.sample Mon Jan 22 12:57:00 2007
|
||||||
@@ -2,7 +2,7 @@
|
@@ -2,7 +2,7 @@
|
||||||
# in this file.
|
# in this file.
|
||||||
|
|
||||||
|
@ -9,16 +9,16 @@
|
||||||
|
|
||||||
# noduplicates: checks for duplicate recipients which may occur due to alias
|
# noduplicates: checks for duplicate recipients which may occur due to alias
|
||||||
# expansion, and removes the duplicates.
|
# expansion, and removes the duplicates.
|
||||||
@@ -16,10 +16,10 @@
|
@@ -17,10 +17,10 @@
|
||||||
# auto_whitelist
|
|
||||||
|
|
||||||
# whitelist: exempts IP addresses for which you relay from further filtering.
|
# whitelist_relayclients: exempts IP addresses for which you relay from
|
||||||
-whitelist
|
# further filtering.
|
||||||
+# whitelist
|
-whitelist_relayclients
|
||||||
|
+# whitelist_relayclients
|
||||||
|
|
||||||
# whitelist_auth: exempts users who authenticate from further filtering.
|
# whitelist_auth: exempts users who authenticate from further filtering.
|
||||||
-whitelist_auth
|
-whitelist_auth
|
||||||
+# whitelist_auth
|
+# whitelist_auth
|
||||||
|
|
||||||
# privateaddr: restricts addresses to specific senders
|
# whitelist_block: exempts IP addresses and networks which have an empty
|
||||||
# privateaddr
|
# BLOCK value in smtpaccess.dat
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@unexec if cmp -s %D/etc/pythonfilter.conf %D/etc/pythonfilter.conf.sample; then rm -f %D/etc/pythonfilter.conf; fi
|
@unexec if cmp -s %D/etc/pythonfilter.conf %D/etc/pythonfilter.conf.sample; then rm -f %D/etc/pythonfilter.conf; fi
|
||||||
etc/pythonfilter.conf.sample
|
etc/pythonfilter.conf.sample
|
||||||
|
@exec if [ ! -e %D/etc/pythonfilter.conf ]; then cp -p %D/etc/pythonfilter.conf.sample %D/etc/pythonfilter.conf; fi
|
||||||
libexec/filters/pythonfilter
|
libexec/filters/pythonfilter
|
||||||
%%PYTHON_SITELIBDIR%%/courier/__init__.py
|
%%PYTHON_SITELIBDIR%%/courier/__init__.py
|
||||||
%%PYTHON_SITELIBDIR%%/courier/__init__.pyc
|
%%PYTHON_SITELIBDIR%%/courier/__init__.pyc
|
||||||
|
@ -58,8 +59,17 @@ libexec/filters/pythonfilter
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.py
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.py
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.pyc
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.pyc
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.pyo
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_auth.pyo
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist.py
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_block.py
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist.pyc
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_block.pyc
|
||||||
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist.pyo
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_block.pyo
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_dnswl.py
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_dnswl.pyc
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_dnswl.pyo
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_relayclients.py
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_relayclients.pyc
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_relayclients.pyo
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_spf.py
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_spf.pyc
|
||||||
|
%%PYTHON_SITELIBDIR%%/pythonfilter/whitelist_spf.pyo
|
||||||
@dirrm %%PYTHON_SITELIBDIR%%/courier
|
@dirrm %%PYTHON_SITELIBDIR%%/courier
|
||||||
@dirrm %%PYTHON_SITELIBDIR%%/pythonfilter
|
@dirrm %%PYTHON_SITELIBDIR%%/pythonfilter
|
||||||
|
|
Loading…
Add table
Reference in a new issue