pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/CSP Initial import of CSP, version 0.32, into...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2a8dcbc67f9
branches:  trunk
changeset: 504906:e2a8dcbc67f9
user:      cube <cube%pkgsrc.org@localhost>
date:      Tue Dec 27 20:56:17 2005 +0000

description:
Initial import of CSP, version 0.32, into the NetBSD Packages Collection.  If
you think you might have read the openssl man pages one time too much for
your own sanity, you might like this package.

Certificate Service Provider is a perl wrapper around openssl that allows you
to run multiple simple certificate authorities (CAs).  CSP is designed to be
simple (almost to a fault) and is ideally suited to small PKIs (< 1000
entities) where security is paramount.  CSP is meant to be run on isolated,
offline computers while still allowing CRLs and certificate repositories to be
easily published.

The package includes a patch that lets the program run out-of-the-box,
without setting up CSPHOME and OPENSSL in the environment.  Defining them
is of course still permitted.

diffstat:

 security/CSP/DESCR            |   6 ++++++
 security/CSP/Makefile         |  42 ++++++++++++++++++++++++++++++++++++++++++
 security/CSP/PLIST            |   2 ++
 security/CSP/distinfo         |   9 +++++++++
 security/CSP/patches/patch-aa |  24 ++++++++++++++++++++++++
 5 files changed, 83 insertions(+), 0 deletions(-)

diffs (103 lines):

diff -r 4be77c8df99a -r e2a8dcbc67f9 security/CSP/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/DESCR        Tue Dec 27 20:56:17 2005 +0000
@@ -0,0 +1,6 @@
+Certificate Service Provider is a perl wrapper around openssl that allows you
+to run multiple simple certificate authorities (CAs).  CSP is designed to be
+simple (almost to a fault) and is ideally suited to small PKIs (< 1000
+entities) where security is paramount.  CSP is meant to be run on isolated,
+offline computers while still allowing CRLs and certificate repositories to be
+easily published.
diff -r 4be77c8df99a -r e2a8dcbc67f9 security/CSP/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/Makefile     Tue Dec 27 20:56:17 2005 +0000
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
+#
+
+DISTNAME=      CSP-0.32
+CATEGORIES=    security
+MASTER_SITES=  ftp://ftp.su.se/pub/users/leifj/
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} ${CSPGUIDE}
+
+MAINTAINER=    cube%cubidou.net@localhost
+HOMEPAGE=      http://devel.it.su.se/pub/jsp/polopoly.jsp?d=1026&a=3290
+COMMENT=       Simple PKI Toolkit
+
+DEPENDS+=      p5-Date-Calc>=5.4:../../devel/p5-Date-Calc
+DEPENDS+=      p5-IPC-Run>=0.79:../../devel/p5-IPC-Run
+DEPENDS+=      p5-Term-Prompt>=1.03:../../devel/p5-Term-Prompt
+
+CSPGUIDE=      cspguide.pdf
+SITES_${CSPGUIDE}=     http://devel.it.su.se/content/1/c4/32/90/
+EXTRACT_ONLY=  ${DISTFILES:N*.pdf}
+
+PERL5_PACKLIST=        auto/CSP/.packlist
+
+CSPHOME=       ${VARBASE}/csp
+OPENSSLBIN=    ${BUILDLINK_PREFIX.openssl}/bin/openssl
+OWN_DIRS=      ${CSPHOME}
+INSTALLATION_DIRS=     share/doc/csp
+
+BUILD_DEFS+=   CSPHOME
+
+SUBST_CLASSES+=                csp
+SUBST_FILES.csp=       csp
+SUBST_SED.csp=         -e s,@@CSPHOME@@,${CSPHOME},    \
+                       -e s,@@OPENSSL@@,${OPENSSLBIN},
+SUBST_STAGE.csp=       post-patch
+
+post-install:
+       cd ${WRKSRC}/ca && ${FIND} . -type f | ${PAX} -rw ${CSPHOME}
+       ${INSTALL_DATA} ${DISTDIR}/${CSPGUIDE} ${PREFIX}/share/doc/csp
+
+.include "../../lang/perl5/module.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 4be77c8df99a -r e2a8dcbc67f9 security/CSP/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/PLIST        Tue Dec 27 20:56:17 2005 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
+share/doc/csp/cspguide.pdf
diff -r 4be77c8df99a -r e2a8dcbc67f9 security/CSP/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/distinfo     Tue Dec 27 20:56:17 2005 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
+
+SHA1 (CSP-0.32.tar.gz) = 4be5535e9a39286bdd967c9d3b5538437d1ca349
+RMD160 (CSP-0.32.tar.gz) = a344e8e94c08109ebc5d98a1a43e511e8ac8c887
+Size (CSP-0.32.tar.gz) = 18241 bytes
+SHA1 (cspguide.pdf) = f527519553d7c64f625210a74435c413cd470838
+RMD160 (cspguide.pdf) = d4727fb6e4e44ad8c45d0749374843b38a340af9
+Size (cspguide.pdf) = 152084 bytes
+SHA1 (patch-aa) = ddfd76ff4c66629828a8126355e38a4bfedd2178
diff -r 4be77c8df99a -r e2a8dcbc67f9 security/CSP/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/patches/patch-aa     Tue Dec 27 20:56:17 2005 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/12/27 20:56:17 cube Exp $
+
+--- csp.orig   2005-06-02 18:40:20.000000000 +0200
++++ csp
+@@ -167,14 +167,16 @@ die $usage{_nocmd_} unless @ARGV > 0;
+ 
+ my $name = shift @ARGV;
+ 
++my $home = $ENV{CSPHOME} || '@@CSPHOME@@';
++
+ warn "Warning: \$CSPHOME unset. This may prevent CSP from working properly.\n"
+-  unless $ENV{CSPHOME};
++  unless -d $home;
++
++$ENV{OPENSSL} = '@@OPENSSL@@' unless defined($ENV{OPENSSL});
+ 
+ die "Panic: \$OPENSSL does not point to a executable.\n"
+   unless -x $ENV{OPENSSL};
+ 
+-my $home = $ENV{CSPHOME} || 'ca';
+-
+ mkdir "$home/csp",00755 unless -d "$home/csp";
+ 
+ $name eq '--list' and



Home | Main Index | Thread Index | Old Index