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.

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