Procházet zdrojové kódy

better support SuSE

Ralf S. Engelschall před 22 roky
rodič
revize
5d0bf62e67
2 změnil soubory, kde provedl 12 přidání a 5 odebrání
  1. 1 0
      openpkg/HISTORY
  2. 11 5
      openpkg/openpkg.spec

+ 1 - 0
openpkg/HISTORY

@@ -2,6 +2,7 @@
 2003
 ====
 
+20030604 better support SuSE
 20030603 make sure 'shtool install -e ...' does not fail if file is not writeable due to permissions
 20030530 add HISTORY file to package
 20030519 upgrade to cURL 7.10.5

+ 11 - 5
openpkg/openpkg.spec

@@ -39,7 +39,7 @@
 #   o any cc(1)
 
 #   the package version/release
-%define       V_openpkg 20030603
+%define       V_openpkg 20030604
 
 #   the used software versions
 %define       V_rpm     4.0.2
@@ -1192,10 +1192,13 @@ Provides:     OpenPKG
                     elif [ -f /etc/redhat-release -o -f /etc/mandrake-release ]; then
                         sroot=/etc/rc.d/init.d
                         lroot=/etc/rc.d/rc%d.d
+                    elif [ -f /etc/SuSE-release ]; then
+                        sroot=/etc/init.d
+                        lroot=/etc/init.d/rc%d.d
                     else
                         echo "WARNING: you are not running one of the supported standard" 1>&2
-                        echo "WARNING: Linux platforms (Debian, RedHat). We are trying"   1>&2
-                        echo "WARNING: to guess the location of the system init scripts!" 1>&2
+                        echo "WARNING: Linux platforms (Debian, RedHat, Mandrake, SuSE, Gentoo)."   1>&2
+                        echo "WARNING: Guessing the location of the system init scripts!" 1>&2
                         sroot=""
                         lroot=""
                         for sr in /etc/rc.d/init.d /etc/init.d /sbin/init.d; do
@@ -1562,10 +1565,13 @@ Provides:     OpenPKG
                     elif [ -f /etc/redhat-release -o -f /etc/mandrake-release ]; then
                         sroot=/etc/rc.d/init.d
                         lroot=/etc/rc.d/rc%d.d
+                    elif [ -f /etc/SuSE-release ]; then
+                        sroot=/etc/init.d
+                        lroot=/etc/init.d/rc%d.d
                     else
                         echo "WARNING: you are not running one of the supported standard" 1>&2
-                        echo "WARNING: Linux platforms (Debian, RedHat). We are trying"   1>&2
-                        echo "WARNING: to guess the location of the system init scripts!" 1>&2
+                        echo "WARNING: Linux platforms (Debian, RedHat, Mandrake, SuSE, Gentoo)."   1>&2
+                        echo "WARNING: Guessing the location of the system init scripts!" 1>&2
                         sroot=""
                         lroot=""
                         for sr in /etc/rc.d/init.d /etc/init.d /sbin/init.d; do