pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/py-policyd-spf Import pypolicyd-spf version 1.3.2...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8f2c8a21430
branches:  trunk
changeset: 354351:f8f2c8a21430
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Oct 27 12:30:23 2016 +0000

description:
Import pypolicyd-spf version 1.3.2 as mail/py-policyd-spf.

This is python-policyd-spf, an external policy checker for the postfix mail
server.  It will use pyspf to check SPF records to determine if email should
be rejected by your server.

Based on https://github.com/joyent/pkgsrc/pull/421 by Coy Hile.

diffstat:

 mail/py-policyd-spf/DESCR                               |   3 +
 mail/py-policyd-spf/Makefile                            |  44 +++++++++++++++++
 mail/py-policyd-spf/PLIST                               |  15 +++++
 mail/py-policyd-spf/distinfo                            |  11 ++++
 mail/py-policyd-spf/patches/patch-policyd-spf           |  15 +++++
 mail/py-policyd-spf/patches/patch-policyd-spf.1         |  21 ++++++++
 mail/py-policyd-spf/patches/patch-policyd-spf.conf.5    |  24 +++++++++
 mail/py-policyd-spf/patches/patch-policyd-spf.peruser.5 |  24 +++++++++
 mail/py-policyd-spf/patches/patch-setup.py              |  21 ++++++++
 9 files changed, 178 insertions(+), 0 deletions(-)

diffs (214 lines):

diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/DESCR Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,3 @@
+This is python-policyd-spf, an external policy checker for the postfix mail
+server.  It will use pyspf to check SPF records to determine if email should
+be rejected by your server.
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/Makefile      Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+VERSION=       1.3.2
+DISTNAME=      pypolicyd-spf-${VERSION}
+PKGNAME=       ${PYPKGPREFIX}-policyd-spf-${VERSION}
+CATEGORIES=    mail python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pypolicyd-spf/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://pypi.python.org/pypi/pypolicyd-spf
+COMMENT=       Python based policy daemon for Postfix SPF checking
+LICENSE=       apache-2.0
+
+DEPENDS+=      ${PYPKGPREFIX}-ipaddr>0:../../devel/py-ipaddr
+DEPENDS+=      ${PYPKGPREFIX}-authres>0:../../mail/py-authres
+DEPENDS+=      ${PYPKGPREFIX}-spf>0:../../mail/py-spf
+
+PYTHON_VERSIONS_ACCEPTED=      27 # py-ipaddr, py-spf
+
+DOCDIR=                        share/doc/${PKGBASE}
+EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
+PKG_SYSCONFSUBDIR=     python-policyd-spf
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     policyd-spf policyd-spf.1 policyd-spf.conf.5
+SUBST_FILES.paths+=    policyd-spf.peruser.5 setup.py
+SUBST_VARS.paths=      PKGMANDIR PKG_SYSCONFDIR
+
+INSTALLATION_DIRS=     ${DOCDIR} ${EGDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
+
+CONF_FILES=            ${EGDIR}/policyd-spf.conf ${PKG_SYSCONFDIR}/policyd-spf.conf
+
+PLIST_SUBST+=          DOCDIR=${DOCDIR:Q} PKGBASE=${PKGBASE:Q}
+PRINT_PLIST_AWK+=      { gsub(/${DOCDIR:S|/|\\/|g}/, "$${DOCDIR}"); }
+PRINT_PLIST_AWK+=      { gsub(/${PKGBASE}/, "$${PKGBASE}"); }
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/README.per_user_whitelisting ${DESTDIR}${PREFIX}/${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/policyd-spf.conf.commented ${DESTDIR}${EGDIR}/policyd-spf.conf
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/PLIST Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+bin/policyd-spf
+${PYSITELIB}/policydspfsupp.py
+${PYSITELIB}/policydspfsupp.pyc
+${PYSITELIB}/policydspfsupp.pyo
+${PYSITELIB}/policydspfuser.py
+${PYSITELIB}/policydspfuser.pyc
+${PYSITELIB}/policydspfuser.pyo
+${PYSITELIB}/${EGG_FILE}
+man/man1/policyd-spf.1
+man/man5/policyd-spf.conf.5
+man/man5/policyd-spf.peruser.5
+${DOCDIR}/README
+${DOCDIR}/README.per_user_whitelisting
+share/examples/${PKGBASE}/policyd-spf.conf
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/distinfo      Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+SHA1 (pypolicyd-spf-1.3.2.tar.gz) = 607d3a7df6d6c5d19edd7c337ba2e0c143ff3499
+RMD160 (pypolicyd-spf-1.3.2.tar.gz) = ce85a3201990f9b57eb21e8f02b666a5987e6bbd
+SHA512 (pypolicyd-spf-1.3.2.tar.gz) = e80b13a0cf9f8406592db5edcb9770051352b3f637d4d9d5bd96295710bf3728a8350c0697e5b430698b0d9d226c83c9decb67923ed5cdb3502ee15509715af4
+Size (pypolicyd-spf-1.3.2.tar.gz) = 32973 bytes
+SHA1 (patch-policyd-spf) = 43a3ac8491d6120e26c994d696c4143adf0749bc
+SHA1 (patch-policyd-spf.1) = 21363210a9e45978074bc1f59c545c85e5181d7e
+SHA1 (patch-policyd-spf.conf.5) = fa549a2dd726f6a5894c2c4e494136d9860624fb
+SHA1 (patch-policyd-spf.peruser.5) = e3e831a41254b58b04649f9a6ecfe5df22568135
+SHA1 (patch-setup.py) = f0e60162372248595f508ea921c8ccc4d151459c
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/patches/patch-policyd-spf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/patches/patch-policyd-spf     Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-policyd-spf,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+Use pkgsrc layout.
+
+--- policyd-spf.orig   2015-08-13 02:45:08.000000000 +0000
++++ policyd-spf
+@@ -651,7 +651,7 @@ def _spfcheck(data, instance_dict, confi
+ ###################################################
+ #  load config file  {{{1
+ #  Default location:
+-configFile = '/etc/python-policyd-spf/policyd-spf.conf'
++configFile = '@PKG_SYSCONFDIR@/policyd-spf.conf'
+ if len(sys.argv) > 1:
+     if sys.argv[1] in ( '-?', '--help', '-h' ):
+         print('usage: policyd-spf [<configfilename>]')
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/patches/patch-policyd-spf.1
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/patches/patch-policyd-spf.1   Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-policyd-spf.1,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+Use pkgsrc layout.
+
+--- policyd-spf.1.orig 2014-06-04 06:01:49.000000000 +0000
++++ policyd-spf.1
+@@ -145,12 +145,12 @@ $ policyd-spf (Start using installed con
+ 
+ $ policyd-spf \-h (Display usage message)
+ 
+-$ policyd-spf /etc/policyd-spf/policyd-spf.conf (Config file name to use)
++$ policyd-spf @PKG_SYSCONFDIR@/policyd-spf.conf (Config file name to use)
+ 
+ Configuration options are described in the sample configuration file provided
+ with the package (policyd-spf.conf.commented) and in policyd-spf.conf(5).  The
+ provided setup.py installs an uncommented configuration file in 
+-/etc/policyd-spf/.
++@PKG_SYSCONFDIR@/.
+ 
+ Additionally, whitelisting certain IP addresses or IP addresses used by listed
+ domains from SPF checks is supported.  Skipping SPF checks for local submission
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/patches/patch-policyd-spf.conf.5
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/patches/patch-policyd-spf.conf.5      Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-policyd-spf.conf.5,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+Use pkgsrc layout.
+
+--- policyd-spf.conf.5.orig    2014-06-04 06:01:49.000000000 +0000
++++ policyd-spf.conf.5
+@@ -138,7 +138,7 @@ python-policyd-spf \- pure-Python Postfi
+ .SH "USAGE"
+ .IX Header "USAGE"
+ Usage:
+-  policyd-spf [/etc/policyd-spf/policyd-spf.conf]
++  policyd-spf [@PKG_SYSCONFDIR@/policyd-spf.conf]
+ 
+ .SH "OTHER DOCUMENTATION"
+ .IX Header "OTHER DOCUMENTATION"
+@@ -166,7 +166,7 @@ file.
+ 
+ Configuration options are described here and in the configuration file 
+ provided with the package.  The provided setup.py installs this configuration 
+-file in /etc/policyd-spf/.
++file in @PKG_SYSCONFDIR@/.
+ 
+ Additionally, whitelisting certain IP addresses from SPF checks is supported.
+ This man page and the sample configuration file show the format to use.
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/patches/patch-policyd-spf.peruser.5
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/patches/patch-policyd-spf.peruser.5   Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-policyd-spf.peruser.5,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+Use pkgsrc layout.
+
+--- policyd-spf.peruser.5.orig 2014-06-04 06:01:49.000000000 +0000
++++ policyd-spf.peruser.5
+@@ -138,7 +138,7 @@ python-policyd-spf \- pure-Python Postfi
+ .SH "USAGE"
+ .IX Header "USAGE"
+ Usage:
+-  policyd-spf [/etc/policyd-spf/policyd-spf.conf]
++  policyd-spf [@PKG_SYSCONFDIR@/policyd-spf.conf]
+ 
+ .SH "OTHER DOCUMENTATION"
+ .IX Header "OTHER DOCUMENTATION"
+@@ -199,7 +199,7 @@ The text file option is useful for testi
+ users require per-user configurations.  It is specified in the main
+ configuration file:
+ 
+-"Per_User = text,/etc/pypolicyd-spf/userconf"
++"Per_User = text,@PKG_SYSCONFDIR@/userconf"
+ 
+ Lines beginning with "#" are treated as comments and ignored.  The location of
+ the file is determined by the system administrator. No default file is
diff -r 583a13ead54f -r f8f2c8a21430 mail/py-policyd-spf/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/py-policyd-spf/patches/patch-setup.py        Thu Oct 27 12:30:23 2016 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-setup.py,v 1.1 2016/10/27 12:30:23 jperkin Exp $
+
+Use pkgsrc layout.
+
+--- setup.py.orig      2015-08-12 19:53:43.000000000 +0000
++++ setup.py
+@@ -13,11 +13,9 @@ setup(name='pypolicyd-spf',
+       py_modules=['policydspfsupp', 'policydspfuser'],
+       keywords = ['Postfix','spf','email'],
+       scripts = ['policyd-spf'],
+-      data_files=[(os.path.join('share', 'man', 'man1'),
+-          ['policyd-spf.1']), (os.path.join('share', 'man', 'man5'),
+-          ['policyd-spf.conf.5']), (os.path.join('/etc', 'python-policyd-spf'),
+-          ['policyd-spf.conf']), (os.path.join('share', 'man', 'man5'),
+-          ['policyd-spf.peruser.5'])],
++      data_files=[(os.path.join('@PKGMANDIR@', 'man1'), ['policyd-spf.1']),
++                  (os.path.join('@PKGMANDIR@', 'man5'), ['policyd-spf.conf.5']),
++                  (os.path.join('@PKGMANDIR@', 'man5'), ['policyd-spf.peruser.5'])],
+       classifiers = [
+         'Development Status :: 5 - Production/Stable',
+         'Environment :: No Input/Output (Daemon)',



Home | Main Index | Thread Index | Old Index