wok-current view squirrelmail-compatibility-plugin/receipt @ rev 23807
eudev: include relocated udevadm
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun May 24 12:23:14 2020 -0400 (2020-05-24) |
parents | 9e01bc6321ea |
children | 46dcc80bef41 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-compatibility-plugin"
4 VERSION="2.0.16-1.0"
5 CATEGORY="network"
6 SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="compatibility"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR
23 cp -a $src $DESTDIR/$SOURCE
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/squirrelmail/plugins
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 }
33 post_install()
34 {
35 local file
36 local line
37 file="$1/usr/share/squirrelmail/functions/strings.php"
38 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
39 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
40 }