Added lsof-4.83 build template.
This commit is contained in:
parent
c785787fdd
commit
ed62b0248e
2 changed files with 67 additions and 0 deletions
27
srcpkgs/lsof/files/license.txt
Normal file
27
srcpkgs/lsof/files/license.txt
Normal file
|
@ -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.
|
||||
|
40
srcpkgs/lsof/template
Normal file
40
srcpkgs/lsof/template
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Template file for 'lsof'
|
||||
pkgname=lsof
|
||||
version=4.83
|
||||
wrksrc=lsof_${version}
|
||||
#build_wrksrc=lsof_${version}_src
|
||||
distfiles="ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2"
|
||||
build_style=custom-install
|
||||
short_desc="LiSt Open Files"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=b89f930bbe36b970e3cd070b9860ee701d8c7285ffedf2fbcec0e5fa3cb1f544
|
||||
long_desc="
|
||||
Lsof is a UNIX-specific tool. Its name stands for LiSt Open Files, and it does
|
||||
just that. It lists information about files that are open by the processes
|
||||
running on a UNIX system."
|
||||
|
||||
Add_dependency run glibc
|
||||
|
||||
do_build()
|
||||
{
|
||||
# We have to do this dance because the real distfile is
|
||||
# included in the .tar.bz2 archive.
|
||||
tar xf ${wrksrc}/lsof_${version}_src.tar \
|
||||
-C ${wrksrc} || return 1
|
||||
cd ${wrksrc}/lsof_${version}_src || return 1
|
||||
sed "s|/\* #define\tHASSECURITY\t1 \*/|#define\tHASSECURITY\t1|" \
|
||||
-i dialects/linux/machine.h
|
||||
./Configure -n linux || return 1
|
||||
make ${makejobs} || return 1
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
cd ${wrksrc}/lsof_${version}_src || return 1
|
||||
install -D -m755 lsof \
|
||||
${DESTDIR}/usr/sbin/lsof || return 1
|
||||
install -D -m644 lsof.8 \
|
||||
${DESTDIR}/usr/share/man/man8/lsof.8 || return 1
|
||||
install -D -m644 ${FILESDIR}/license.txt \
|
||||
${DESTDIR}/usr/share/licenses/lsof_license.txt || return 1
|
||||
}
|
Loading…
Reference in a new issue