aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-20 20:40:52 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-20 20:40:52 +0800
commit5f9a179091502bf0dac28ed639e277395600dfbe (patch)
treed325329aa17e881f13948bc344ee6ff399625f44 /sysutils
parentdcad42ff7b78493f6eba749f5624a8fe78ecbeb0 (diff)
downloadfreebsd-ports-graphics-5f9a179091502bf0dac28ed639e277395600dfbe.tar.gz
freebsd-ports-graphics-5f9a179091502bf0dac28ed639e277395600dfbe.tar.zst
freebsd-ports-graphics-5f9a179091502bf0dac28ed639e277395600dfbe.zip
- Fix build on recent HEAD
- Switch to new test framework - Install documentation
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/procenv/Makefile17
-rw-r--r--sysutils/procenv/files/patch-src_procenv.c30
2 files changed, 39 insertions, 8 deletions
diff --git a/sysutils/procenv/Makefile b/sysutils/procenv/Makefile
index 8fcd098dbab..82f008ef0be 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 00000000000..dea552a30cc
--- /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);