
Receipt for package "squirrelmail-ldapuser"
# 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" LICENSE="GPL2" SOURCE="ldapuserdata" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="https://www.squirrelmail.org/" WGET_URL="${WEB_SITE}plugins/$TARBALL" CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" HOST_ARCH="any" DEPENDS="squirrelmail openldap" current_version() { wget -O - "$WEB_SITE/plugin_view.php?id=97" 2>/dev/null | \ sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q" } # Rules to configure and make the package. compile_rules() { mkdir -p $DESTDIR cp -a $src $DESTDIR/$SOURCE } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail cp -a $install/$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" <<EOT include /usr/share/squirrelmail/plugins/$SOURCE/doc/squirrelmail.schema EOT } pre_remove() { sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php sed -i "/plugins.$SOURCE.doc/d" /etc/openldap/slapd.conf rm -f /usr/share/squirrelmail/functions/file_prefs.php mv /usr/share/squirrelmail/functions/file_prefs.php.original \ /usr/share/squirrelmail/functions/file_prefs.php }
6011 packages and 861692 files in cooking database (Sun Apr 20 00:48:06 2025)