wok view squirrelmail-ldapuser/receipt @ rev 16100
Up php (5.4.26) with CVE-2014-1943 fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 17 11:15:00 2014 +0000 (2014-03-17) |
parents | 91a615759636 |
children | d51b2411e55e |
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"
15 DEPENDS="squirrelmail openldap"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config_sample.php \
30 $fs/etc/squirrelmail/config-$SOURCE.php
31 ln -s /etc/squirrelmail/config-$SOURCE.php \
32 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
33 }
35 post_install()
36 {
37 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
38 mv $1/usr/share/squirrelmail/functions/file_prefs.php \
39 $1/usr/share/squirrelmail/functions/file_prefs.php.original
40 ln -s ../plugins/ldapuserdata/file_prefs.php \
41 $1/usr/share/squirrelmail/functions/file_prefs.php
42 cat >> $1/etc/openldap/slapd.conf <<EOT
43 include /usr/share/squirrelmail/plugins/$SOURCE/doc/squirrelmail.schema
44 EOT
45 }
47 pre_remove()
48 {
49 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
50 sed -i "/plugins.$SOURCE.doc/d" /etc/openldap/slapd.conf
51 rm -f /usr/share/squirrelmail/functions/file_prefs.php
52 mv /usr/share/squirrelmail/functions/file_prefs.php.original \
53 /usr/share/squirrelmail/functions/file_prefs.php
54 }