wok view postfixadmin/receipt @ rev 14491
libwebkit-video: fix bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat May 04 21:58:46 2013 +0200 (2013-05-04) |
parents | c4e464160942 |
children | 51a1ebbda768 |
line source
1 # SliTaz package receipt.
3 PACKAGE="postfixadmin"
4 VERSION="2.3.5"
5 CATEGORY="network"
6 SHORT_DESC="Postfix web administration."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://postfixadmin.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 DEPENDS="php php-mysqli php-imap postfix mysql_or_postgresql"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/share/postfixadmin \
23 $fs/etc/postfixadmin \
24 $fs/usr/share/doc/postfixadmin \
25 $fs/usr/lib/postfixadmin
27 cp -a $src/* $fs/usr/share/postfixadmin/
28 mv $fs/usr/share/postfixadmin/config.inc.php $fs/etc/postfixadmin
29 ln -s /etc/postfixadmin/config.inc.php $fs/usr/share/postfixadmin/config.inc.php
30 sed -i 's/false/true/' $fs/etc/postfixadmin/config.inc.php
32 # Remove unwanted files
33 rm -rf $fs/usr/share/postfixadmin/debian
35 # Move docs
36 mv $fs/usr/share/postfixadmin/*.TXT $fs/usr/share/doc/postfixadmin
37 mv $fs/usr/share/postfixadmin/DOCUMENTS $fs/usr/share/doc/postfixadmin
38 mv $fs/usr/share/postfixadmin/ADDITIONS/* $fs/usr/lib/postfixadmin
39 mv $fs/usr/share/postfixadmin/VIRTUAL_VACATION/*.pl $fs/usr/lib/postfixadmin
40 mv $fs/usr/share/postfixadmin/VIRTUAL_VACATION/ $fs/usr/share/doc/postfixadmin
42 rm -rf $fs/usr/share/postfixadmin/ADDITIONS
44 # Fix group
45 chown -R root.root $fs/usr/share/postfixadmin/
46 }
48 post_install()
49 {
50 # Configure lighttpd server
51 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
52 if ! grep -q /usr/share/postfixadmin/ $1/etc/lighttpd/lighttpd.conf; then
53 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/postfixadmin/" => "/usr/share/postfixadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
54 if [ -z "$1" ]; then
55 # Start Web server.
56 /etc/init.d/lighttpd stop
57 /etc/init.d/lighttpd start
58 fi
59 fi
60 fi
61 # Configure apache server
62 if [ -f $1/etc/apache/httpd.conf ]; then
63 if [ ! -f $1/etc/apache/conf.d/postfixadmin ]; then
64 cat > $1/etc/apache/conf.d/postfixadmin <<EOT
65 <IfModule mod_alias.c>
66 Alias /postfixadmin /usr/share/postfixadmin
67 </IfModule>
68 <DirectoryMatch /usr/share/postfixadmin/>
69 DirectoryIndex index.php
70 Options +FollowSymLinks
71 AllowOverride None
72 Order allow,deny
73 Allow from all
74 </DirectoryMatch>
75 EOT
76 if [ -z "$1" ]; then
77 # Start Web server.
78 /etc/init.d/apache stop
79 /etc/init.d/apache start
80 fi
81 fi
82 fi
83 }