[arch-commits] Commit in msmtp/repos (6 files)

Eric Bélanger eric at nymeria.archlinux.org
Thu May 30 04:55:51 UTC 2013


    Date: Thursday, May 30, 2013 @ 06:55:51
  Author: eric
Revision: 186618

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  msmtp/repos/staging-i686/
  msmtp/repos/staging-i686/PKGBUILD
    (from rev 186617, msmtp/trunk/PKGBUILD)
  msmtp/repos/staging-i686/msmtp.install
    (from rev 186617, msmtp/trunk/msmtp.install)
  msmtp/repos/staging-x86_64/
  msmtp/repos/staging-x86_64/PKGBUILD
    (from rev 186617, msmtp/trunk/PKGBUILD)
  msmtp/repos/staging-x86_64/msmtp.install
    (from rev 186617, msmtp/trunk/msmtp.install)

------------------------------+
 staging-i686/PKGBUILD        |   53 +++++++++++++++++++++++++++++++++++++++++
 staging-i686/msmtp.install   |   18 +++++++++++++
 staging-x86_64/PKGBUILD      |   53 +++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/msmtp.install |   18 +++++++++++++
 4 files changed, 142 insertions(+)

Copied: msmtp/repos/staging-i686/PKGBUILD (from rev 186617, msmtp/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2013-05-30 04:55:51 UTC (rev 186618)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
+pkgver=1.4.31
+pkgrel=4
+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=('c0edce1e1951968853f15209c8509699ff9e9ab5')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  sed -i 's|/usr/bin/python|/usr/bin/python2|' scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
+}
+
+build() {
+  cd ${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 ${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')
+  conflicts=('smtp-forwarder')
+
+  install -d "${pkgdir}"/usr/bin
+  ln -s msmtp "${pkgdir}/usr/bin/sendmail"
+}

Copied: msmtp/repos/staging-i686/msmtp.install (from rev 186617, msmtp/trunk/msmtp.install)
===================================================================
--- staging-i686/msmtp.install	                        (rev 0)
+++ staging-i686/msmtp.install	2013-05-30 04:55:51 UTC (rev 186618)
@@ -0,0 +1,18 @@
+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
+}

Copied: msmtp/repos/staging-x86_64/PKGBUILD (from rev 186617, msmtp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2013-05-30 04:55:51 UTC (rev 186618)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
+pkgver=1.4.31
+pkgrel=4
+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=('c0edce1e1951968853f15209c8509699ff9e9ab5')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  sed -i 's|/usr/bin/python|/usr/bin/python2|' scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
+}
+
+build() {
+  cd ${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 ${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')
+  conflicts=('smtp-forwarder')
+
+  install -d "${pkgdir}"/usr/bin
+  ln -s msmtp "${pkgdir}/usr/bin/sendmail"
+}

Copied: msmtp/repos/staging-x86_64/msmtp.install (from rev 186617, msmtp/trunk/msmtp.install)
===================================================================
--- staging-x86_64/msmtp.install	                        (rev 0)
+++ staging-x86_64/msmtp.install	2013-05-30 04:55:51 UTC (rev 186618)
@@ -0,0 +1,18 @@
+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
+}




More information about the arch-commits mailing list