delegate.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ##
  2. ## delegate.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: delegate
  27. Summary: Multi-purpose Application-Level Network Gateway
  28. URL: http://www.delegate.org/
  29. Vendor: Yutaka Sato
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [REL]
  32. Group: Net
  33. License: GPL
  34. Version: 7.7.0
  35. Release: 20020206
  36. # list of sources
  37. Source0: ftp://ftp.delegate.org/pub/DeleGate/delegate%{version}.tar.bz2
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20020206
  42. PreReq: OpenPKG, openpkg >= 20020206
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. DeleGate is a multi-purpose application level gateway, or a proxy
  47. server. It mediates communication of various protocols (HTTP, FTP,
  48. NNTP, POP, Telnet, etc.), applying cache and conversion for mediated
  49. data, controlling access from clients and routing toward servers. It
  50. translates protocols between clients and servers, merging several
  51. servers into a single server view with aliasing and filtering.
  52. Besides proxy, DeleGate can be used as a simple origin server for
  53. some protocols (HTTP, FTP and NNTP).
  54. %prep
  55. %setup -q -n delegate%{version}
  56. %build
  57. ( %{l_shtool} echo -e "ADMIN = %u@%h%d"
  58. echo "CC = %{l_cc}"
  59. echo "CFLAGS = %{l_cflags}"
  60. ) >src/DELEGATE_CONF
  61. %{l_make} %{l_mflags -O}
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. %{l_shtool} mkdir -f -p -m 755 \
  65. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  66. $RPM_BUILD_ROOT%{l_prefix}/share/delegate
  67. %{l_shtool} install -c -s -m 755 \
  68. src/delegated $RPM_BUILD_ROOT%{l_prefix}/sbin/
  69. %{l_shtool} install -c -m 644 \
  70. doc/Manual.htm $RPM_BUILD_ROOT%{l_prefix}/share/delegate/manual.html
  71. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  72. %files -f files
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT