summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache>2010-01-16 02:16:35 +0000
committerobache <obache>2010-01-16 02:16:35 +0000
commitf77c305a1532b10f147cf56037c3c38604b50c14 (patch)
treeb1892ac7a903994a4263b6d9856e9c9f40efb432
parent8d5af18b585e84206c2fecad99f77e85bc75b9bb (diff)
downloadpkgsrc-f77c305a1532b10f147cf56037c3c38604b50c14.tar.gz
Add support of SSD/Linux.
* ROOT_GROUP=wheel, fixes PR#42073. * LOWER_VENDOR=ssd * adjust paths for some tools
-rwxr-xr-xbootstrap/bootstrap9
-rw-r--r--mk/bsd.prefs.mk4
-rw-r--r--mk/platform/Linux.mk6
-rw-r--r--mk/tools/tools.Linux.mk15
4 files changed, 27 insertions, 7 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 4afbec38688..50923fa7af5 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.151 2009/12/13 08:35:22 obache Exp $
+# $NetBSD: bootstrap,v 1.152 2010/01/16 02:16:35 obache Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -533,10 +533,11 @@ IRIX*)
fi
;;
Linux)
- if [ -f /etc/debian_version ]; then
- DEBIAN=yes
+ if [ -f /etc/ssdlinux_version ]; then
+ root_group=wheel
+ else
+ root_group=root
fi
- root_group=root
need_bsd_install=no
need_awk=no
need_sed=no
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index fe15a58d750..5b5addbfa62 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.302 2010/01/06 18:21:44 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.303 2010/01/16 02:16:35 obache Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -219,6 +219,8 @@ LOWER_VENDOR?= mandrake
LOWER_VENDOR?= redhat
. elif exists(/etc/slackware-version)
LOWER_VENDOR?= slackware
+. elif exists(/etc/ssdlinux_version)
+LOWER_VENDOR?= ssd
. elif ${LOWER_ARCH} == "i386"
LOWER_VENDOR?= pc
. endif
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
index 7ae327921ac..f0c2c69ae19 100644
--- a/mk/platform/Linux.mk
+++ b/mk/platform/Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.34 2009/07/26 05:32:43 agc Exp $
+# $NetBSD: Linux.mk,v 1.35 2010/01/16 02:16:35 obache Exp $
#
# Variable definitions for the Linux operating system.
@@ -23,7 +23,11 @@ MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
NOLOGIN?= /bin/false
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
ROOT_CMD?= ${SU} - root -c
+.if exists(/etc/ssdlinux_version)
+ROOT_GROUP?= wheel
+.else
ROOT_GROUP?= root
+.endif
ROOT_USER?= root
SERIAL_DEVICES?= /dev/null
ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
diff --git a/mk/tools/tools.Linux.mk b/mk/tools/tools.Linux.mk
index d108f9ea01a..d5b732b7b13 100644
--- a/mk/tools/tools.Linux.mk
+++ b/mk/tools/tools.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.Linux.mk,v 1.45 2009/10/11 07:36:11 tnn Exp $
+# $NetBSD: tools.Linux.mk,v 1.46 2010/01/16 02:16:35 obache Exp $
#
# System-supplied tools for the Linux operating system.
@@ -63,7 +63,11 @@ TOOLS_PLATFORM.egrep?= /bin/egrep
TOOLS_PLATFORM.egrep?= /usr/bin/egrep
.endif
TOOLS_PLATFORM.env?= /usr/bin/env
+.if exists(/usr/bin/expr)
TOOLS_PLATFORM.expr?= /usr/bin/expr
+.elif exists(/bin/expr)
+TOOLS_PLATFORM.expr?= /bin/expr
+.endif
TOOLS_PLATFORM.false?= false # shell builtin
.if exists(/bin/fgrep)
TOOLS_PLATFORM.fgrep?= /bin/fgrep
@@ -99,7 +103,11 @@ TOOLS_PLATFORM.gsed?= /usr/bin/sed
.if exists(/usr/bin/soelim)
TOOLS_PLATFORM.gsoelim?= /usr/bin/soelim
.endif
+.if exists(/bin/tar)
TOOLS_PLATFORM.gtar?= /bin/tar
+.elif exists(/usr/bin/tar)
+TOOLS_PLATFORM.gtar?= /usr/bin/tar
+.endif
.if exists(/bin/gunzip)
TOOLS_PLATFORM.gunzip?= /bin/gunzip -f
.elif exists(/usr/bin/gunzip)
@@ -107,6 +115,8 @@ TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f
.endif
.if exists(/bin/zcat)
TOOLS_PLATFORM.gzcat?= /bin/zcat
+.elif exists(/usr/bin/zcat)
+TOOLS_PLATFORM.gzcat?= /usr/bin/zcat
.endif
.if exists(/bin/gzip)
TOOLS_PLATFORM.gzip?= /bin/gzip -nf ${GZIP}
@@ -222,3 +232,6 @@ TOOLS_PLATFORM.xargs?= /usr/bin/xargs -r
.if exists(/usr/bin/xgettext)
TOOLS_PLATFORM.xgettext?= /usr/bin/xgettext
.endif
+.if exists(/usr/bin/yacc)
+TOOLS_PLATFORM.yacc?= /usr/bin/yacc
+.endif