summaryrefslogtreecommitdiff
path: root/mk/defs.Linux.mk
diff options
context:
space:
mode:
authorseb <seb>2002-08-28 11:06:17 +0000
committerseb <seb>2002-08-28 11:06:17 +0000
commit58ea692a1bebdf927fc532500f348926dc5e5b36 (patch)
tree75efa29b414c62f586837a52fa4ffc0196db8f5b /mk/defs.Linux.mk
parentffd9d14423905819299409884af5c300a7ab60de (diff)
downloadpkgsrc-58ea692a1bebdf927fc532500f348926dc5e5b36.tar.gz
Allow more flexibility in the handling of UNLIMIT_RESOURCES.
Each word of UNLIMIT_RESOURCES is supposed to be a knob on ULIMIT_CMD_<word> variable which value if defined is added to _ULIMIT_CMD. The ULIMIT_CMD_* variables are set per $OPSYS in defs.*.mk and are overridable by the user. Solaris' default value of ULIMIT_CMD_memorysize adjusted as suggested in PR pkg/18087 by Jonathan Perkin <sketch@rd.bbc.co.uk>.
Diffstat (limited to 'mk/defs.Linux.mk')
-rw-r--r--mk/defs.Linux.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index a290700bc0f..c12cf48f093 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.28 2002/07/15 16:24:01 schmonz Exp $
+# $NetBSD: defs.Linux.mk,v 1.29 2002/08/28 11:06:18 seb Exp $
#
# Variable definitions for the Linux operating system.
@@ -71,6 +71,9 @@ ROOT_CMD?= ${SU} - root -c
ROOT_GROUP?= wheel
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
+ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
USERADD?= /usr/sbin/useradd
ZOULARISBASE?= /usr/pkg