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.

51 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../horde/horde-conf.in
  5. # Copyright (C) 2006 The OpenSDE 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. if [ "$pkg" == "horde" ]; then
  15. prefix=opt/horde
  16. set_confopt
  17. else
  18. pkgprefix -t horde
  19. prefix=$( pkgprefix horde )
  20. set_confopt
  21. datadir=$datadir/${pkg#horde-}
  22. docdir=${docdir%/*}/${pkg#horde-}
  23. fi
  24. runconf=0
  25. makeopt=
  26. makeinstopt=
  27. horde_install() {
  28. local x=
  29. echo "Installing docs/* ..."
  30. [ ! -e $root$datadir/docs ] || ln -s $sysconfdir $root$datadir/docs
  31. find docs/ -mindepth 1 -type d | while read x; do
  32. mkdir -vp $root$docdir/${x#docs/}
  33. done
  34. find docs/ -type f | while read x; do
  35. mv -vf $x $root$docdir/${x#docs/}
  36. done
  37. for x in README COPYING LICENSE; do
  38. [ ! -e $x ] || mv -vf $x $root$docdir/
  39. done
  40. echo "Installing the rest ..."
  41. rm -rvf docs
  42. tar -cf - * .[^.]* | tar -C $root$datadir -xvf -
  43. }
  44. hook_add postmake 5 'horde_install'