csp.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ##
  2. ## csp.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: csp
  26. Summary: Certificate Service Provider
  27. URL: http://devel.it.su.se/projects/CSP/
  28. Vendor: Leif Johansson
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: PLUS
  32. Group: Cryptography
  33. License: GPL
  34. Version: 0.32
  35. Release: 20051201
  36. # list of sources
  37. Source0: ftp://ftp.it.su.se/pub/users/leifj/CSP-%{version}.tar.gz
  38. Source1: http://devel.it.su.se/projects/CSP/cspguide.pdf
  39. Patch0: csp.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130, perl, perl-term, perl-time, perl-sys
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. CSP is a Certificate Service Provider which allows running multiple
  49. Certificate Authorities (CA). OpenSSL is used for all operations.
  50. CSP can also generate a small CA website used to distribute
  51. certificates and CRLs.
  52. %track
  53. prog csp = {
  54. version = %{version}
  55. url = ftp://ftp.it.su.se/pub/users/leifj/
  56. regex = CSP-(__VER__)\.tar\.gz
  57. }
  58. %prep
  59. %setup -q -n CSP-%{version}
  60. %patch -p0
  61. %build
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. %{l_shtool} mkdir -f -p -m 755 \
  65. $RPM_BUILD_ROOT%{l_prefix}/bin \
  66. $RPM_BUILD_ROOT%{l_prefix}/etc/csp \
  67. $RPM_BUILD_ROOT%{l_prefix}/libexec/csp \
  68. $RPM_BUILD_ROOT%{l_prefix}/share/csp \
  69. $RPM_BUILD_ROOT%{l_prefix}/var/csp/ca/csp
  70. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  71. csp $RPM_BUILD_ROOT%{l_prefix}/bin/
  72. %{l_shtool} install -c -m 755 \
  73. CSP.pm $RPM_BUILD_ROOT%{l_prefix}/libexec/csp/
  74. %{l_shtool} install -c -m 644 \
  75. %{SOURCE cspguide.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/csp/
  76. ln -s ../../../etc/csp \
  77. $RPM_BUILD_ROOT%{l_prefix}/var/csp/ca/etc
  78. cp -rp ca/etc/* \
  79. $RPM_BUILD_ROOT%{l_prefix}/etc/csp/
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  81. %{l_files_std} \
  82. '%config %{l_prefix}/etc/csp/*' \
  83. '%config %{l_prefix}/etc/csp/*/*' \
  84. '%config %{l_prefix}/etc/csp/*/*/*' \
  85. '%doc %{l_prefix}/share/csp/cspguide.pdf'
  86. %files -f files
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT