summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2017-03-21 21:00:32 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2017-03-21 21:00:32 +0000
commit754f0656a7d0d285f7e055a109ed39a015c0197b (patch)
tree9045a3e8ff5487107e44ec78de54a694d81ae715
parentUpdate `www/mini_httpd' to version 1.27. Changes since 1.26: (diff)
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
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/lsop/Makefile28
-rw-r--r--sysutils/lsop/distinfo3
-rw-r--r--sysutils/lsop/pkg-descr7
4 files changed, 39 insertions, 0 deletions
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 <bsd.port.mk>
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