summaryrefslogtreecommitdiff
path: root/extra/msmtp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/msmtp/PKGBUILD')
-rw-r--r--extra/msmtp/PKGBUILD36
1 files changed, 23 insertions, 13 deletions
diff --git a/extra/msmtp/PKGBUILD b/extra/msmtp/PKGBUILD
index 9e9aaef60..e7839dd35 100644
--- a/extra/msmtp/PKGBUILD
+++ b/extra/msmtp/PKGBUILD
@@ -1,30 +1,31 @@
-# $Id: PKGBUILD 146283 2012-01-08 05:55:19Z eric $
-# Maintainer: tobias <tobias@archlinux.org>
+# $Id: PKGBUILD 154176 2012-03-23 22:05:03Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
# Contributor: Ben Mazer <blm@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 @@ package() {
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"
+}