wok-next diff postfixadmin/receipt @ rev 12227

Up: perl-archive-zip(1.30)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Apr 09 10:50:29 2012 +0200 (2012-04-09)
parents c4e464160942
children 51a1ebbda768
line diff
     1.1 --- a/postfixadmin/receipt	Wed Mar 07 17:41:19 2012 +0100
     1.2 +++ b/postfixadmin/receipt	Mon Apr 09 10:50:29 2012 +0200
     1.3 @@ -8,7 +8,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://postfixadmin.sourceforge.net/"
     1.6  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     1.7 -DEPENDS="php php-mysqli postfix mysql_or_postgresql"
     1.8 +DEPENDS="php php-mysqli php-imap postfix mysql_or_postgresql"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12 @@ -19,12 +19,28 @@
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16 -	mkdir -p $fs/usr/share/postfixadmin $fs/etc/postfixadmin
    1.17 +	mkdir -p $fs/usr/share/postfixadmin \
    1.18 +		$fs/etc/postfixadmin \
    1.19 +		$fs/usr/share/doc/postfixadmin \
    1.20 +		$fs/usr/lib/postfixadmin 
    1.21 +		
    1.22  	cp -a $src/* $fs/usr/share/postfixadmin/
    1.23  	mv $fs/usr/share/postfixadmin/config.inc.php $fs/etc/postfixadmin
    1.24  	ln -s /etc/postfixadmin/config.inc.php $fs/usr/share/postfixadmin/config.inc.php
    1.25  	sed -i 's/false/true/' $fs/etc/postfixadmin/config.inc.php
    1.26  	
    1.27 +	# Remove unwanted files
    1.28 +	rm -rf $fs/usr/share/postfixadmin/debian
    1.29 +	
    1.30 +	# Move docs
    1.31 +	mv $fs/usr/share/postfixadmin/*.TXT $fs/usr/share/doc/postfixadmin
    1.32 +	mv $fs/usr/share/postfixadmin/DOCUMENTS $fs/usr/share/doc/postfixadmin
    1.33 +	mv $fs/usr/share/postfixadmin/ADDITIONS/* $fs/usr/lib/postfixadmin
    1.34 +	mv $fs/usr/share/postfixadmin/VIRTUAL_VACATION/*.pl $fs/usr/lib/postfixadmin
    1.35 +	mv $fs/usr/share/postfixadmin/VIRTUAL_VACATION/ $fs/usr/share/doc/postfixadmin
    1.36 +		
    1.37 +	rm -rf $fs/usr/share/postfixadmin/ADDITIONS
    1.38 +	
    1.39  	# Fix group
    1.40  	chown -R root.root $fs/usr/share/postfixadmin/
    1.41  }
    1.42 @@ -65,3 +81,6 @@
    1.43  		fi
    1.44  	fi
    1.45  }
    1.46 +
    1.47 +
    1.48 +