[arch-commits] Commit in mailutils/repos (8 files)
Andreas Radke
andyrtr at archlinux.org
Fri Apr 17 21:24:30 UTC 2015
Date: Friday, April 17, 2015 @ 23:24:30
Author: andyrtr
Revision: 131566
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
mailutils/repos/community-staging-i686/
mailutils/repos/community-staging-i686/PKGBUILD
(from rev 131565, mailutils/trunk/PKGBUILD)
mailutils/repos/community-staging-i686/gnutls.patch
(from rev 131565, mailutils/trunk/gnutls.patch)
mailutils/repos/community-staging-i686/mailutils.install
(from rev 131565, mailutils/trunk/mailutils.install)
mailutils/repos/community-staging-x86_64/
mailutils/repos/community-staging-x86_64/PKGBUILD
(from rev 131565, mailutils/trunk/PKGBUILD)
mailutils/repos/community-staging-x86_64/gnutls.patch
(from rev 131565, mailutils/trunk/gnutls.patch)
mailutils/repos/community-staging-x86_64/mailutils.install
(from rev 131565, mailutils/trunk/mailutils.install)
--------------------------------------------+
community-staging-i686/PKGBUILD | 42 +++++++++++++++++++++++++++
community-staging-i686/gnutls.patch | 25 ++++++++++++++++
community-staging-i686/mailutils.install | 20 ++++++++++++
community-staging-x86_64/PKGBUILD | 42 +++++++++++++++++++++++++++
community-staging-x86_64/gnutls.patch | 25 ++++++++++++++++
community-staging-x86_64/mailutils.install | 20 ++++++++++++
6 files changed, 174 insertions(+)
Copied: mailutils/repos/community-staging-i686/PKGBUILD (from rev 131565, mailutils/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=mailutils
+pkgver=2.99.98
+pkgrel=2
+pkgdesc="MUA command line tool (mailx)"
+arch=(i686 x86_64)
+url="http://www.gnu.org/software/mailutils/"
+license=('GPL')
+depends=('libldap' 'pam' 'gnutls')
+makedepends=('emacs')
+install=mailutils.install
+options=(zipman !emptydirs)
+source=(http://alpha.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.xz
+ gnutls.patch)
+md5sums=('7d87795ff24afa966ad5d6785f974141'
+ 'd9491cbf1aad93fccb058cf56e9063a9')
+
+prepare() {
+ cd "$srcdir/mailutils-$pkgver"
+ patch -p1 <$srcdir/gnutls.patch
+}
+
+build() {
+ cd "$srcdir/mailutils-$pkgver"
+ ./configure --prefix=/usr --with-gdbm --with-gnutls \
+ --libexecdir=/usr/lib/$pkgname --without-fribidi \
+ --without-tcp-wrappers --sbindir=/usr/bin \
+ --without-python --without-guile
+ make
+}
+
+package() {
+ cd "$srcdir/mailutils-$pkgver"
+ make -j1 DESTDIR=$pkgdir install
+ rm -f $pkgdir/usr/share/info/dir
+ mv $pkgdir/usr/bin/mail $pkgdir/usr/bin/gnu-mail
+ mv $pkgdir/usr/share/man/man1/mail.1 $pkgdir/usr/share/man/man1/gnu-mail.1
+ chown -R root:root $pkgdir
+}
Copied: mailutils/repos/community-staging-i686/gnutls.patch (from rev 131565, mailutils/trunk/gnutls.patch)
===================================================================
--- community-staging-i686/gnutls.patch (rev 0)
+++ community-staging-i686/gnutls.patch 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,25 @@
+diff -wbBur mailutils-2.99.98.org/libmu_auth/tls.c mailutils-2.99.98/libmu_auth/tls.c
+--- mailutils-2.99.98.org/libmu_auth/tls.c 2012-01-05 22:21:42.000000000 +0400
++++ mailutils-2.99.98/libmu_auth/tls.c 2015-04-16 16:00:39.803642048 +0300
+@@ -428,20 +428,9 @@
+ struct _mu_tls_stream *sp = (struct _mu_tls_stream *) stream;
+ int rc;
+ mu_transport_t transport[2];
+- static int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0};
+- static int kx_priority[] = {GNUTLS_KX_RSA, 0};
+- static int cipher_priority[] = {GNUTLS_CIPHER_3DES_CBC,
+- GNUTLS_CIPHER_ARCFOUR_128,
+- 0};
+- static int comp_priority[] = {GNUTLS_COMP_NULL, 0};
+- static int mac_priority[] = {GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0};
+
+ gnutls_init (&sp->session, GNUTLS_CLIENT);
+- gnutls_protocol_set_priority (sp->session, protocol_priority);
+- gnutls_cipher_set_priority (sp->session, cipher_priority);
+- gnutls_compression_set_priority (sp->session, comp_priority);
+- gnutls_kx_set_priority (sp->session, kx_priority);
+- gnutls_mac_set_priority (sp->session, mac_priority);
++ gnutls_set_default_priority (sp->session);
+
+ gnutls_certificate_allocate_credentials (&x509_cred);
+ if (mu_tls_module_config.ssl_cafile)
Copied: mailutils/repos/community-staging-i686/mailutils.install (from rev 131565, mailutils/trunk/mailutils.install)
===================================================================
--- community-staging-i686/mailutils.install (rev 0)
+++ community-staging-i686/mailutils.install 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(mailutils.info mailutils.info-1 mailutils.info-2)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
Copied: mailutils/repos/community-staging-x86_64/PKGBUILD (from rev 131565, mailutils/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=mailutils
+pkgver=2.99.98
+pkgrel=2
+pkgdesc="MUA command line tool (mailx)"
+arch=(i686 x86_64)
+url="http://www.gnu.org/software/mailutils/"
+license=('GPL')
+depends=('libldap' 'pam' 'gnutls')
+makedepends=('emacs')
+install=mailutils.install
+options=(zipman !emptydirs)
+source=(http://alpha.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.xz
+ gnutls.patch)
+md5sums=('7d87795ff24afa966ad5d6785f974141'
+ 'd9491cbf1aad93fccb058cf56e9063a9')
+
+prepare() {
+ cd "$srcdir/mailutils-$pkgver"
+ patch -p1 <$srcdir/gnutls.patch
+}
+
+build() {
+ cd "$srcdir/mailutils-$pkgver"
+ ./configure --prefix=/usr --with-gdbm --with-gnutls \
+ --libexecdir=/usr/lib/$pkgname --without-fribidi \
+ --without-tcp-wrappers --sbindir=/usr/bin \
+ --without-python --without-guile
+ make
+}
+
+package() {
+ cd "$srcdir/mailutils-$pkgver"
+ make -j1 DESTDIR=$pkgdir install
+ rm -f $pkgdir/usr/share/info/dir
+ mv $pkgdir/usr/bin/mail $pkgdir/usr/bin/gnu-mail
+ mv $pkgdir/usr/share/man/man1/mail.1 $pkgdir/usr/share/man/man1/gnu-mail.1
+ chown -R root:root $pkgdir
+}
Copied: mailutils/repos/community-staging-x86_64/gnutls.patch (from rev 131565, mailutils/trunk/gnutls.patch)
===================================================================
--- community-staging-x86_64/gnutls.patch (rev 0)
+++ community-staging-x86_64/gnutls.patch 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,25 @@
+diff -wbBur mailutils-2.99.98.org/libmu_auth/tls.c mailutils-2.99.98/libmu_auth/tls.c
+--- mailutils-2.99.98.org/libmu_auth/tls.c 2012-01-05 22:21:42.000000000 +0400
++++ mailutils-2.99.98/libmu_auth/tls.c 2015-04-16 16:00:39.803642048 +0300
+@@ -428,20 +428,9 @@
+ struct _mu_tls_stream *sp = (struct _mu_tls_stream *) stream;
+ int rc;
+ mu_transport_t transport[2];
+- static int protocol_priority[] = {GNUTLS_TLS1, GNUTLS_SSL3, 0};
+- static int kx_priority[] = {GNUTLS_KX_RSA, 0};
+- static int cipher_priority[] = {GNUTLS_CIPHER_3DES_CBC,
+- GNUTLS_CIPHER_ARCFOUR_128,
+- 0};
+- static int comp_priority[] = {GNUTLS_COMP_NULL, 0};
+- static int mac_priority[] = {GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0};
+
+ gnutls_init (&sp->session, GNUTLS_CLIENT);
+- gnutls_protocol_set_priority (sp->session, protocol_priority);
+- gnutls_cipher_set_priority (sp->session, cipher_priority);
+- gnutls_compression_set_priority (sp->session, comp_priority);
+- gnutls_kx_set_priority (sp->session, kx_priority);
+- gnutls_mac_set_priority (sp->session, mac_priority);
++ gnutls_set_default_priority (sp->session);
+
+ gnutls_certificate_allocate_credentials (&x509_cred);
+ if (mu_tls_module_config.ssl_cafile)
Copied: mailutils/repos/community-staging-x86_64/mailutils.install (from rev 131565, mailutils/trunk/mailutils.install)
===================================================================
--- community-staging-x86_64/mailutils.install (rev 0)
+++ community-staging-x86_64/mailutils.install 2015-04-17 21:24:30 UTC (rev 131566)
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(mailutils.info mailutils.info-1 mailutils.info-2)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ 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