OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 02-May-2005 19:37:19 Branch: HEAD Handle: 2005050218371800 Added files: openpkg-src/csp csp.patch csp.spec Log: new package: csp 0.26 (Certificate Service Provider) Summary: Revision Changes Path 1.1 +71 -0 openpkg-src/csp/csp.patch 1.1 +99 -0 openpkg-src/csp/csp.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/csp/csp.patch ============================================================================ $ cvs diff -u -r0 -r1.1 csp.patch --- /dev/null 2005-05-02 19:34:26 +0200 +++ csp.patch 2005-05-02 19:37:18 +0200 @@ -0,0 +1,71 @@ +Index: CSP.pm +--- CSP.pm.orig 2002-09-24 20:33:20 +0200 ++++ CSP.pm 2005-05-02 18:58:32 +0200 +@@ -1523,12 +1523,12 @@ + CSP is designed to easily handle multiple distinct Certificate Authorities. + Hence the name which stands for Certificate Service Provider. + +-= item o ++=item o + + CSP can be used to produce a web site (certificate repository, CRLs etc etc) + without the need for cgi-scripts. + +-= item o ++=item o + + CSP tries to be as PKIX-compliant as OpenSSL allows. + +@@ -1551,22 +1551,22 @@ + writer or some other means for making backups of the certificate directory. + Day to day operations include the following tasks. + +-= over 4 ++=over 4 + +-= item 1 ++=item 1 + + Issuing certificates based on pkcs10 or out-of-band (non pkcs10) requests. + +-= item 2 ++=item 2 + + Backing up the csp main directory (see below) to read-only medium. + +-= item 3 ++=item 3 + + Producing the public web site and exporting it (typically using floppy or + zip-drive) to your web server. + +-= back ++=back + + =head1 CONFIGURATION + +Index: csp +--- csp.orig 2001-05-28 13:32:14 +0200 ++++ csp 2005-05-02 19:18:12 +0200 +@@ -1,6 +1,9 @@ +-#!/usr/bin/perl [EMAIL PROTECTED]@/bin/perl + +-use lib './blib/lib'; ++$ENV{OPENSSL} = '@l_prefix@/bin/openssl' if (not defined($ENV{OPENSSL})); ++$ENV{CSPHOME} = '@l_prefix@/var/csp/ca' if (not defined($ENV{CSPHOME})); ++ ++use lib '@l_prefix@/libexec/csp'; + + use CSP; + use Getopt::Long; +@@ -120,6 +123,9 @@ + + my $home = $ENV{CSPHOME} || 'ca'; + ++die "Panic: Cannot write to \$CSPHOME \"$home\"" ++ unless -w $home; ++ + mkdir "$home/csp",00755 unless -d "$home/csp"; + + $name eq '--list' and @@ . patch -p0 <<'@@ .' Index: openpkg-src/csp/csp.spec ============================================================================ $ cvs diff -u -r0 -r1.1 csp.spec --- /dev/null 2005-05-02 19:34:26 +0200 +++ csp.spec 2005-05-02 19:37:19 +0200 @@ -0,0 +1,99 @@ +## +## csp.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/> +## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: csp +Summary: Certificate Service Provider +URL: http://devel.it.su.se/projects/CSP/ +Vendor: Leif Johansson +Packager: OpenPKG +Distribution: OpenPKG +Class: EVAL +Group: Cryptography +License: GPL +Version: 0.26 +Release: 20050502 + +# list of sources +Source0: ftp://ftp.it.su.se/pub/users/leifj/CSP-%{version}.tar.gz +Source1: http://devel.it.su.se/projects/CSP/cspguide.pdf +Patch0: csp.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130 +PreReq: OpenPKG, openpkg >= 20040130, perl, perl-term, perl-time +AutoReq: no +AutoReqProv: no + +%description + CSP is a Certificate Service Provider which allows running multiple + Certificate Authorities (CA). OpenSSL is used for all operations. + CSP can also generate a small CA website used to distribute + certificates and CRLs. + +%track + prog csp = { + version = %{version} + url = ftp://ftp.it.su.se/pub/users/leifj/ + regex = CSP-(__VER__)\.tar\.gz + } + +%prep + %setup -q -n CSP-%{version} + %patch -p0 + +%build + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/etc/csp \ + $RPM_BUILD_ROOT%{l_prefix}/libexec/csp \ + $RPM_BUILD_ROOT%{l_prefix}/share/csp \ + $RPM_BUILD_ROOT%{l_prefix}/var/csp/ca/csp + %{l_shtool} install -c -m 755 %{l_value -s -a} \ + csp $RPM_BUILD_ROOT%{l_prefix}/bin/ + %{l_shtool} install -c -m 755 \ + CSP.pm $RPM_BUILD_ROOT%{l_prefix}/libexec/csp/ + %{l_shtool} install -c -m 644 \ + %{SOURCE cspguide.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/csp/ + ln -s ../../../etc/csp \ + $RPM_BUILD_ROOT%{l_prefix}/var/csp/ca/etc + cp -rp ca/etc/* \ + $RPM_BUILD_ROOT%{l_prefix}/etc/csp/ + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/csp/*' \ + '%config %{l_prefix}/etc/csp/*/*' \ + '%config %{l_prefix}/etc/csp/*/*/*' \ + '%doc %{l_prefix}/share/csp/cspguide.pdf' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org