summaryrefslogtreecommitdiff
path: root/pcr/python2-postfix-policyd-spf/PKGBUILD
blob: 0de525d1abb89b814306bd5ff3c77682bb0e1bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Thomas Haider <t.haider@deprecate.de>
# Contributer: Rich Li <rich@dranek.com>
# Contributer: Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: Samed Beyribey <ras0ir@eventualis.org>
pkgname=python2-postfix-policyd-spf
_pypkgname=pypolicyd-spf
pkgver=1.3.1
pkgrel=1
pkgdesc="Python2 Postfix Sender Policy Framework (SPF) filter"
arch=('any')
url="http://www.openspf.org/Software"
license=('Apache')
depends=('python2-pyspf' 'python2' 'python2-ipaddr')
optdepends=('python2-authres: support Authentication-Results headers')
conflicts=('python-postfix-policyd-spf')
options=(!emptydirs)
backup=(etc/python-policyd-spf/policyd-spf.conf)
source=(http://launchpad.net/pypolicyd-spf/1.3/$pkgver/+download/$_pypkgname-$pkgver.tar.gz)
sha256sums=('5b575638e3d30db5583ed4e3c0902b9a6d90ba7e126a9d37b9bffe2e6b201808')
 
build() {
  cd "$srcdir/$_pypkgname-$pkgver"
  python2 setup.py build
}

package() {
  cd "$srcdir/$_pypkgname-$pkgver"
  python2 setup.py install --root="$pkgdir/" --optimize=1
  install -m644 -D policyd-spf.conf.commented $pkgdir/etc/python-policyd-spf
}

# vim:set ts=2 sw=2 et: