Skip to content

Commit 17ace14

Browse files
matthiasdieneradamjstewart
authored andcommitted
lsof: create new package (#7660)
1 parent 32c8237 commit 17ace14

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
##############################################################################
2+
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
3+
# Produced at the Lawrence Livermore National Laboratory.
4+
#
5+
# This file is part of Spack.
6+
# Created by Todd Gamblin, [email protected], All rights reserved.
7+
# LLNL-CODE-647188
8+
#
9+
# For details, see https://github.com/spack/spack
10+
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
11+
#
12+
# This program is free software; you can redistribute it and/or modify
13+
# it under the terms of the GNU Lesser General Public License (as
14+
# published by the Free Software Foundation) version 2.1, February 1999.
15+
#
16+
# This program is distributed in the hope that it will be useful, but
17+
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
18+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
19+
# conditions of the GNU Lesser General Public License for more details.
20+
#
21+
# You should have received a copy of the GNU Lesser General Public
22+
# License along with this program; if not, write to the Free Software
23+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24+
##############################################################################
25+
from spack import *
26+
27+
28+
class Lsof(Package):
29+
"""Lsof displays information about files open to Unix processes."""
30+
31+
homepage = "https://people.freebsd.org/~abe/"
32+
url = "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.gz"
33+
34+
version('4.89', '8afbaff3ee308edc130bdc5df0801c8f')
35+
36+
def install(self, spec, prefix):
37+
tar = which('tar')
38+
tar('xf', 'lsof_{0}_src.tar'.format(self.version))
39+
40+
with working_dir('lsof_{0}_src'.format(self.version)):
41+
configure = Executable('./Configure')
42+
configure('-n', 'linux')
43+
44+
make()
45+
46+
mkdir(prefix.bin)
47+
install('lsof', prefix.bin)

0 commit comments

Comments
 (0)