mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 08:37:14 +08:00
31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 65316 2010-01-27 10:27:52Z giovanni $
|
||
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
||
|
# Contributor: Jochem Kossen <j.kossen@home.nl>
|
||
|
|
||
|
pkgname=lsof
|
||
|
pkgver=4.83
|
||
|
pkgrel=1
|
||
|
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=('8f731a6251b8c0143d585df0d5ca779e'
|
||
|
'1b63c76bd10437cabf890508c8e58d36')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/${pkgname}_${pkgver}"
|
||
|
tar xf ${pkgname}_${pkgver}_src.tar
|
||
|
cd ${pkgname}_${pkgver}_src
|
||
|
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" -i dialects/linux/machine.h
|
||
|
|
||
|
./Configure -n linux
|
||
|
make || return 1
|
||
|
install -D -m0755 -o root -g root lsof "${pkgdir}/usr/sbin/lsof" || return 1
|
||
|
install -D -m0644 -o root -g root lsof.8 "${pkgdir}/usr/share/man/man8/lsof.8" || return 1
|
||
|
|
||
|
install -D -m0644 -o root -g root ${srcdir}/license.txt \
|
||
|
${pkgdir}/usr/share/licenses/lsof/LICENSE || return 1
|
||
|
}
|