wok-4.x rev 1247
Add smbwebclient
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 12 14:54:18 2008 +0000 (2008-08-12) |
parents | 302fa891a6d2 |
children | 82fdbbcbcc41 |
files | phpldapadmin/stuff/phpldapadmin.desktop phpmyadmin/stuff/phpmyadmin.desktop phppgadmin/stuff/phppgadmin.desktop smbwebclient/receipt smbwebclient/stuff/etc/samba/smbwebclient.conf smbwebclient/stuff/usr/share/applications/smbwebclient.desktop smbwebclient/stuff/usr/share/samba/index.php |
line diff
1.1 --- a/phpldapadmin/stuff/phpldapadmin.desktop Tue Aug 12 07:29:31 2008 +0000 1.2 +++ b/phpldapadmin/stuff/phpldapadmin.desktop Tue Aug 12 14:54:18 2008 +0000 1.3 @@ -1,6 +1,7 @@ 1.4 [Desktop Entry] 1.5 Encoding=UTF-8 1.6 Name=LDAP Databases 1.7 +Name[fr]=Bases de données LDAP 1.8 Icon=/usr/share/phpldapadmin/htdocs/images/object.png 1.9 Exec=firefox http://127.0.0.1/phpldapadmin/ 1.10 Type=Application
2.1 --- a/phpmyadmin/stuff/phpmyadmin.desktop Tue Aug 12 07:29:31 2008 +0000 2.2 +++ b/phpmyadmin/stuff/phpmyadmin.desktop Tue Aug 12 14:54:18 2008 +0000 2.3 @@ -1,6 +1,7 @@ 2.4 [Desktop Entry] 2.5 Encoding=UTF-8 2.6 Name=MySQL Databases 2.7 +Name[fr]=Bases de données MySQL 2.8 Icon=/usr/share/phpmyadmin/themes/original/img/b_sql.png 2.9 Exec=firefox http://127.0.0.1/phpmyadmin/ 2.10 Type=Application
3.1 --- a/phppgadmin/stuff/phppgadmin.desktop Tue Aug 12 07:29:31 2008 +0000 3.2 +++ b/phppgadmin/stuff/phppgadmin.desktop Tue Aug 12 14:54:18 2008 +0000 3.3 @@ -1,6 +1,7 @@ 3.4 [Desktop Entry] 3.5 Encoding=UTF-8 3.6 Name=PostgreSQL Databases 3.7 +Name[fr]=Bases de données PostgreSQL 3.8 Icon=/usr/share/phppgadmin/images/themes/default/Introduction.png 3.9 Exec=firefox http://127.0.0.1/phppgadmin/ 3.10 Type=Application
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/smbwebclient/receipt Tue Aug 12 14:54:18 2008 +0000 4.3 @@ -0,0 +1,63 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="smbwebclient" 4.7 +VERSION="2.9" 4.8 +CATEGORY="network" 4.9 +SHORT_DESC="Samba client over the Web." 4.10 +MAINTAINER="pascal.bellard@slitaz.org" 4.11 +WEB_SITE="http://$PACKAGE.sourceforge.net/" 4.12 +DEPENDS="php smbclient" 4.13 +CONFIG_FILES="/etc/samba/smbwebclient.conf" 4.14 + 4.15 +# Rules to configure and make the package. 4.16 +compile_rules() 4.17 +{ 4.18 + if [ ! -d $src ]; then 4.19 + mkdir -p $src 4.20 + wget $SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION.php.gz 4.21 + mv $PACKAGE-$VERSION.php.gz $src 4.22 + gunzip $src/$PACKAGE-$VERSION.php.gz 4.23 + fi 4.24 +} 4.25 + 4.26 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.27 +genpkg_rules() 4.28 +{ 4.29 + mkdir -p $fs/usr/share/samba $fs/etc/samba 4.30 + cp -a $src/. $fs/usr/share/samba 4.31 + cp -a stuff/* $fs 4.32 +} 4.33 + 4.34 +post_install() 4.35 +{ 4.36 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 4.37 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 4.38 +etc/samba/smbwebclient.conf 4.39 +EOT 4.40 + if [ -f $1/etc/locale.conf ]; then 4.41 + lang=$(. /etc/locale.conf; echo ${LANG%_*}) 4.42 + sed -i "s/DefaultLanguage = 'us'/DefaultLanguage = '$lang'/" \ 4.43 + $1/etc/samba/smbwebclient.conf 4.44 + fi 4.45 + 4.46 + if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 4.47 + if ! grep -q /usr/share/samba/ $1/etc/lighttpd/lighttpd.conf; then 4.48 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/smbwebclient/" => "/usr/share/samba/",|g' -i $1/etc/lighttpd/lighttpd.conf 4.49 + if [ -z "$1" ]; then 4.50 + # Start Web server. 4.51 + /etc/init.d/lighttpd stop 4.52 + /etc/init.d/lighttpd start 4.53 + fi 4.54 + fi 4.55 + fi 4.56 + cat <<EOF 4.57 +--- 4.58 +Check \$cfgDefaultServer in configuration file /etc/samba/smbwebclient.conf 4.59 +--- 4.60 +EOF 4.61 +} 4.62 + 4.63 +repack_cleanup() 4.64 +{ 4.65 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 4.66 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/smbwebclient/stuff/etc/samba/smbwebclient.conf Tue Aug 12 14:54:18 2008 +0000 5.3 @@ -0,0 +1,11 @@ 5.4 +<?php 5.5 + class smbwebclient_config extends smbwebclient { 5.6 + var $cfgSambaRoot = ''; 5.7 + var $cfgDefaultServer = 'localhost'; 5.8 + var $cfgAnonymous = true; 5.9 + var $cfgDefaultLanguage = 'us'; 5.10 + var $cfgDefaultCharset = 'ISO-8859-15'; 5.11 + var $cfgAuthMode = 'SMB_AUTH_ENV'; 5.12 + var $cfgDefaultFontSize = '12pt'; 5.13 + } 5.14 +?>
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/smbwebclient/stuff/usr/share/applications/smbwebclient.desktop Tue Aug 12 14:54:18 2008 +0000 6.3 @@ -0,0 +1,8 @@ 6.4 +[Desktop Entry] 6.5 +Encoding=UTF-8 6.6 +Name=Samba network 6.7 +Name[fr]=Réseau Samba 6.8 +Icon=network-idle.png 6.9 +Exec=firefox http://127.0.0.1/smbwebclient/ 6.10 +Type=Application 6.11 +Categories=Network;Application;
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/smbwebclient/stuff/usr/share/samba/index.php Tue Aug 12 14:54:18 2008 +0000 7.3 @@ -0,0 +1,7 @@ 7.4 +<?php 7.5 + $SMBWEBCLIENT_CLASS = 'smbwebclient_config'; 7.6 + include '/usr/share/samba/smbwebclient-2.9.php'; 7.7 + include '/etc/samba/smbwebclient.conf'; 7.8 + $swc = new smbwebclient_config; 7.9 + $swc->Run(); 7.10 +?>