From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/lsof/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ extra/lsof/license.txt | 27 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 extra/lsof/PKGBUILD create mode 100644 extra/lsof/license.txt (limited to 'extra/lsof') diff --git a/extra/lsof/PKGBUILD b/extra/lsof/PKGBUILD new file mode 100644 index 000000000..a5e4c8089 --- /dev/null +++ b/extra/lsof/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 115676 2011-03-19 06:54:43Z angvp $ +# Maintainer: Angel Velasquez +# Contributor: Daniel J Griffiths +# Contributor: Aaron Griffin +# Contributor: Jochem Kossen + +pkgname=lsof +pkgver=4.84 +pkgrel=3 +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/${pkgname}_${pkgver}.tar.bz2 license.txt) +md5sums=('a09326df500ef7e4550af546868338d6' + '1b63c76bd10437cabf890508c8e58d36') + +build() { + cd ${srcdir}/${pkgname}_${pkgver} + 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 +} + +package() { + cd ${srcdir}/${pkgname}_${pkgver}/${pkgname}_${pkgver}_src + + FILES=("00CREDITS" "00DCACHE" "00DIALECTS" "00DIST" "00FAQ" "00LSOF-L" "00MANIFEST" "00PORTING" "00QUICKSTART" "00README" "00.README.FIRST" "00TEST" "00XCONFIG") + for file in "${FILES[@]}" + do + install -D -m0644 -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 +} diff --git a/extra/lsof/license.txt b/extra/lsof/license.txt new file mode 100644 index 000000000..6d241ddbf --- /dev/null +++ b/extra/lsof/license.txt @@ -0,0 +1,27 @@ +Copyright 2002 Purdue Research Foundation, West Lafayette, +Indiana 47907. All rights reserved. + +Written by Victor A. Abell + +This software is not subject to any license of the American +Telephone and Telegraph Company or the Regents of the +University of California. + +Permission is granted to anyone to use this software for +any purpose on any computer system, and to alter it and +redistribute it freely, subject to the following +restrictions: + +1. Neither the authors nor Purdue University are responsible + for any consequences of the use of this software. + +2. The origin of this software must not be misrepresented, + either by explicit claim or by omission. Credit to the + authors and Purdue University must appear in documentation + and sources. + +3. Altered versions must be plainly marked as such, and must + not be misrepresented as being the original software. + +4. This notice may not be removed or altered. + -- cgit v1.2.3-54-g00ecf