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

Tobias Kieslich tobias at archlinux.org
Mon Nov 10 05:47:38 UTC 2008


    Date: Monday, November 10, 2008 @ 00:47:38
  Author: tobias
Revision: 18900

upgpkg: msmtp 1.4.16-2
    Added an install file and deal with info files

Added:
  msmtp/trunk/msmtp.install
Modified:
  msmtp/trunk/PKGBUILD

---------------+
 PKGBUILD      |    4 +++-
 msmtp.install |   20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-11-10 05:32:07 UTC (rev 18899)
+++ PKGBUILD	2008-11-10 05:47:38 UTC (rev 18900)
@@ -4,7 +4,7 @@
 
 pkgname=msmtp
 pkgver=1.4.16
-pkgrel=1
+pkgrel=2
 pkgdesc="a mini smtp client"
 arch=(i686 x86_64)
 license=('GPL2')
@@ -12,6 +12,7 @@
 depends=('gnutls>=2.4.1' 'libidn')
 provides=('smtp-forwarder')
 source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgname}-${pkgver}.tar.bz2)
+install=${pkgname}.install
 md5sums=('77a333601e9de03f695539498e678cc2')
 
 build() {
@@ -19,6 +20,7 @@
   ./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls || return 1
   make || return 1
   make DESTDIR=${startdir}/pkg install || return 1
+  rm -f ${startdir}/pkg/usr/share/info/dir
   # this can not be the default
   #install -Dm644 doc/msmtprc-system.example $startdir/pkg/etc/msmtprc
 }

Added: msmtp.install
===================================================================
--- msmtp.install	                        (rev 0)
+++ msmtp.install	2008-11-10 05:47:38 UTC (rev 18900)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(msmtp.info)
+
+post_install() {
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list