PKGBUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
  2. # Contributor: Loui Chang <louipc dot ist at gmail company>
  3. # Contributor: Jeff Mickey <j@codemac.net>
  4. # Contributor: Aaron Griffin <aaron@archlinux.org>
  5. _pkgname=esmtp
  6. pkgver=1.2
  7. pkgname=$_pkgname-lukeshu
  8. provides=($_pkgname=$pkgver)
  9. conflicts=($_pkgname)
  10. pkgrel=6
  11. pkgdesc="An easy SMTP forwarder."
  12. arch=('i686' 'x86_64')
  13. url='http://esmtp.sourceforge.net'
  14. url='https://git.lukeshu.com/esmtp/'
  15. license=('GPL')
  16. depends=('libesmtp-lukeshu' 'openssl')
  17. optdepends=('liblockfile: for esmtp-wrapper script'
  18. 'procmail: for local mail delivery')
  19. provides=('smtp-forwarder')
  20. conflicts=('smtp-forwarder')
  21. source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2"
  22. "0001-Produce-more-useful-Invalid-peer-certificate-error-m.patch")
  23. md5sums=('79a9c1f9023d53f35bb82bf446150a72'
  24. '799571f0b37f85f60928e32e03afdf51')
  25. prepare() {
  26. cd "${srcdir}/${_pkgname}-${pkgver}"
  27. patch -Np1 -i ../0001-Produce-more-useful-Invalid-peer-certificate-error-m.patch
  28. }
  29. build() {
  30. cd "${srcdir}/${_pkgname}-${pkgver}"
  31. ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
  32. make
  33. }
  34. package() {
  35. cd "${srcdir}/${_pkgname}-${pkgver}"
  36. make DESTDIR="${pkgdir}" install
  37. install -Dm0644 README "${pkgdir}/usr/share/doc/esmtp/README"
  38. install -Dm0644 sample.esmtprc "${pkgdir}/usr/share/doc/esmtp/sample.esmtprc"
  39. install -Dm0755 esmtp-wrapper "${pkgdir}/usr/share/esmtp/esmtp-wrapper"
  40. install -Dm0755 ylwrap "${pkgdir}/usr/share/esmtp/ylwrap"
  41. }