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.

77 lines
2.5 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/rene/subversion/subversion.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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 [ "$xpkg" = subversion-static ]
  23. then
  24. # this is the subversion-static package
  25. svn_static_pm()
  26. {
  27. for prg in svnadmin/svnadmin svnlook/svnlook svnversion/svnversion \
  28. svndumpfilter/svndumpfilter svndumpfilter/svndumpfilter \
  29. clients/cmdline/svn
  30. do
  31. xprg=$(basename $prg)
  32. cp -v subversion/$prg \
  33. $root/$prefix/bin/$xprg-$arch_machine-static-$ver
  34. ln -sfv $xprg-$arch-static-$ver \
  35. $root/$prefix/bin/$xprg-$arch-static
  36. done
  37. }
  38. createdocs=0
  39. makeinstopt=""
  40. var_append extraconfopt " " "--enable-all-static"
  41. hook_add postmake 3 svn_static_pm
  42. else
  43. # use the apache prefix
  44. . $base/package/*/apache/apache.conf
  45. # all this is to build the apache server-side module
  46. # and to make sure no locally included APR stuff get's installed
  47. # as well as no modification to httpd.conf is done ...
  48. if pkginstalled apache; then
  49. var_append extraconfopt " " "--with-apxs=/$prefix/sbin/apxs \
  50. --with-apr=/$prefix/bin/apr-config --with-apr-util=/$prefix \
  51. --disable-mod-activation"
  52. # --with-berkeley-db=/usr/include/db40:/usr/lib
  53. fi
  54. # use system wide neon
  55. var_append extraconfopt " " "--with-neon=$root/usr"
  56. # build and install perl bindings
  57. svn_inst_pl() {
  58. make swig-pl-lib
  59. cd subversion/bindings/swig/perl
  60. perl Makefile.PL; make all
  61. make -C $OLDPWD install-swig-pl-lib
  62. make install; cd $OLDPWD
  63. }
  64. hook_add postmake 3 "install_init svnserve $confdir/svnserve.init"
  65. hook_add postmake 4 "cp -vrf tools $docdir"
  66. # if swig is present build and install the perl
  67. pkginstalled swig && hook_add postmake 5 "svn_inst_pl"
  68. fi