[arch-commits] Commit in lsof/trunk (PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Mon Nov 17 16:30:35 UTC 2014


    Date: Monday, November 17, 2014 @ 17:30:34
  Author: anatolik
Revision: 226348

Fix FS#42793

Apply patch from upstream

Modified:
  lsof/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-17 14:47:53 UTC (rev 226347)
+++ PKGBUILD	2014-11-17 16:30:34 UTC (rev 226348)
@@ -7,21 +7,30 @@
 
 pkgname=lsof
 pkgver=4.88
-pkgrel=1
+pkgrel=2
 pkgdesc="Lists open files for running Unix processes"
 arch=('i686' 'x86_64')
 url="http://people.freebsd.org/~abe/"
 license=('custom')
 depends=('glibc')
-source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_$pkgver.tar.bz2 license.txt)
+source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_$pkgver.tar.bz2
+        ftp://sunsite.ualberta.ca/pub/Mirror/lsof/patches/4.88/linux.dnode.c.patch
+        license.txt)
 sha1sums=('09db6d2cd96bc6832d9b767084b9c67cf5cf52bb'
+          '9a067d0e2c1dc83f6967c2ecb8fa5086860d92e4'
           'db6b6d90ce895e4053f91ad25c7761fbf9a37dd6')
 
-build() {
+prepare() {
 	cd lsof_$pkgver
 	tar xf lsof_${pkgver}_src.tar
 	cd lsof_${pkgver}_src
 	sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
+
+	patch -p1 < "$srcdir"/linux.dnode.c.patch
+}
+
+build() {
+	cd lsof_$pkgver/lsof_${pkgver}_src
 	./Configure -n linux
 	make 
 }


More information about the arch-commits mailing list