svn commit: r409235 - in head/sysutils/procenv: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Feb 20 12:40:54 UTC 2016


Author: amdmi3
Date: Sat Feb 20 12:40:52 2016
New Revision: 409235
URL: https://svnweb.freebsd.org/changeset/ports/409235

Log:
  - Fix build on recent HEAD
  - Switch to new test framework
  - Install documentation

Added:
  head/sysutils/procenv/files/
  head/sysutils/procenv/files/patch-src_procenv.c   (contents, props changed)
Modified:
  head/sysutils/procenv/Makefile

Modified: head/sysutils/procenv/Makefile
==============================================================================
--- head/sysutils/procenv/Makefile	Sat Feb 20 12:17:50 2016	(r409234)
+++ head/sysutils/procenv/Makefile	Sat Feb 20 12:40:52 2016	(r409235)
@@ -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}/textpro
 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>

Added: head/sysutils/procenv/files/patch-src_procenv.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/procenv/files/patch-src_procenv.c	Sat Feb 20 12:40:52 2016	(r409235)
@@ -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);


More information about the svn-ports-all mailing list