mirror of the now-defunct rocklinux.org
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.

71 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/mnemoc/clip/clip.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. if [ $prefix_auto = 1 ] ; then
  23. prefix="opt/clip"
  24. set_confopt
  25. fi
  26. export CLIPROOT=$root/$prefix
  27. export BINDIR=$CLIPROOT/bin
  28. clip_examples() {
  29. cd $builddir/$xsrcdir
  30. # install examples
  31. mkdir -p $docdir/example/clip/
  32. cp -dRf example/* $docdir/example/clip/
  33. # profile.d
  34. echo "export CLIPROOT=$CLIPROOT" > $root/etc/profile.d/clip
  35. }
  36. clip_patch() {
  37. # they release a patch.tgz to overwrite files of last release
  38. # for 'updating' to last stable build.
  39. if grep -q -e "^\[D\] .* patch-$ver.tgz" $confdir/clip.desc; then
  40. echo "Patching CLIP to $ver."
  41. pushd ..
  42. ln -sv ${xsrcdir##*/} clip-prg
  43. tar -v $taropt $archdir/patch-$ver.tbz2
  44. popd
  45. fi
  46. }
  47. # first make for clip
  48. hook_add preconf 9 'cd clip'
  49. makeopt="install"
  50. # and the second for cliplibs :)
  51. hook_add inmake 5 'cd ../cliplibs'
  52. makeinstopt="$makeopt"
  53. hook_add prepatch 5 'clip_patch'
  54. hook_add postdoc 5 'clip_examples'
  55. hook_add postpatch 5 'mv cliplibs/clip-postgres/Makefile \
  56. cliplibs/clip-postgres/Makefile.in
  57. chmod +x cliplibs/clip-postgres/configure'