1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../astguiclient/astguiclient.conf
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
16 prefix=$( pkgprefix asterisk )
19 var_append zipopt ' ' "-d $pkg-$ver"
21 astguiclient_config() {
22 mkdir -p $datadir/{agi-bin,htdocs}
24 sed -i -e "s,^\(\$sounds *=\).*,\1 '$datadir/sounds';," \
25 -e "s,^\(\$monitor *=\).*,\1 '$localstatedir/spool';," \
26 -e "s,^\(\$agibin *=\).*,\1 '$datadir/agi-bin';," \
27 -e "s,^\(\$webroot *=\).*,\1 '$datadir/htdocs';," \
28 -e "s,^\(\$home *=\).*,\1 '$prefix/$pkg';," \
29 install_server_files.pl
32 hook_add preconf 5 'astguiclient_config'
37 hook_add postmake 5 'perl install_server_files.pl'