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.

113 lines
3.6 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. autoextract=0
  24. hook_add preconf 5 svn_extract
  25. svn_extract()
  26. {
  27. tar --use-compress-program=bunzip2 -xvf $archdir/subversion-$ver.tar.bz2
  28. tar --use-compress-program=bunzip2 -xvf $archdir/subversion-deps-$ver.tar.bz2
  29. cd subversion-$ver
  30. }
  31. # use system wide neon
  32. pkginstalled neon && var_append extraconfopt " " "--with-neon=$root/usr"
  33. # please double-check this one:
  34. # pkginstalled apache:apr && var_append extraconfopt " " "--with-apr=$root/usr"
  35. pkginstalled sun-jdk14 && var_append extraconfopt " " "--enable-javahl --with-jdk=`ls -d1R $root/opt/j2sdk1.4*`"
  36. # all this is to build the apache server-side module
  37. # and to make sure no locally included APR stuff get's installed
  38. # as well as no modification to httpd.conf is done ...
  39. if pkginstalled apache; then
  40. apacheprefix=${ROCKCFG_PKG_APACHE_PREFIX:-opt/apache}
  41. var_append extraconfopt " " "--with-apxs=/$apacheprefix/sbin/apxs \
  42. --with-apr=/$apacheprefix/bin/apr-config --with-apr-util=/$apacheprefix \
  43. --disable-mod-activation"
  44. if [ "$ROCKCFG_PKG_APACHE_BDB" ] ; then
  45. var_append extraconfopt " " \
  46. "--with-berkeley-db=/usr/include/${ROCKCFG_PKG_APACHE_BDB#b}:/usr/lib"
  47. fi
  48. fi
  49. # build and install perl bindings
  50. svn_inst_pl() {
  51. make swig-pl-lib
  52. cd subversion/bindings/swig/perl/native
  53. perl Makefile.PL; make all
  54. make -C $OLDPWD install-swig-pl-lib
  55. make install; cd $OLDPWD
  56. }
  57. # build and install python bindings
  58. svn_inst_py() {
  59. make swig-py
  60. make install-swig-py
  61. }
  62. # build and install java bindings
  63. svn_inst_java() {
  64. make javahl
  65. make install-javahl
  66. }
  67. # install etc/profile.d/subversion
  68. svn_inst_profile() {
  69. cat > $root/etc/profile.d/subversion <<-EOF
  70. export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/svn-python
  71. EOF
  72. }
  73. # hotfix, without this "perl -e 'use SVN::Core'" (and others?) do not work
  74. export LIBS="-lz -lssl"
  75. hook_add postmake 3 "install_init svnserve $confdir/svnserve.init"
  76. hook_add postmake 4 "cp -vrf tools $docdir"
  77. # if swig is present build and install the perl and python bindings
  78. pkginstalled swig && [ -n "$( type -p perl )" ] && hook_add postmake 5 "svn_inst_pl"
  79. pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py"
  80. # if java is present, install java bindings
  81. pkginstalled sun-jdk14 && hook_add postmake 5 "svn_inst_java"
  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. splitdesc_java() {
  93. desc_I="$desc_I (java bindings)"
  94. }
  95. splitreg 51 server /svn[^.]\+[^th]$
  96. splitreg 52 server rc\.d
  97. splitreg 53 java java