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.

106 lines
3.3 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 - 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. # use system wide neon
  23. pkginstalled neon && var_append extraconfopt " " "--with-neon=$root/usr"
  24. if [ "$xpkg" = subversion-static ]
  25. then
  26. # this is the subversion-static package
  27. svn_static_pm()
  28. {
  29. for prg in svnadmin/svnadmin svnlook/svnlook svnversion/svnversion \
  30. svndumpfilter/svndumpfilter svndumpfilter/svndumpfilter \
  31. clients/cmdline/svn
  32. do
  33. xprg=$(basename $prg)
  34. cp -v subversion/$prg \
  35. $root/$prefix/bin/$xprg-$arch_machine-static-$ver
  36. ln -sfv $xprg-$arch-static-$ver \
  37. $root/$prefix/bin/$xprg-$arch-static
  38. done
  39. }
  40. createdocs=0
  41. makeinstopt=""
  42. var_append extraconfopt " " "--enable-all-static"
  43. hook_add postmake 3 svn_static_pm
  44. else
  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. apacheprefix=${ROCKCFG_PKG_APACHE_PREFIX:-opt/apache}
  50. var_append extraconfopt " " "--with-apxs=/$apacheprefix/sbin/apxs \
  51. --with-apr=/$apacheprefix/bin/apr-config --with-apr-util=/$apacheprefix \
  52. --disable-mod-activation"
  53. if [ "$ROCKCFG_PKG_APACHE_BDB" ] ; then
  54. var_append extraconfopt " " \
  55. "--with-berkeley-db=/usr/include/${ROCKCFG_PKG_APACHE_BDB#b}:/usr/lib"
  56. fi
  57. fi
  58. # build and install perl bindings
  59. svn_inst_pl() {
  60. make swig-pl-lib
  61. cd subversion/bindings/swig/perl/native
  62. perl Makefile.PL; make all
  63. make -C $OLDPWD install-swig-pl-lib
  64. make install; cd $OLDPWD
  65. }
  66. # build and install python bindings
  67. svn_inst_py() {
  68. make swig-py
  69. make install-swig-py
  70. }
  71. # install etc/profile.d/subversion
  72. svn_inst_profile() {
  73. cat > $root/etc/profile.d/subversion <<-EOF
  74. export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/svn-python
  75. EOF
  76. }
  77. hook_add postmake 3 "install_init svnserve $confdir/svnserve.init"
  78. hook_add postmake 4 "cp -vrf tools $docdir"
  79. # if swig is present build and install the perl and python bindings
  80. pkginstalled swig && [ -n "$( type -p perl )" ] && hook_add postmake 5 "svn_inst_pl"
  81. pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py"
  82. hook_add postmake 5 "svn_inst_profile"
  83. if pkginstalled apache ; then
  84. splitdesc_apache() {
  85. desc_I="Apache module for subversion"
  86. }
  87. splitreg 50 apache ${apacheprefix}.*mod_.*so
  88. fi
  89. splitdesc_server() {
  90. desc_I="$desc_I (server binaries)"
  91. }
  92. splitreg 51 server /svn[^.]\+[^th]$
  93. splitreg 52 server rc\.d
  94. fi