Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Install a kyua.conf file that sets unprivileged_user to _tests.



details:   https://anonhg.NetBSD.org/src/rev/01376855b5f3
branches:  trunk
changeset: 785115:01376855b5f3
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sun Feb 24 03:06:13 2013 +0000

description:
Install a kyua.conf file that sets unprivileged_user to _tests.

diffstat:

 distrib/sets/lists/base/mi               |   3 ++-
 distrib/sets/lists/etc/mi                |   3 ++-
 etc/Makefile                             |   5 ++++-
 etc/mtree/NetBSD.dist.base               |   3 ++-
 external/bsd/kyua-cli/Makefile           |   4 ++--
 external/bsd/kyua-cli/etc/Makefile       |   5 +++++
 external/bsd/kyua-cli/etc/Makefile.inc   |   3 +++
 external/bsd/kyua-cli/etc/kyua/Makefile  |  10 ++++++++++
 external/bsd/kyua-cli/etc/kyua/kyua.conf |  14 ++++++++++++++
 9 files changed, 44 insertions(+), 6 deletions(-)

diffs (130 lines):

diff -r 34017eeda8a4 -r 01376855b5f3 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Sat Feb 23 22:56:46 2013 +0000
+++ b/distrib/sets/lists/base/mi        Sun Feb 24 03:06:13 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1020 2013/02/23 14:18:37 jmmv Exp $
+# $NetBSD: mi,v 1.1021 2013/02/24 03:06:14 jmmv Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -99,6 +99,7 @@
 ./etc/iscsi                                    base-sysutil-root
 ./etc/kerberosIV                               base-obsolete           obsolete
 ./etc/kerberosV                                        base-krb5-root
+./etc/kyua                                     base-kyua-root
 ./etc/mail                                     base-postfix-bin
 ./etc/mtree                                    base-sys-root
 ./etc/mtree/set.base                           base-sys-root
diff -r 34017eeda8a4 -r 01376855b5f3 distrib/sets/lists/etc/mi
--- a/distrib/sets/lists/etc/mi Sat Feb 23 22:56:46 2013 +0000
+++ b/distrib/sets/lists/etc/mi Sun Feb 24 03:06:13 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.228 2012/02/07 19:13:28 joerg Exp $
+# $NetBSD: mi,v 1.229 2013/02/24 03:06:15 jmmv Exp $
 #
 # Note: end-user configuration files that are moved to another location
 #      should not be marked "obsolete"; they should just be removed from
@@ -73,6 +73,7 @@
 ./etc/inetd.conf                               etc-netutil-etc
 ./etc/iscsi/auths                              etc-iscsi-etc           iscsi
 ./etc/iscsi/targets                            etc-iscsi-etc           iscsi
+./etc/kyua/kyua.conf                           etc-kyua-etc            kyua
 ./etc/lkm.conf                                 etc-obsolete            obsolete
 ./etc/localtime                                        etc-sys-etc
 ./etc/locate.conf                              etc-sys-etc
diff -r 34017eeda8a4 -r 01376855b5f3 etc/Makefile
--- a/etc/Makefile      Sat Feb 23 22:56:46 2013 +0000
+++ b/etc/Makefile      Sun Feb 24 03:06:13 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.405 2013/02/05 16:39:26 matt Exp $
+#      $NetBSD: Makefile,v 1.406 2013/02/24 03:06:13 jmmv Exp $
 #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
 
 # Environment variables without default values:
@@ -335,6 +335,9 @@
 .if (${MKATF} != "no")
        ${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/atf/etc/atf configinstall
 .endif
+.if (${MKKYUA} != "no")
+       ${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/kyua-cli/etc/kyua configinstall
+.endif
 
 
 # install-obsolete-lists --
diff -r 34017eeda8a4 -r 01376855b5f3 etc/mtree/NetBSD.dist.base
--- a/etc/mtree/NetBSD.dist.base        Sat Feb 23 22:56:46 2013 +0000
+++ b/etc/mtree/NetBSD.dist.base        Sun Feb 24 03:06:13 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist.base,v 1.111 2013/02/23 14:58:12 jmmv Exp $
+#      $NetBSD: NetBSD.dist.base,v 1.112 2013/02/24 03:06:13 jmmv Exp $
 #      @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -36,6 +36,7 @@
 ./etc/fonts/conf.avail
 ./etc/iscsi
 ./etc/kerberosV
+./etc/kyua
 ./etc/mail
 ./etc/mtree
 ./etc/namedb
diff -r 34017eeda8a4 -r 01376855b5f3 external/bsd/kyua-cli/Makefile
--- a/external/bsd/kyua-cli/Makefile    Sat Feb 23 22:56:46 2013 +0000
+++ b/external/bsd/kyua-cli/Makefile    Sun Feb 24 03:06:13 2013 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2013/02/23 14:16:49 jmmv Exp $
+# $NetBSD: Makefile,v 1.2 2013/02/24 03:06:15 jmmv Exp $
 
-SUBDIR= lib .WAIT share tests usr.bin
+SUBDIR= etc lib .WAIT share tests usr.bin
 
 .for dir in share tests usr.bin
 includes-${dir}: .PHONY
diff -r 34017eeda8a4 -r 01376855b5f3 external/bsd/kyua-cli/etc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/etc/Makefile        Sun Feb 24 03:06:13 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/02/24 03:06:15 jmmv Exp $
+
+SUBDIR= kyua
+
+.include <bsd.subdir.mk>
diff -r 34017eeda8a4 -r 01376855b5f3 external/bsd/kyua-cli/etc/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/etc/Makefile.inc    Sun Feb 24 03:06:13 2013 +0000
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile.inc,v 1.1 2013/02/24 03:06:15 jmmv Exp $
+
+.include "../Makefile.inc"
diff -r 34017eeda8a4 -r 01376855b5f3 external/bsd/kyua-cli/etc/kyua/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/etc/kyua/Makefile   Sun Feb 24 03:06:13 2013 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: Makefile,v 1.1 2013/02/24 03:06:15 jmmv Exp $
+
+.include <bsd.init.mk>
+
+CONFIGFILES=   kyua.conf
+FILESDIR=      ${KYUA_CONFDIR}
+FILESMODE=     644
+
+.include <bsd.prog.mk> # For clean and cleandir
+.include <bsd.files.mk>
diff -r 34017eeda8a4 -r 01376855b5f3 external/bsd/kyua-cli/etc/kyua/kyua.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/etc/kyua/kyua.conf  Sun Feb 24 03:06:13 2013 +0000
@@ -0,0 +1,14 @@
+-- $NetBSD: kyua.conf,v 1.1 2013/02/24 03:06:15 jmmv Exp $
+--
+-- System-wide configuration file for kyua(1).  See kyua.conf(5) for details
+-- on the syntax and tests(7) for any NetBSD-specific tweaks that may apply.
+--
+
+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'
+
+-- An example to set a configuration property specific to NetBSD.
+--test_suites.NetBSD.fstype = 'ffs'



Home | Main Index | Thread Index | Old Index