summaryrefslogtreecommitdiffstats
path: root/lsof/Pkgfile
blob: 6d18df43387ae43895892881eaad9833721cf8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Description: Liste les fichiers ouverts sous un process Unix
# URL: http://people.freebsd.org/~abe/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: 
# Run on: 

name=lsof
version=4.84
release=1
source=(ftp://sunsite.ualberta.ca/pub/Mirror/lsof/${name}_${version}.tar.bz2)

build() {
	cd ${name}_${version}
	tar xf ${name}_${version}_src.tar
	cd ${name}_${version}_src
	sed -i 's|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|' dialects/linux/machine.h

	./Configure -n linux
	make
	install -Dm0755 -o root -g root lsof $PKG/usr/sbin/lsof	
	install -Dm0644 -o root -g root lsof.8 $PKG/usr/share/man/man8/lsof.8 
}