From 754f0656a7d0d285f7e055a109ed39a015c0197b Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Tue, 21 Mar 2017 21:00:32 +0000 Subject: [PATCH] New port: sysutils/lsop lsop is a FreeBSD utility to list all processes running with outdated binaries or shared libraries (that is, binaries or shared libraries that have been upgraded or simply deleted). lsop does not currently work when started in a FreeBSD jail! WWW: https://github.com/606u/lsop PR: 213340 Submitted by: 606u@dir.bg Approved by: lme (mentor) Differential Revision: https://reviews.freebsd.org/D10083 --- sysutils/Makefile | 1 + sysutils/lsop/Makefile | 28 ++++++++++++++++++++++++++++ sysutils/lsop/distinfo | 3 +++ sysutils/lsop/pkg-descr | 7 +++++++ 4 files changed, 39 insertions(+) create mode 100644 sysutils/lsop/Makefile create mode 100644 sysutils/lsop/distinfo create mode 100644 sysutils/lsop/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index 7b9c4f7a7ef6..18360906f901 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -559,6 +559,7 @@ SUBDIR += lookat SUBDIR += lr SUBDIR += lsof + SUBDIR += lsop SUBDIR += ltrace SUBDIR += lttng-tools SUBDIR += lttng-ust diff --git a/sysutils/lsop/Makefile b/sysutils/lsop/Makefile new file mode 100644 index 000000000000..0a72d4911d4e --- /dev/null +++ b/sysutils/lsop/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= lsop +PORTVERSION= 0.1 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils + +MAINTAINER= 606u@dir.bg +COMMENT= List all processes running with outdated binaries or shared libraries + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= 606u + +PLIST_FILES= sbin/lsop \ + libexec/nagios/check_restart + +post-patch: + @${REINPLACE_CMD} -e 's|lsop|${PREFIX}/sbin/lsop|' ${WRKSRC}/check_restart + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lsop ${STAGEDIR}${PREFIX}/sbin + @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios + ${INSTALL_SCRIPT} ${WRKSRC}/check_restart ${STAGEDIR}${PREFIX}/libexec/nagios + +.include diff --git a/sysutils/lsop/distinfo b/sysutils/lsop/distinfo new file mode 100644 index 000000000000..0f0d3d3a114b --- /dev/null +++ b/sysutils/lsop/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1488798320 +SHA256 (606u-lsop-v0.1_GH0.tar.gz) = e69bcc173c24672dc320da0c30030d0790b25a0869f39379dbfa179282421df9 +SIZE (606u-lsop-v0.1_GH0.tar.gz) = 3918 diff --git a/sysutils/lsop/pkg-descr b/sysutils/lsop/pkg-descr new file mode 100644 index 000000000000..00e3977913a5 --- /dev/null +++ b/sysutils/lsop/pkg-descr @@ -0,0 +1,7 @@ +lsop is a FreeBSD utility to list all processes running with outdated +binaries or shared libraries (that is, binaries or shared libraries +that have been upgraded or simply deleted). + +lsop does not currently work when started in a FreeBSD jail! + +WWW: https://github.com/606u/lsop