diff options
author | root <root@rshg054.dnsready.net> | 2012-03-23 00:01:14 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-23 00:01:14 +0000 |
commit | 1512c792951d7fbd2c9c336f9bf35654bbb85cc6 (patch) | |
tree | d786dcc22bc7f01d7629eb8a07415d2a904fc015 /testing/msmtp | |
parent | 39e662ccfbe62ae77d458159d192816171a22f43 (diff) |
Fri Mar 23 00:01:14 UTC 2012
Diffstat (limited to 'testing/msmtp')
-rw-r--r-- | testing/msmtp/PKGBUILD | 48 | ||||
-rw-r--r-- | testing/msmtp/msmtp.install | 20 |
2 files changed, 68 insertions, 0 deletions
diff --git a/testing/msmtp/PKGBUILD b/testing/msmtp/PKGBUILD new file mode 100644 index 000000000..14ab7906d --- /dev/null +++ b/testing/msmtp/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 153973 2012-03-21 06:27:24Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> +# Contributor: Ben Mazer <blm@groknil.org> + +pkgbase=msmtp +pkgname=('msmtp' 'msmtp-mta') +pkgver=1.4.27 +pkgrel=2 +arch=('i686' 'x86_64') +license=('GPL3') +url="http://msmtp.sourceforge.net" +makedepends=('texlive-core' 'gsasl' 'libgnome-keyring') +source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgbase}-${pkgver}.tar.bz2) +sha1sums=('e335745133b4729fe84c49f836b4d2fa9281e040') + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}" + ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls + make + make -C doc html pdf +} + +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 + +# Installing example configs and scripts to /usr/share/doc/msmtp +# as they are not installed by default (Debian and Gentoo do it this way) + install -d "${pkgdir}/usr/share/doc/msmtp" + cp -r scripts/{find_alias,msmtp-gnome-tool,msmtpqueue,msmtpq,set_sendmail} "${pkgdir}/usr/share/doc/msmtp/" + install -D -m644 doc/*.example "${pkgdir}/usr/share/doc/msmtp/" + + 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" +} diff --git a/testing/msmtp/msmtp.install b/testing/msmtp/msmtp.install new file mode 100644 index 000000000..c4dd76476 --- /dev/null +++ b/testing/msmtp/msmtp.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(msmtp.info) + +post_install() { + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |