OSSP CVS Repository

ossp - Check-in [5965]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 5965
Date: 2007-Jul-25 18:40:06 (local)
2007-Jul-25 16:40:06 (UTC)
User:rse
Branch:
Comment: detect DragonFly BSD explicitly
Tickets:
Inspections:
Files:
ossp-pkg/shtool/ChangeLog      1.235 -> 1.236     6 inserted, 0 deleted
ossp-pkg/shtool/sh.platform      1.25 -> 1.26     16 inserted, 0 deleted

ossp-pkg/shtool/ChangeLog 1.235 -> 1.236

--- ChangeLog    2007/06/04 19:42:11     1.235
+++ ChangeLog    2007/07/25 16:40:06     1.236
@@ -11,6 +11,12 @@
 
  Changes between 2.0.7 and 2.0.8 (19-May-2007 to xx-XXX-2007):
 
+   *) Detect DragonFly BSD
+      [Ralf S. Engelschall]
+
+   *) Improved AIX hardware detection
+      [Ralf S. Engelschall]
+
    *) Detect CentOS as a RHEL clone instead of a RHL clone.
       [Ralf S. Engelschall]
 


ossp-pkg/shtool/sh.platform 1.25 -> 1.26

--- sh.platform  2007/07/25 06:24:11     1.25
+++ sh.platform  2007/07/25 16:40:06     1.26
@@ -182,6 +182,22 @@
         SC="4.4BSD"
         ;;
 
+    #   DragonFly BSD
+    *:DragonFly:* )
+        #   determine architecture
+        AT="${UNAME_MACHINE}"
+        AP="${AT}"
+        case "${AP}" in
+            i[3-6]86 ) AP="iX86" ;;
+        esac
+        AC="${AP}"
+        #   determine system
+        r=`echo "${UNAME_RELEASE}" | sed -e 's/\([-_].*\)$/[\1]/'`
+        ST="DragonFly ${r}"
+        SP="${ST}"
+        SC="4.4BSD"   
+        ;;
+
     #   GNU/Linux
     *:Linux:* )
         #   determine architecture

CVSTrac 2.0.1