summaryrefslogtreecommitdiff
path: root/extra/most
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-07 23:14:52 +0000
committerroot <root@rshg054.dnsready.net>2011-12-07 23:14:52 +0000
commit6f9a9504db6338f0c35c4ca70bad42965b74791a (patch)
tree8cd9006f99ed08350063a734502b77e1d0ee7db4 /extra/most
parent8736f458a17a03cf79a763a0c8122f93162fed71 (diff)
Wed Dec 7 23:14:52 UTC 2011
Diffstat (limited to 'extra/most')
-rw-r--r--extra/most/PKGBUILD18
-rw-r--r--extra/most/most-leak-fd.patch14
2 files changed, 25 insertions, 7 deletions
diff --git a/extra/most/PKGBUILD b/extra/most/PKGBUILD
index 0cea27712..6d91e7d02 100644
--- a/extra/most/PKGBUILD
+++ b/extra/most/PKGBUILD
@@ -1,23 +1,27 @@
-# $Id: PKGBUILD 125648 2011-05-27 17:52:54Z stephane $
-# Maintainer: juergen <juergen@archlinux.org>
+# $Id: PKGBUILD 144477 2011-12-06 14:33:19Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: juergen <juergen@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=most
pkgver=5.0.0a
-pkgrel=3
+pkgrel=4
pkgdesc="A terminal pager similar to 'more' and 'less'"
arch=('i686' 'x86_64')
depends=('slang')
license=('GPL')
-url="ftp://space.mit.edu/pub/davis/most/"
-source=(ftp://space.mit.edu/pub/davis/${pkgname}/${pkgname}-${pkgver}.tar.gz most-debian.patch)
+url="http://www.jedsoft.org/most/index.html"
+source=(ftp://space.mit.edu/pub/davis/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ most-debian.patch
+ most-leak-fd.patch)
sha1sums=('99eedb7169754b9a47c7755ac48949d76531e3b2'
- '937796040c69bae3bf735fa3cd734775c582e7d0')
-
+ '937796040c69bae3bf735fa3cd734775c582e7d0'
+ 'c5713e1278febdd0ed434e6e3044feb220b5d525')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i ../most-debian.patch
+ patch -Np1 -i ../most-leak-fd.patch
./configure --prefix=/usr --sysconfdir=/etc
make
}
diff --git a/extra/most/most-leak-fd.patch b/extra/most/most-leak-fd.patch
new file mode 100644
index 000000000..c8cd2af09
--- /dev/null
+++ b/extra/most/most-leak-fd.patch
@@ -0,0 +1,14 @@
+--- most-5.0.0a.orig/src/most.c 2007-06-03 00:03:59.000000000 -0400
++++ most-5.0.0a/src/most.c 2010-12-31 04:42:08.000000000 -0500
+@@ -321,9 +321,11 @@
+ {
+ fprintf (stderr, "fwrite returned %d, errno = %d\n",
+ m, errno);
++ (void) fclose (fp);
+ exit (1);
+ }
+ }
++ (void) fclose (fp);
+ }
+
+ void most_initialize_most (void)