POL_GetTool_samba3

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 51038
Wine: System

Feedbacks

Description

Script for installing Samba

Source code

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:

Contribute
Member Message
Tutul Saturday 26 July 2014 at 15:46
Tutul

Information

This update has been approved by the team.

Message

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

New source code

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  

Replies

Edited by Tutul

Quentin PÂRIS Wednesday 23 July 2014 at 11:18
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

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"

New source code

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  

Replies

Edited by Tinou

Quentin PÂRIS Monday 21 July 2014 at 21:32
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

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/"

New source code

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  

Replies

Edited by 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