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.

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