pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add INSTALL_GAME_DIR to complement INSTALL_GAME_DAT...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8d04f835b676
branches: trunk
changeset: 511299:8d04f835b676
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Apr 12 21:01:15 2006 +0000
description:
Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directories
are group-writeable by the games user on those platforms, where
GAMEMODE includes setgid. It defaults to PKGDIRMODE otherwise.
diffstat:
mk/bsd.pkg.mk | 7 +++++--
mk/defaults/mk.conf | 10 +++++++++-
mk/platform/AIX.mk | 3 ++-
mk/platform/BSDOS.mk | 3 ++-
mk/platform/Darwin.mk | 3 ++-
mk/platform/DragonFly.mk | 3 ++-
mk/platform/FreeBSD.mk | 3 ++-
mk/platform/IRIX.mk | 3 ++-
mk/platform/Interix.mk | 3 ++-
mk/platform/Linux.mk | 3 ++-
mk/platform/NetBSD.mk | 3 ++-
mk/platform/OpenBSD.mk | 3 ++-
mk/platform/SunOS.mk | 3 ++-
mk/platform/UnixWare.mk | 3 ++-
14 files changed, 38 insertions(+), 15 deletions(-)
diffs (234 lines):
diff -r 55da1acf5c7f -r 8d04f835b676 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/bsd.pkg.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1815 2006/04/12 19:28:47 reed Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1816 2006/04/12 21:01:15 joerg Exp $
#
# This file is in the public domain.
#
@@ -385,6 +385,8 @@
${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
INSTALL_PROGRAM_DIR?= \
${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${PKGDIRMODE}
+INSTALL_GAME_DIR?= \
+ ${INSTALL} -d -o ${GAMEOWN} -g ${GAMEGRP} -m ${GAMEDIRMODE}
INSTALL_SCRIPT_DIR?= \
${INSTALL_PROGRAM_DIR}
INSTALL_LIB_DIR?= \
@@ -406,7 +408,8 @@
BSD_INSTALL_DATA_DIR=${INSTALL_DATA_DIR:Q} \
BSD_INSTALL_MAN_DIR=${INSTALL_MAN_DIR:Q} \
BSD_INSTALL_GAME=${INSTALL_GAME:Q} \
- BSD_INSTALL_GAME_DATA=${INSTALL_GAME_DATA:Q}
+ BSD_INSTALL_GAME_DATA=${INSTALL_GAME_DATA:Q} \
+ BSD_INSTALL_GAME_DIR=${INSTALL_GAME_DIR:Q}
MAKE_ENV+= ${INSTALL_MACROS}
SCRIPTS_ENV+= ${INSTALL_MACROS}
diff -r 55da1acf5c7f -r 8d04f835b676 mk/defaults/mk.conf
--- a/mk/defaults/mk.conf Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/defaults/mk.conf Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.115 2006/04/06 06:23:06 reed Exp $
+# $NetBSD: mk.conf,v 1.116 2006/04/12 21:01:15 joerg Exp $
#
# This file provides default values for variables that may be overridden
@@ -824,6 +824,14 @@
# Possible: any mode
# Default: ${BINMODE}
+GAMEDIRMODE?= ${PKGDIRMODE}
+# Used for various games to allow writing to a group-owned directory
+# e.g. for logfiles.
+# If SETGIDGAME is 'yes', setting this to 0775 would make sense.
+# See also: GAMEGRP, GAMEOWN, GAMEMODE, SETGIDGAME
+# Possible: any mode
+# Default: ${PKGDIRMODE}
+
GAMEOWN?= ${BINOWN}
# Used for various games to allow writing to a group-owned score file.
# If SETGIDGAME is 'yes', setting this to a dedicated user, such as 'games'
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/AIX.mk
--- a/mk/platform/AIX.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/AIX.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: AIX.mk,v 1.23 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: AIX.mk,v 1.24 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the AIX operating system.
@@ -92,4 +92,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/BSDOS.mk
--- a/mk/platform/BSDOS.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/BSDOS.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: BSDOS.mk,v 1.18 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: BSDOS.mk,v 1.19 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the BSD/OS operating system.
@@ -94,4 +94,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/Darwin.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.18 2006/04/10 13:38:36 schwarz Exp $
+# $NetBSD: Darwin.mk,v 1.19 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the Darwin operating system.
@@ -107,4 +107,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/DragonFly.mk
--- a/mk/platform/DragonFly.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/DragonFly.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: DragonFly.mk,v 1.26 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: DragonFly.mk,v 1.27 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the DragonFly operating system.
@@ -95,4 +95,5 @@
GAMEOWN= games
GAMEGRP= games
GAMEMODE= 2555
+GAMEDIRMODE= 0775
.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/FreeBSD.mk
--- a/mk/platform/FreeBSD.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/FreeBSD.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: FreeBSD.mk,v 1.17 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: FreeBSD.mk,v 1.18 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -90,4 +90,5 @@
GAMEOWN= games
GAMEGRP= games
GAMEMODE= 2555
+GAMEDIRMODE= 0775
.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/IRIX.mk
--- a/mk/platform/IRIX.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/IRIX.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: IRIX.mk,v 1.23 2006/04/10 13:38:36 schwarz Exp $
+# $NetBSD: IRIX.mk,v 1.24 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the IRIX operating system.
@@ -125,4 +125,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/Interix.mk
--- a/mk/platform/Interix.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/Interix.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Interix.mk,v 1.49 2006/03/18 21:40:44 jlam Exp $
+# $NetBSD: Interix.mk,v 1.50 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the Interix operating system.
@@ -180,4 +180,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/Linux.mk
--- a/mk/platform/Linux.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/Linux.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.23 2006/03/18 21:40:45 jlam Exp $
+# $NetBSD: Linux.mk,v 1.24 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the Linux operating system.
@@ -89,6 +89,7 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
.if (${MACHINE_ARCH} == "x86_64")
ABI?= 64
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/NetBSD.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.19 2006/03/18 21:40:45 jlam Exp $
+# $NetBSD: NetBSD.mk,v 1.20 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -142,4 +142,5 @@
GAMEOWN= games
GAMEGRP= games
GAMEMODE= 2555
+GAMEDIRMODE= 0775
.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/OpenBSD.mk
--- a/mk/platform/OpenBSD.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/OpenBSD.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: OpenBSD.mk,v 1.22 2006/03/18 21:40:45 jlam Exp $
+# $NetBSD: OpenBSD.mk,v 1.23 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the OpenBSD operating system.
@@ -110,4 +110,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/SunOS.mk
--- a/mk/platform/SunOS.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/SunOS.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.23 2006/04/01 23:27:49 grant Exp $
+# $NetBSD: SunOS.mk,v 1.24 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -131,4 +131,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
diff -r 55da1acf5c7f -r 8d04f835b676 mk/platform/UnixWare.mk
--- a/mk/platform/UnixWare.mk Wed Apr 12 20:57:39 2006 +0000
+++ b/mk/platform/UnixWare.mk Wed Apr 12 21:01:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: UnixWare.mk,v 1.20 2006/03/18 21:40:45 jlam Exp $
+# $NetBSD: UnixWare.mk,v 1.21 2006/04/12 21:01:15 joerg Exp $
#
# Variable definitions for the UnixWare 7 operating system.
@@ -94,4 +94,5 @@
#GAMEOWN= games
#GAMEGRP= games
#GAMEMODE= 2555
+#GAMEDIRMODE= 0775
#.endif
Home |
Main Index |
Thread Index |
Old Index