You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.1 KiB

# Maintainer: Hao Zhang <theivorytower [at] gmail [dot] com>
# Based on python2-postfix-policyd-spf PKGBUILD by Filip S. Adamsen <fsa [at] fsadev [dot] com>
# Contributor: Samed Beyribey <ras0ir@eventualis.org>
pkgname=python-postfix-policyd-spf
_pkgname=pypolicyd-spf
pkgver=1.3.2
_pkgver=1.3
pkgrel=2
pkgdesc="Python Postfix Sender Policy Framework (SPF) filter"
arch=('any')
url="https://launchpad.net/pypolicyd-spf/"
license=('GPL')
depends=('postfix' 'python-pyspf' 'python>=3.3')
optdepends=('python-authres: RFC 7001 Authentication-Results header support')
conflicts=('python2-postfix-policyd-spf')
options=(!emptydirs)
backup=(etc/python-policyd-spf/policyd-spf.conf)
source=(https://launchpad.net/$_pkgname/$_pkgver/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('3f064042190dabe2e74300e1118fff94')
build() {
cd "$srcdir/$_pkgname-$pkgver"
python setup.py build || return 1
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
python setup.py install --root=$pkgdir/ --optimize=1 || return 1
install -m644 policyd-spf.conf.commented $pkgdir/etc/python-policyd-spf || return 1
}