OpenSDE Packages Database (without history before r20070)
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.

37 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../astguiclient/astguiclient.conf
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  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. # --- SDE-COPYRIGHT-NOTE-END ---
  14. pkgprefix -t asterisk
  15. prefix=$( pkgprefix asterisk )
  16. set_confopt
  17. var_append zipopt ' ' "-d $pkg-$ver"
  18. astguiclient_config() {
  19. mkdir -p $datadir/{agi-bin,htdocs}
  20. mkdir -p $prefix/$pkg
  21. sed -i -e "s,^\(\$sounds *=\).*,\1 '$datadir/sounds';," \
  22. -e "s,^\(\$monitor *=\).*,\1 '$localstatedir/spool';," \
  23. -e "s,^\(\$agibin *=\).*,\1 '$datadir/agi-bin';," \
  24. -e "s,^\(\$webroot *=\).*,\1 '$datadir/htdocs';," \
  25. -e "s,^\(\$home *=\).*,\1 '$prefix/$pkg';," \
  26. install_server_files.pl
  27. }
  28. hook_add preconf 5 'astguiclient_config'
  29. makeopt=
  30. makeinstopt=
  31. hook_add postmake 5 'perl install_server_files.pl'