pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/CSP Update to 0.34



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0de4f25d7e66
branches:  trunk
changeset: 376177:0de4f25d7e66
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Mon Feb 26 12:32:41 2018 +0000

description:
Update to 0.34

* Change file is inconsistent: no information about this release available
* Homepage and repository are dead: tarball reached and archived on
  ftp.NetBSD.org thands to OpenPKG repository
* Configurations files are installed in VARBASE because CSPHOME must be
  writable since CA tree is built in this directory
* Fix deprecated use of unescaped '{'
* Clean Makefile

diffstat:

 security/CSP/Makefile             |  31 ++++++++++---------------------
 security/CSP/PLIST                |   3 +--
 security/CSP/distinfo             |   5 +++--
 security/CSP/patches/patch-CSP.pm |  24 ++++++++++++++++++++++++
 security/CSP/patches/patch-aa     |   8 ++++----
 5 files changed, 42 insertions(+), 29 deletions(-)

diffs (139 lines):

diff -r 19107dce56db -r 0de4f25d7e66 security/CSP/Makefile
--- a/security/CSP/Makefile     Mon Feb 26 12:29:00 2018 +0000
+++ b/security/CSP/Makefile     Mon Feb 26 12:32:41 2018 +0000
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.24 2018/02/26 08:00:08 triaxx Exp $
+# $NetBSD: Makefile,v 1.25 2018/02/26 12:32:41 triaxx Exp $
 
 DISTNAME=      CSP-0.34
 CATEGORIES=    security
-#MASTER_SITES= ftp://ftp.su.se/pub/users/leifj/
-DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} ${CSPGUIDE}
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} cspguide.pdf
+EXTRACT_ONLY=  ${DISTFILES:N*.pdf}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@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
@@ -15,30 +14,20 @@
 
 USE_TOOLS+=    pax
 BUILD_DEFS+=   VARBASE
-
-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
+OWN_DIRS=      ${VARBASE}/csp
 
-CSPHOME=       ${VARBASE}/csp
-OPENSSLBIN=    ${BUILDLINK_PREFIX.openssl}/bin/openssl
-OWN_DIRS=      ${CSPHOME}
-INSTALLATION_DIRS=     share/doc/csp
-
-BUILD_DEFS+=   CSPHOME
+INSTALLATION_DIRS=      ${VARBASE}/csp share/doc/csp
 
 SUBST_CLASSES+=                csp
 SUBST_FILES.csp=       csp
-SUBST_SED.csp=         -e s,@@CSPHOME@@,${CSPHOME},
-SUBST_SED.csp+=                -e s,@@OPENSSL@@,${OPENSSLBIN},
-SUBST_STAGE.csp=       post-patch
+SUBST_SED.csp=         -e s,@CSPHOME@,${VARBASE}/csp,
+SUBST_SED.csp+=                -e s,@OPENSSL@,${BUILDLINK_PREFIX.openssl}/bin/openssl,
+SUBST_STAGE.csp=       pre-install
 
 post-install:
        ${INSTALL_DATA_DIR} ${DESTDIR}${CSPHOME}
-       cd ${WRKSRC}/ca && ${FIND} . -type f | pax -rw ${DESTDIR}${CSPHOME}
-       ${INSTALL_DATA} ${DISTDIR}/${CSPGUIDE} ${DESTDIR}${PREFIX}/share/doc/csp
+       cd ${WRKSRC}/ca && ${FIND} . -type f | pax -rw ${DESTDIR}${VARBASE}/csp
+       ${INSTALL_DATA} ${DISTDIR}/cspguide.pdf ${DESTDIR}${PREFIX}/share/doc/csp
 
 .include "../../lang/perl5/module.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r 19107dce56db -r 0de4f25d7e66 security/CSP/PLIST
--- a/security/CSP/PLIST        Mon Feb 26 12:29:00 2018 +0000
+++ b/security/CSP/PLIST        Mon Feb 26 12:32:41 2018 +0000
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/02/26 08:00:08 triaxx Exp $
-${PERL5_SUB_INSTALLARCHLIB}/perllocal.pod
+@comment $NetBSD: PLIST,v 1.3 2018/02/26 12:32:41 triaxx Exp $
 ${PERL5_SUB_INSTALLVENDORLIB}/CSP.pm
 ${PERL5_SUB_INSTALLVENDORLIB}/auto/CSP/autosplit.ix
 ${PERL5_SUB_INSTALLVENDORARCH}/auto/CSP/.packlist
diff -r 19107dce56db -r 0de4f25d7e66 security/CSP/distinfo
--- a/security/CSP/distinfo     Mon Feb 26 12:29:00 2018 +0000
+++ b/security/CSP/distinfo     Mon Feb 26 12:32:41 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/02/26 08:00:08 triaxx Exp $
+$NetBSD: distinfo,v 1.4 2018/02/26 12:32:41 triaxx Exp $
 
 SHA1 (CSP-0.34.tar.gz) = 13440461ffc119421a6a97f62d94d35a38fde2e7
 RMD160 (CSP-0.34.tar.gz) = 68a7e3ad1ccac9628aaffd5331e2877f29e2cb38
@@ -8,4 +8,5 @@
 RMD160 (cspguide.pdf) = d4727fb6e4e44ad8c45d0749374843b38a340af9
 SHA512 (cspguide.pdf) = 2927a3d6b02e19e1acbd2230b4577d71151557cac22c59a7eebfab0d726c4deaf2826fe920065197bcd1271d37223a70ffd59fe3c3e37b93a6d8c799b5250b33
 Size (cspguide.pdf) = 152084 bytes
-SHA1 (patch-aa) = c97840d43189a14361646b79d826162bf8d22bc3
+SHA1 (patch-aa) = 3d85a927385a3bf21d238f422695e759da11aaa9
+SHA1 (patch-CSP.pm) = c573643c23ac60d6aa65a2aab1d0b7dab1782c05
diff -r 19107dce56db -r 0de4f25d7e66 security/CSP/patches/patch-CSP.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/CSP/patches/patch-CSP.pm Mon Feb 26 12:32:41 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-CSP.pm,v 1.1 2018/02/26 12:32:41 triaxx Exp $
+
+Fix unescaped braces deprecated since perl 5.22.
+
+--- CSP.pm.orig        2007-03-10 22:28:53.000000000 +0000
++++ CSP.pm
+@@ -111,7 +111,7 @@ sub _rewrite
+     my $vars = shift;
+     my $line = shift;
+ 
+-    while ($line =~ s/%{([a-zA-Z0-9_\.]+)}/$vars->{$1}/eg) { }
++    while ($line =~ s/%\{([a-zA-Z0-9_\.]+)\}/$vars->{$1}/eg) { }
+     $line;
+   }
+ 
+@@ -150,7 +150,7 @@ sub mppFile
+             {
+               my $expr = $1;
+               
+-              $expr =~ s/%{([A-Za-z0-9_\.]+)}/"\$vars->{\"$1\"}"/eg;
++              $expr =~ s/%\{([A-Za-z0-9_\.]+)\}/"\$vars->{\"$1\"}"/eg;
+               
+               my $result = eval $expr;
+               $self->die("$@") if $@;
diff -r 19107dce56db -r 0de4f25d7e66 security/CSP/patches/patch-aa
--- a/security/CSP/patches/patch-aa     Mon Feb 26 12:29:00 2018 +0000
+++ b/security/CSP/patches/patch-aa     Mon Feb 26 12:32:41 2018 +0000
@@ -1,20 +1,20 @@
-$NetBSD: patch-aa,v 1.2 2018/02/26 08:00:08 triaxx Exp $
+$NetBSD: patch-aa,v 1.3 2018/02/26 12:32:41 triaxx Exp $
 
 Add variables for SUBST.
 
---- csp.orig   2005-06-02 18:40:20.000000000 +0200
+--- csp.orig   2007-03-10 22:28:34.000000000 +0000
 +++ csp
 @@ -167,14 +167,16 @@ die $usage{_nocmd_} unless @ARGV > 0;
  
  my $name = shift @ARGV;
  
-+my $home = $ENV{CSPHOME} || '@@CSPHOME@@';
++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});
++$ENV{OPENSSL} = '@OPENSSL@' unless defined($ENV{OPENSSL});
  
  die "Panic: \$OPENSSL does not point to a executable.\n"
    unless -x $ENV{OPENSSL};



Home | Main Index | Thread Index | Old Index