[arch-commits] Commit in msmtp/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Wed Mar 21 02:25:47 EDT 2012


    Date: Wednesday, March 21, 2012 @ 02:25:46
  Author: eric
Revision: 153972

upgpkg: msmtp 1.4.27-2

Add msmtp-mta package to provide sendmail symlink (close FS#23287), Add SASL support (close FS#24779), Add gnome-keyring support (close FS#27435)

Modified:
  msmtp/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-21 06:21:09 UTC (rev 153971)
+++ PKGBUILD	2012-03-21 06:25:46 UTC (rev 153972)
@@ -1,30 +1,31 @@
 # $Id$
-# Maintainer: tobias <tobias at archlinux.org>
+# Maintainer: Eric Bélanger <eric at archlinux.org>
 # Contributor: Ben Mazer <blm at groknil.org>
 
-pkgname=msmtp
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
 pkgver=1.4.27
-pkgrel=1
-pkgdesc="A mini smtp client"
+pkgrel=2
 arch=('i686' 'x86_64')
 license=('GPL3')
 url="http://msmtp.sourceforge.net"
-depends=('gnutls' 'libidn')
-makedepends=('texlive-core')
-provides=('smtp-forwarder')
-install=msmtp.install
-source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgname}-${pkgver}.tar.bz2)
+makedepends=('texlive-core' 'gsasl' 'libgnome-keyring')
+source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgbase}-${pkgver}.tar.bz2)
 sha1sums=('e335745133b4729fe84c49f836b4d2fa9281e040')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${pkgbase}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls
   make
   make -C doc html pdf
 }
 
-package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+package_msmtp() {
+  pkgdesc="A mini smtp client"
+  depends=('gsasl' 'libgnome-keyring')
+  install=msmtp.install
+
+  cd "${srcdir}/${pkgbase}-${pkgver}"
   make DESTDIR="${pkgdir}" install 
   make DESTDIR="${pkgdir}" -C doc install-html install-pdf
 
@@ -36,3 +37,12 @@
 
   install -D -m644 scripts/vim/msmtp.vim "${pkgdir}/usr/share/vim/vimfiles/syntax/msmtp.vim"
 }
+
+package_msmtp-mta() {
+  pkgdesc="A mini smtp client - the regular MTA"
+  depends=('msmtp')
+  provides=('smtp-forwarder')
+
+  install -d "${pkgdir}/usr/sbin"
+  ln -s /usr/bin/msmtp "${pkgdir}/usr/sbin/sendmail"
+}



More information about the arch-commits mailing list