cvsd.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ##
  2. ## cvsd.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: cvsd
  27. Summary: CVS PServer Daemon
  28. URL: http://tiefighter.et.tudelft.nl/~arthur/cvsd/
  29. Vendor: Arthur de Jong
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: CVS
  33. License: GPL
  34. Version: 0.9.6
  35. Release: 20020226
  36. # list of sources
  37. Source0: http://tiefighter.et.tudelft.nl/~arthur/cvsd/cvsd-%{version}.tar.gz
  38. Source1: cvsd.conf
  39. Source2: rc.cvsd
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20020206, cvs
  44. PreReq: OpenPKG, openpkg >= 20020206, cvs
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. cvsd is a wrapper program for cvs in pserver mode. It will run
  49. 'cvs pserver' under a special uid/gid in a chroot jail. cvsd is
  50. run as a daemon and is controlled through a configuration file. It
  51. is relatively easy to configure and tools are provided for setting
  52. up a rootjail. This server can be useful if you want to run a
  53. public cvs pserver. You should however be aware of the security
  54. limitations of running a cvs pserver. If you want any kind of
  55. authentication you should really consider using secure shell as a
  56. secure authentication mechanism and transport. Passwords used in cvs
  57. pserver are transmitted in plaintext and this wrapper won't change
  58. that. This server adds a layer of security to cvs. cvs is a very
  59. powerful tool and is capable of running scripts and other things.
  60. By running cvs in a rootjail it is possible to limit the amount of
  61. "damage" cvs can do if it is exploited. It is generally a good idea
  62. to run cvsd without any write permissions to any directory on the
  63. system.
  64. %prep
  65. %setup -q
  66. %build
  67. # configure program
  68. PATH="%{l_prefix}/bin:$PATH"; export PATH
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O}" \
  71. ./configure \
  72. --prefix=%{l_prefix}
  73. # build program
  74. %{l_make} %{l_mflags -O}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. # perform standard installation procedure
  78. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  79. rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc/init.d
  80. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  81. # install additional data
  82. %{l_shtool} mkdir -f -p -m 755 \
  83. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  84. $RPM_BUILD_ROOT%{l_prefix}/var/cvsd
  85. %{l_shtool} install -c -m 755 \
  86. -e 's;@l_prefix@;%{l_prefix};g' \
  87. -e 's;@l_musr@;%{l_musr};g' \
  88. -e 's;@l_mgrp@;%{l_mgrp};g' \
  89. %{SOURCE rc.cvsd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  90. %{l_shtool} install -c -m 755 \
  91. -e 's;@l_prefix@;%{l_prefix};g' \
  92. -e 's;@l_nusr@;%{l_nusr};g' \
  93. -e 's;@l_ngrp@;%{l_ngrp};g' \
  94. %{SOURCE cvsd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/cvsd/cvsd.conf
  95. # determine installation extend
  96. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  97. %files -f files
  98. %clean
  99. rm -rf $RPM_BUILD_ROOT