wok view squirrelmail-ldapuser/receipt @ rev 23560

updated python-shapely (1.3.2 -> 1.7.0)
author Hans-G?nter Theisgen
date Tue Apr 07 07:45:52 2020 +0100 (2020-04-07)
parents d51b2411e55e
children 46dcc80bef41
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-ldapuser"
4 VERSION="0.4"
5 CATEGORY="network"
6 SHORT_DESC="LDAP backend for Web mail users' profile/preferences."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="ldapuserdata"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail openldap"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR
22 cp -a $src $DESTDIR/$SOURCE
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_sample.php \
31 $fs/etc/squirrelmail/config-$SOURCE.php
32 ln -s /etc/squirrelmail/config-$SOURCE.php \
33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
34 }
36 post_install()
37 {
38 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
39 mv "$1/usr/share/squirrelmail/functions/file_prefs.php" \
40 "$1/usr/share/squirrelmail/functions/file_prefs.php.original"
41 ln -s ../plugins/ldapuserdata/file_prefs.php \
42 "$1/usr/share/squirrelmail/functions/file_prefs.php"
43 cat >> "$1/etc/openldap/slapd.conf" <<EOT
44 include /usr/share/squirrelmail/plugins/$SOURCE/doc/squirrelmail.schema
45 EOT
46 }
48 pre_remove()
49 {
50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
51 sed -i "/plugins.$SOURCE.doc/d" /etc/openldap/slapd.conf
52 rm -f /usr/share/squirrelmail/functions/file_prefs.php
53 mv /usr/share/squirrelmail/functions/file_prefs.php.original \
54 /usr/share/squirrelmail/functions/file_prefs.php
55 }