POL_GetTool_samba3

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 51316
Wine: System

Retours d'expérience

Description

Script for installing Samba

Code source

if [ "$POL_OS" = "Mac" ]; then
    mkdir -p "$POL_USER_ROOT/tools/samba3/bin/"
    mkdir -p "$POL_USER_ROOT/tools/samba3/lib/"
    
    cd "$POL_USER_ROOT/tmp"
    POL_Download_Resource "$SITE/divers/samba3.tar.bz2" "0dbc91240825a13d3ff6b87302f05fc8"
    
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')"

    cd "$POL_USER_ROOT/tools/"
    tar -xvf "$POL_USER_ROOT/ressources/samba3.tar.bz2"

    
    cat << EOF > "$POL_USER_ROOT/tools/samba3/init"
export PATH="$POL_USER_ROOT/tools/samba3/bin/:\$PATH"
export DYLD_LIBRARY_PATH="$POL_USER_ROOT/tools/samba3/lib/:\$DYLD_LIBRARY_PATH"
EOF
    
    source "$POL_USER_ROOT/tools/samba3/init"
else
    # Check for Samba
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
fi  

Contributions

Filters:

Contribuer
Membre Messages
Tutul Samedi 26 Juillet 2014 à 15:46
Tutul

Information

Cette mise à jour a été acceptée par l'équipe

Messages

POM : install samba (correcton for eval_gettext)

POL : ask for installing Samba before

Differences

@@ -5,7 +5,7 @@
     cd "$POL_USER_ROOT/tmp"
     POL_Download_Resource "$SITE/divers/samba3.tar.bz2" "0dbc91240825a13d3ff6b87302f05fc8"
     
-    POL_SetupWindow_wait "$(eval_gettext "Please wait...")"
+    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')"
 
     cd "$POL_USER_ROOT/tools/"
     tar -xvf "$POL_USER_ROOT/ressources/samba3.tar.bz2"
@@ -17,4 +17,7 @@
 EOF
     
     source "$POL_USER_ROOT/tools/samba3/init"
+else
+    # Check for Samba
+    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
 fi  
\ No newline at end of file

Nouveau code source

if [ "$POL_OS" = "Mac" ]; then
    mkdir -p "$POL_USER_ROOT/tools/samba3/bin/"
    mkdir -p "$POL_USER_ROOT/tools/samba3/lib/"
    
    cd "$POL_USER_ROOT/tmp"
    POL_Download_Resource "$SITE/divers/samba3.tar.bz2" "0dbc91240825a13d3ff6b87302f05fc8"
    
    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')"

    cd "$POL_USER_ROOT/tools/"
    tar -xvf "$POL_USER_ROOT/ressources/samba3.tar.bz2"

    
    cat << EOF > "$POL_USER_ROOT/tools/samba3/init"
export PATH="$POL_USER_ROOT/tools/samba3/bin/:\$PATH"
export DYLD_LIBRARY_PATH="$POL_USER_ROOT/tools/samba3/lib/:\$DYLD_LIBRARY_PATH"
EOF
    
    source "$POL_USER_ROOT/tools/samba3/init"
else
    # Check for Samba
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
fi  

Réponses

Edité par Tutul

Quentin PÂRIS Mercredi 23 Juillet 2014 à 11:18
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -8,7 +8,7 @@
     POL_SetupWindow_wait "$(eval_gettext "Please wait...")"
 
     cd "$POL_USER_ROOT/tools/"
-    tar -xvf "$POL_USER_ROOT/tmp/samba3.tar.bz2"
+    tar -xvf "$POL_USER_ROOT/ressources/samba3.tar.bz2"
 
     
     cat << EOF > "$POL_USER_ROOT/tools/samba3/init"

Nouveau code source

if [ "$POL_OS" = "Mac" ]; then
    mkdir -p "$POL_USER_ROOT/tools/samba3/bin/"
    mkdir -p "$POL_USER_ROOT/tools/samba3/lib/"
    
    cd "$POL_USER_ROOT/tmp"
    POL_Download_Resource "$SITE/divers/samba3.tar.bz2" "0dbc91240825a13d3ff6b87302f05fc8"
    
    POL_SetupWindow_wait "$(eval_gettext "Please wait...")"

    cd "$POL_USER_ROOT/tools/"
    tar -xvf "$POL_USER_ROOT/ressources/samba3.tar.bz2"

    
    cat << EOF > "$POL_USER_ROOT/tools/samba3/init"
export PATH="$POL_USER_ROOT/tools/samba3/bin/:\$PATH"
export DYLD_LIBRARY_PATH="$POL_USER_ROOT/tools/samba3/lib/:\$DYLD_LIBRARY_PATH"
EOF
    
    source "$POL_USER_ROOT/tools/samba3/init"
fi  

Réponses

Edité par Tinou

Quentin PÂRIS Lundi 21 Juillet 2014 à 21:32
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -3,10 +3,10 @@
     mkdir -p "$POL_USER_ROOT/tools/samba3/lib/"
     
     cd "$POL_USER_ROOT/tmp"
-    POL_Download "http://nue.de.packages.macports.org/macports/packages/samba3/samba3-3.6.7_1.darwin_12.x86_64.tbz2" "fdd2fa9dd640f6e2edfd911d1946b85d"
+    POL_Download_Resource "http://nue.de.packages.macports.org/macports/packages/samba3/samba3-3.6.7_1.darwin_12.x86_64.tbz2" "fdd2fa9dd640f6e2edfd911d1946b85d"
     
     POL_SetupWindow_wait "$(eval_gettext "Please wait...")"
-    tar xvf samba3-3.6.7_1.darwin_12.x86_64.tbz2 || POL_Debug_Fatal "Samba 3 was not extracted"
+    tar xvf "$POL_USER_ROOT/ressources/samba3-3.6.7_1.darwin_12.x86_64.tbz2" || POL_Debug_Fatal "Samba 3 was not extracted"
     cp opt/local/bin/* "$POL_USER_ROOT/tools/samba3/bin/"
     cp opt/local/lib/samba3/*.dylib "$POL_USER_ROOT/tools/samba3/lib/"
     cp opt/local/lib/samba3/*.dylib.* "$POL_USER_ROOT/tools/samba3/lib/"

Nouveau code source

if [ "$POL_OS" = "Mac" ]; then
    mkdir -p "$POL_USER_ROOT/tools/samba3/bin/"
    mkdir -p "$POL_USER_ROOT/tools/samba3/lib/"
    
    cd "$POL_USER_ROOT/tmp"
    POL_Download_Resource "http://nue.de.packages.macports.org/macports/packages/samba3/samba3-3.6.7_1.darwin_12.x86_64.tbz2" "fdd2fa9dd640f6e2edfd911d1946b85d"
    
    POL_SetupWindow_wait "$(eval_gettext "Please wait...")"
    tar xvf "$POL_USER_ROOT/ressources/samba3-3.6.7_1.darwin_12.x86_64.tbz2" || POL_Debug_Fatal "Samba 3 was not extracted"
    cp opt/local/bin/* "$POL_USER_ROOT/tools/samba3/bin/"
    cp opt/local/lib/samba3/*.dylib "$POL_USER_ROOT/tools/samba3/lib/"
    cp opt/local/lib/samba3/*.dylib.* "$POL_USER_ROOT/tools/samba3/lib/"
    
    cat << EOF > "$POL_USER_ROOT/tools/samba3/init"
export PATH="$POL_USER_ROOT/tools/samba3/bin/:\$PATH"
export DYLD_LIBRARY_PATH="$POL_USER_ROOT/tools/samba3/lib/:\$DYLD_LIBRARY_PATH"
EOF
    
    source "$POL_USER_ROOT/tools/samba3/init"
fi  

Réponses

Edité par Tinou

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com