# HG changeset patch # User Pascal Bellard # Date 1234738252 0 # Node ID fb1f0177e4efda5f1ab315fb7121246c332cacb3 # Parent 2fb5e163880f9458058186a26a9577247cdde2cd Add squirrelmail-ldapuser diff -r 2fb5e163880f -r fb1f0177e4ef squirrelmail-ldapuser/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-ldapuser/receipt Sun Feb 15 22:50:52 2009 +0000 @@ -0,0 +1,45 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-ldapuser" +VERSION="0.4" +CATEGORY="network" +SHORT_DESC="LDAP backend for Web mail users' profile/preferences." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="ldapuserdata" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail openldap" +WGET_URL="${WEB_SITE}plugins/$TARBALL" +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins + mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_sample.php \ + $fs/etc/squirrelmail/config-$SOURCE.php + ln -s /etc/squirrelmail/config-$SOURCE.php \ + $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php +} + +post_install() +{ + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php + mv $1/usr/share/squirrelmail/functions/file_prefs.php \ + $1/usr/share/squirrelmail/functions/file_prefs.php.original + ln -s ../plugins/ldapuserdata/file_prefs.php \ + $1/usr/share/squirrelmail/functions/file_prefs.php + cat >> $1/etc/openldap/slapd.conf <