[arch-commits] Commit in lsof/trunk (PKGBUILD)
Angel Velásquez
angvp at archlinux.org
Sat Feb 19 15:39:01 UTC 2011
Date: Saturday, February 19, 2011 @ 10:39:01
Author: angvp
Revision: 110453
upgpkg: lsof 4.84-2
Fixing FS#22767
Modified:
lsof/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-02-19 15:08:24 UTC (rev 110452)
+++ PKGBUILD 2011-02-19 15:39:01 UTC (rev 110453)
@@ -1,11 +1,12 @@
# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
# Contributor: Aaron Griffin <aaron at archlinux.org>
# Contributor: Jochem Kossen <j.kossen at home.nl>
-# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
pkgname=lsof
pkgver=4.84
-pkgrel=1
+pkgrel=2
pkgdesc="Lists open files for running Unix processes"
arch=('i686' 'x86_64')
url="http://people.freebsd.org/~abe/"
@@ -20,17 +21,23 @@
tar xf ${pkgname}_${pkgver}_src.tar
cd ${pkgname}_${pkgver}_src
sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h
-
./Configure -n linux
- make || return 1
+ make
}
package() {
cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src
- install -Dm0755 -o root -g root lsof ${pkgdir}/usr/sbin/lsof || return 1
- install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8 || return 1
+ FILES=("00CREDITS" "00DCACHE" "00DIALECTS" "00DIST" "00FAQ" "00LSOF-L" "00MANIFEST" "00PORTING" "00QUICKSTART" "00README" "00.README.FIRST" "00TEST" "00XCONFIG")
+ for file in "${FILES[@]}"
+ do
+ install -D -m0755 -o root -g root $file \
+ $pkgdir/usr/share/doc/$pkgname/$file
+ done
+
+ install -Dm0755 -o root -g root lsof ${pkgdir}/usr/sbin/lsof
+ install -Dm0644 -o root -g root lsof.8 ${pkgdir}/usr/share/man/man8/lsof.8
install -D -m0644 -o root -g root ${srcdir}/license.txt \
- ${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
+ ${pkgdir}/usr/share/licenses/lsof/LICENSE
}
More information about the arch-commits
mailing list