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.

119 lines
3.7 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 - 2005 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. pkginstalled sun-jdk14 && var_append extraconfopt " " "--enable-javahl --with-jdk=/opt/j2sdk1.4.2_09/"
  25. if [ "$xpkg" = subversion-static ]
  26. then
  27. # this is the subversion-static package
  28. svn_static_pm()
  29. {
  30. for prg in svnadmin/svnadmin svnlook/svnlook svnversion/svnversion \
  31. svndumpfilter/svndumpfilter svndumpfilter/svndumpfilter \
  32. clients/cmdline/svn
  33. do
  34. xprg=$(basename $prg)
  35. cp -v subversion/$prg \
  36. $root/$prefix/bin/$xprg-$arch_machine-static-$ver
  37. ln -sfv $xprg-$arch-static-$ver \
  38. $root/$prefix/bin/$xprg-$arch-static
  39. done
  40. }
  41. createdocs=0
  42. makeinstopt=""
  43. var_append extraconfopt " " "--enable-all-static"
  44. hook_add postmake 3 svn_static_pm
  45. else
  46. # all this is to build the apache server-side module
  47. # and to make sure no locally included APR stuff get's installed
  48. # as well as no modification to httpd.conf is done ...
  49. if pkginstalled apache; then
  50. apacheprefix=${ROCKCFG_PKG_APACHE_PREFIX:-opt/apache}
  51. var_append extraconfopt " " "--with-apxs=/$apacheprefix/sbin/apxs \
  52. --with-apr=/$apacheprefix/bin/apr-config --with-apr-util=/$apacheprefix \
  53. --disable-mod-activation"
  54. if [ "$ROCKCFG_PKG_APACHE_BDB" ] ; then
  55. var_append extraconfopt " " \
  56. "--with-berkeley-db=/usr/include/${ROCKCFG_PKG_APACHE_BDB#b}:/usr/lib"
  57. fi
  58. fi
  59. # build and install perl bindings
  60. svn_inst_pl() {
  61. make swig-pl-lib
  62. cd subversion/bindings/swig/perl/native
  63. perl Makefile.PL; make all
  64. make -C $OLDPWD install-swig-pl-lib
  65. make install; cd $OLDPWD
  66. }
  67. # build and install python bindings
  68. svn_inst_py() {
  69. make swig-py
  70. make install-swig-py
  71. }
  72. # build and install java bindings
  73. svn_inst_java() {
  74. make javahl
  75. make install-javahl
  76. }
  77. # install etc/profile.d/subversion
  78. svn_inst_profile() {
  79. cat > $root/etc/profile.d/subversion <<-EOF
  80. export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/svn-python
  81. EOF
  82. }
  83. hook_add postmake 3 "install_init svnserve $confdir/svnserve.init"
  84. hook_add postmake 4 "cp -vrf tools $docdir"
  85. # if swig is present build and install the perl and python bindings
  86. pkginstalled swig && [ -n "$( type -p perl )" ] && hook_add postmake 5 "svn_inst_pl"
  87. pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py"
  88. # if java is present, install java bindings
  89. pkginstalled sun-jdk14 && hook_add postmake 5 "svn_inst_java"
  90. hook_add postmake 5 "svn_inst_profile"
  91. if pkginstalled apache ; then
  92. splitdesc_apache() {
  93. desc_I="Apache module for subversion"
  94. }
  95. splitreg 50 apache ${apacheprefix}.*mod_.*so
  96. fi
  97. splitdesc_server() {
  98. desc_I="$desc_I (server binaries)"
  99. }
  100. splitdesc_java() {
  101. desc_I="$desc_I (java bindings)"
  102. }
  103. splitreg 51 server /svn[^.]\+[^th]$
  104. splitreg 52 server rc\.d
  105. splitreg 53 java java
  106. fi