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

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