diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-20 12:40:52 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-02-20 12:40:52 +0000 |
commit | 4367e9a00cc9eedc3e1af4c6f610546b793d93e8 (patch) | |
tree | d325329aa17e881f13948bc344ee6ff399625f44 | |
parent | 55fa5fd218ed3cac9ee19570e01b3ce335f436c6 (diff) | |
download | ports-4367e9a00cc9eedc3e1af4c6f610546b793d93e8.tar.gz ports-4367e9a00cc9eedc3e1af4c6f610546b793d93e8.zip |
Notes
-rw-r--r-- | sysutils/procenv/Makefile | 17 | ||||
-rw-r--r-- | sysutils/procenv/files/patch-src_procenv.c | 30 |
2 files changed, 39 insertions, 8 deletions
diff --git a/sysutils/procenv/Makefile b/sysutils/procenv/Makefile index 8fcd098dbab2..82f008ef0bea 100644 --- a/sysutils/procenv/Makefile +++ b/sysutils/procenv/Makefile @@ -3,6 +3,7 @@ PORTNAME= procenv PORTVERSION= 0.36 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://launchpad.net/procenv/trunk/${PORTVERSION}/+download/ \ http://people.canonical.com/~jhunt/debian/procenv/${PORTVERSION}/ \ @@ -19,18 +20,18 @@ BUILD_DEPENDS= xmlwf:${PORTSDIR}/textproc/expat2 USES= autoreconf gmake perl5 GNU_CONFIGURE= yes USE_PERL5= build +TEST_TARGET= check +PORTDOCS= AUTHORS ChangeLog NEWS README TODO PLIST_FILES= bin/procenv \ man/man1/procenv.1.gz -# Test to ensure procenv will actually run. -# -# This has the attractive side-effect of displaying the environment -# of the build system which may be of interest to those fixing FTBFS -# packages that build correctly locally. -regression-test: build - @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check +OPTIONS_DEFINE= DOCS -test: regression-test +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +.endfor .include <bsd.port.mk> diff --git a/sysutils/procenv/files/patch-src_procenv.c b/sysutils/procenv/files/patch-src_procenv.c new file mode 100644 index 000000000000..dea552a30ccc --- /dev/null +++ b/sysutils/procenv/files/patch-src_procenv.c @@ -0,0 +1,30 @@ +--- 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); |