From owner-svn-ports-all@FreeBSD.ORG Fri Dec 27 20:45:04 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46E56D28; Fri, 27 Dec 2013 20:45:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 276671EC4; Fri, 27 Dec 2013 20:45:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBRKj4Wn013034; Fri, 27 Dec 2013 20:45:04 GMT (envelope-from jmmv@svn.freebsd.org) Received: (from jmmv@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBRKj3RE013030; Fri, 27 Dec 2013 20:45:03 GMT (envelope-from jmmv@svn.freebsd.org) Message-Id: <201312272045.rBRKj3RE013030@svn.freebsd.org> From: Julio Merino Date: Fri, 27 Dec 2013 20:45:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337802 - in head: . devel/kyua devel/kyua/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2013 20:45:04 -0000 Author: jmmv (src committer) Date: Fri Dec 27 20:45:03 2013 New Revision: 337802 URL: http://svnweb.freebsd.org/changeset/ports/337802 Log: Add a tests user to run unprivileged tests as; use it in devel/kyua. This new user carries a generic 'tests' name because, even though it is only used by devel/kyua at this point, it could conceivably be used by other tools. Bump PORTREVISION of devel/kyua to 1. PR: ports/182891 Approved by: asomers (maintainer), bdrewery (ports), rpaulo (mentor) Added: head/devel/kyua/files/kyua.conf.in (contents, props changed) Modified: head/UIDs head/devel/kyua/Makefile Modified: head/UIDs ============================================================================== --- head/UIDs Fri Dec 27 20:41:58 2013 (r337801) +++ head/UIDs Fri Dec 27 20:45:03 2013 (r337802) @@ -274,4 +274,5 @@ boinc:*:973:973::0:0:BOINC user:/var/db/ radicale:*:974:974::0:0:Radicale daemon:/nonexistent:/usr/sbin/nologin unifi:*:975:975::0:0:Unifi Wireless Controller:/nonexistent:/usr/sbin/nologin minetest:*:976:976::0:0:& server:/nonexistent:/usr/sbin/nologin +tests:*:977:65534::0:0:Unprivileged user for tests:/nonexistent:/usr/sbin/nologin nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin Modified: head/devel/kyua/Makefile ============================================================================== --- head/devel/kyua/Makefile Fri Dec 27 20:41:58 2013 (r337801) +++ head/devel/kyua/Makefile Fri Dec 27 20:45:03 2013 (r337802) @@ -3,6 +3,7 @@ PORTNAME= kyua PORTVERSION= 0.8 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} PROJECTHOST= kyua @@ -21,6 +22,11 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} GNU_CONFIGURE= yes USES= pkgconfig +TESTS_USER= tests +USERS= ${TESTS_USER} +SUB_FILES= kyua.conf +SUB_LIST= TESTS_USER=${TESTS_USER} + OPTIONS_DEFINE= DOCS EXAMPLES NO_STAGE= yes .include @@ -38,6 +44,8 @@ MAKE_FLAGS+= doc_DATA= MAKE_FLAGS+= dist_examples_DATA= .endif PLIST_FILES= bin/kyua +PLIST_DIRS= etc/kyua +PLIST_FILES+= etc/kyua/kyua.conf PORTDATA= misc store examples PORTDOCS= AUTHORS COPYING NEWS README @@ -47,4 +55,8 @@ MAN1+= kyua-report.1 kyua-test.1 kyua.1 MAN5= kyua.conf.5 kyuafile.5 MAN7= kyua-build-root.7 kyua-test-filters.7 +post-install: + ${MKDIR} ${PREFIX}/etc/kyua/ + ${INSTALL_DATA} ${WRKDIR}/kyua.conf ${PREFIX}/etc/kyua/ + .include Added: head/devel/kyua/files/kyua.conf.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/kyua/files/kyua.conf.in Fri Dec 27 20:45:03 2013 (r337802) @@ -0,0 +1,14 @@ +-- $FreeBSD$ +-- +-- System-wide configuration file for kyua(1). See kyua.conf(5) for details +-- on the syntax. +-- + +syntax(2) + +-- User to drop privileges to when invoking kyua(1) as root and a test case +-- requests to be run with non-root permissions. +unprivileged_user = '%%TESTS_USER%%' + +-- An example to set a configuration property specific to FreeBSD. +--test_suites.FreeBSD.fstype = 'ffs'