mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
sysutils/procenv: update 0.36 -> 0.50
PR: 233176 Submitted by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> Relnotes: https://github.com/jamesodhunt/procenv/blob/master/NEWS
This commit is contained in:
parent
957c91a139
commit
7bbcaaf5be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490132
@ -2,12 +2,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= procenv
|
||||
PORTVERSION= 0.36
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.50
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= https://launchpad.net/procenv/trunk/${PORTVERSION}/+download/ \
|
||||
http://people.canonical.com/~jhunt/debian/procenv/${PORTVERSION}/ \
|
||||
DEBIAN
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Utility to show process environment
|
||||
@ -18,8 +14,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
BUILD_DEPENDS= xmlwf:textproc/expat2
|
||||
|
||||
USES= autoreconf gmake perl5
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= build
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= jamesodhunt
|
||||
GH_TAGNAME= d89b0ac
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
TEST_TARGET= check
|
||||
|
||||
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
||||
@ -29,7 +30,7 @@ PLIST_FILES= bin/procenv \
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for f in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (procenv-0.36.tar.gz) = 70550499d0602ffbb4bbbe91c1a6d468d44589ab29b74b5ccc42b9558f970fb4
|
||||
SIZE (procenv-0.36.tar.gz) = 264248
|
||||
TIMESTAMP = 1541557607
|
||||
SHA256 (jamesodhunt-procenv-0.50-d89b0ac_GH0.tar.gz) = c95de696984187e944cd7cdf098662124ca60023d3f8e6e5ebf3c254adf72ee8
|
||||
SIZE (jamesodhunt-procenv-0.50-d89b0ac_GH0.tar.gz) = 244613
|
||||
|
15
sysutils/procenv/files/patch-configure.ac
Normal file
15
sysutils/procenv/files/patch-configure.ac
Normal file
@ -0,0 +1,15 @@
|
||||
--- configure.ac.orig 2017-10-16 17:35:19 UTC
|
||||
+++ configure.ac
|
||||
@@ -26,10 +26,10 @@ AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
AM_PROG_CC_C_O
|
||||
|
||||
-PKG_PROG_PKG_CONFIG
|
||||
+#PKG_PROG_PKG_CONFIG
|
||||
|
||||
# Look for C unit test framework (http://check.sourceforge.net/).
|
||||
-PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=yes], [HAVE_CHECK=no])
|
||||
+#PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=yes], [HAVE_CHECK=no])
|
||||
|
||||
#---------------------------------------------------------------------
|
||||
# Checks for header files.
|
24
sysutils/procenv/files/patch-src_platform-headers.h
Normal file
24
sysutils/procenv/files/patch-src_platform-headers.h
Normal file
@ -0,0 +1,24 @@
|
||||
--- src/platform-headers.h.orig 2017-10-16 17:35:19 UTC
|
||||
+++ src/platform-headers.h
|
||||
@@ -97,10 +97,6 @@ typedef struct statfs procenv_mnt_type;
|
||||
#include <selinux/selinux.h>
|
||||
#endif
|
||||
|
||||
-#if defined (HAVE_SYS_CAPABILITY_H)
|
||||
-#include <sys/capability.h>
|
||||
-#endif
|
||||
-
|
||||
#if defined (__GLIBC__)
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
@@ -261,10 +257,6 @@ typedef struct statfs procenv_mnt_type;
|
||||
#include <sys/statvfs.h>
|
||||
#include <net/if.h>
|
||||
#include <link.h>
|
||||
-
|
||||
-#if defined (HAVE_SYS_CAPABILITY_H)
|
||||
-#include <sys/capability.h>
|
||||
-#endif
|
||||
|
||||
#define PROCENV_CPU_TYPE int
|
||||
#define PROCENV_CPU_SET_TYPE cpu_set_t
|
@ -0,0 +1,12 @@
|
||||
--- src/platform/freebsd/platform-freebsd.h.orig 2017-10-16 17:35:19 UTC
|
||||
+++ src/platform/freebsd/platform-freebsd.h
|
||||
@@ -23,7 +23,8 @@
|
||||
#include "util.h"
|
||||
|
||||
#if defined (HAVE_SYS_CAPABILITY_H)
|
||||
-#include <sys/capability.h>
|
||||
+/* #include <sys/capability.h> */
|
||||
+#include <sys/capsicum.h>
|
||||
|
||||
#if __FreeBSD__ == 9
|
||||
|
@ -1,30 +0,0 @@
|
||||
--- src/procenv.c.orig 2014-08-16 19:06:54 UTC
|
||||
+++ src/procenv.c
|
||||
@@ -5361,8 +5361,13 @@ show_capabilities_bsd (int fd)
|
||||
show_capsicum_cap (rights, CAP_KQUEUE);
|
||||
show_capsicum_cap (rights, CAP_KQUEUE_CHANGE);
|
||||
show_capsicum_cap (rights, CAP_KQUEUE_EVENT);
|
||||
+#if __FreeBSD__ > 10
|
||||
+ show_capsicum_cap (rights, CAP_LINKAT_TARGET);
|
||||
+ show_capsicum_cap (rights, CAP_LINKAT_SOURCE);
|
||||
+#else
|
||||
show_capsicum_cap (rights, CAP_LINKAT);
|
||||
#endif
|
||||
+#endif
|
||||
show_capsicum_cap (rights, CAP_LISTEN);
|
||||
show_capsicum_cap (rights, CAP_LOOKUP);
|
||||
show_capsicum_cap (rights, CAP_MAC_GET);
|
||||
@@ -5392,8 +5397,13 @@ show_capabilities_bsd (int fd)
|
||||
show_capsicum_cap (rights, CAP_READ);
|
||||
#if __FreeBSD__ > 9
|
||||
show_capsicum_cap (rights, CAP_RECV);
|
||||
+#if __FreeBSD__ > 10
|
||||
+ show_capsicum_cap (rights, CAP_RENAMEAT_TARGET);
|
||||
+ show_capsicum_cap (rights, CAP_RENAMEAT_SOURCE);
|
||||
+#else
|
||||
show_capsicum_cap (rights, CAP_RENAMEAT);
|
||||
#endif
|
||||
+#endif
|
||||
show_capsicum_cap (rights, CAP_SEEK);
|
||||
#if __FreeBSD__ > 9
|
||||
show_capsicum_cap (rights, CAP_SEEK_TELL);
|
@ -3,4 +3,4 @@ about itself and its environment as possible. It can be used as a test
|
||||
tool, to understand the type of environment a process runs in, and for
|
||||
comparing system environments.
|
||||
|
||||
WWW: https://code.launchpad.net/procenv/
|
||||
WWW: https://github.com/jamesodhunt/procenv
|
||||
|
Loading…
Reference in New Issue
Block a user