wok-next view smbwebclient/receipt @ rev 16967
Add liblouis and liblouis-dev.
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Jul 31 18:56:58 2014 -0300 (2014-07-31) |
parents | 3b4e4318134e |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="smbwebclient"
4 VERSION="2.9"
5 CATEGORY="network"
6 SHORT_DESC="Samba client over the Web."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.php.gz"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/samba/smbwebclient.conf"
13 HOST_ARCH="any"
15 DEPENDS="php smbclient"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 if [ ! -d $src ]; then
21 mkdir -p $src
22 cp $SOURCES_REPOSITORY/$TARBALL $src
23 gunzip $src/$TARBALL
24 fi
26 mkdir -p $fs/usr/share/samba $fs/etc/samba
27 cp -a $src/. $fs/usr/share/samba
28 cp -a $stuff/* $fs
29 }
31 post_install()
32 {
33 if [ -f $1/etc/locale.conf ]; then
34 lang=$(. /etc/locale.conf; echo ${LANG%_*})
35 sed -i "s/DefaultLanguage = 'us'/DefaultLanguage = '$lang'/" \
36 $1/etc/samba/smbwebclient.conf
37 fi
39 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
40 if ! grep -q /usr/share/samba/ $1/etc/lighttpd/lighttpd.conf; then
41 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/smbwebclient/" => "/usr/share/samba/",|g' -i $1/etc/lighttpd/lighttpd.conf
42 if [ -z "$1" ]; then
43 # Start Web server.
44 /etc/init.d/lighttpd stop
45 /etc/init.d/lighttpd start
46 fi
47 fi
48 fi
49 # Configure apache server
50 if [ -f $1/etc/apache/httpd.conf ]; then
51 if [ ! -f $1/etc/apache/conf.d/smbwebclient ]; then
52 cat > $1/etc/apache/conf.d/smbwebclient <<EOT
53 <IfModule mod_alias.c>
54 Alias /smbwebclient /usr/share/samba
55 </IfModule>
56 <DirectoryMatch /usr/share/samba/>
57 DirectoryIndex index.php
58 Options +FollowSymLinks
59 AllowOverride None
60 Order allow,deny
61 Allow from all
62 </DirectoryMatch>
63 EOT
64 if [ -z "$1" ]; then
65 # Start Web server.
66 /etc/init.d/apache restart
67 fi
68 fi
69 fi
70 cat <<EOF
71 ---
72 Check \$cfgDefaultServer in configuration file /etc/samba/smbwebclient.conf
73 ---
74 EOF
75 }