wok-4.x rev 2253
Add squirrelmail-ldapuser
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 15 22:50:52 2009 +0000 (2009-02-15) |
parents | 2fb5e163880f |
children | d3042f76641f |
files | squirrelmail-ldapuser/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/squirrelmail-ldapuser/receipt Sun Feb 15 22:50:52 2009 +0000 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="squirrelmail-ldapuser" 1.7 +VERSION="0.4" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="LDAP backend for Web mail users' profile/preferences." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="ldapuserdata" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.squirrelmail.org/" 1.14 +DEPENDS="squirrelmail openldap" 1.15 +WGET_URL="${WEB_SITE}plugins/$TARBALL" 1.16 +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail 1.22 + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins 1.23 + mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_sample.php \ 1.24 + $fs/etc/squirrelmail/config-$SOURCE.php 1.25 + ln -s /etc/squirrelmail/config-$SOURCE.php \ 1.26 + $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php 1.27 +} 1.28 + 1.29 +post_install() 1.30 +{ 1.31 + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.32 + mv $1/usr/share/squirrelmail/functions/file_prefs.php \ 1.33 + $1/usr/share/squirrelmail/functions/file_prefs.php.original 1.34 + ln -s ../plugins/ldapuserdata/file_prefs.php \ 1.35 + $1/usr/share/squirrelmail/functions/file_prefs.php 1.36 + cat >> $1/etc/openldap/slapd.conf <<EOT 1.37 +include /usr/share/squirrelmail/plugins/$SOURCE/doc/squirrelmail.schema 1.38 +EOT 1.39 +} 1.40 + 1.41 +post_remove() 1.42 +{ 1.43 + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php 1.44 + sed -i "/plugins.$SOURCE.doc/d" /etc/openldap/slapd.conf 1.45 + rm -f /usr/share/squirrelmail/functions/file_prefs.php 1.46 + mv /usr/share/squirrelmail/functions/file_prefs.php.original \ 1.47 + /usr/share/squirrelmail/functions/file_prefs.php 1.48 +}