You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

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