pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/SpeedyCGI Fix to work with new perl



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c67ce1b261f
branches:  trunk
changeset: 548680:3c67ce1b261f
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Mon Oct 20 20:41:47 2008 +0000

description:
Fix to work with new perl
Patches from OpenBSD

diffstat:

 www/SpeedyCGI/Makefile         |  13 ++++++++++---
 www/SpeedyCGI/distinfo         |   4 +++-
 www/SpeedyCGI/patches/patch-ac |  13 +++++++++++++
 www/SpeedyCGI/patches/patch-ad |  13 +++++++++++++
 4 files changed, 39 insertions(+), 4 deletions(-)

diffs (78 lines):

diff -r 4d05eb9b4749 -r 3c67ce1b261f www/SpeedyCGI/Makefile
--- a/www/SpeedyCGI/Makefile    Mon Oct 20 20:34:12 2008 +0000
+++ b/www/SpeedyCGI/Makefile    Mon Oct 20 20:41:47 2008 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2008/10/19 19:19:24 he Exp $
+# $NetBSD: Makefile,v 1.11 2008/10/20 20:41:47 adrianp Exp $
 
 DISTNAME=      CGI-SpeedyCGI-2.22
 PKGNAME=       SpeedyCGI-2.22
-PKGREVISION=   3
+PKGREVISION=   4
 CATEGORIES=    www
 MASTER_SITES=  http://daemoninc.com/SpeedyCGI/
 
@@ -12,7 +12,14 @@
 
 PKG_DESTDIR_SUPPORT=   user-destdir
 
-PERL5_PACKLIST= auto/CGI/SpeedyCGI/.packlist
+BUILDLINK_API_DEPENDS.perl+=   perl>=5.10
+PERL5_PACKLIST=                auto/CGI/SpeedyCGI/.packlist
+
+SUBST_CLASSES+=                run
+SUBST_STAGE.run=       post-patch
+SUBST_FILES.run=       src/optdefs
+SUBST_SED.run+=                -e "s|@@PREFIX@@|${PREFIX}|g"
+SUBST_MESSAGE.run=     Fixing hardcoded paths.
 
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 4d05eb9b4749 -r 3c67ce1b261f www/SpeedyCGI/distinfo
--- a/www/SpeedyCGI/distinfo    Mon Oct 20 20:34:12 2008 +0000
+++ b/www/SpeedyCGI/distinfo    Mon Oct 20 20:41:47 2008 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.3 2007/11/22 23:00:40 adrianp Exp $
+$NetBSD: distinfo,v 1.4 2008/10/20 20:41:47 adrianp Exp $
 
 SHA1 (CGI-SpeedyCGI-2.22.tar.gz) = 155437a83eedc2cb1ae2b9f93a731a0cfb7ce7f2
 RMD160 (CGI-SpeedyCGI-2.22.tar.gz) = 90bc10281f4380d6d9e3b376ce385567fb3d165d
 Size (CGI-SpeedyCGI-2.22.tar.gz) = 151946 bytes
 SHA1 (patch-aa) = 099bf2fa764488a70cf1b70ef9b7cfb44dc70853
 SHA1 (patch-ab) = dc6c90c52a855280824738e98301560640932cfa
+SHA1 (patch-ac) = ada49b40a665f28656a238b2b7566980d1736f24
+SHA1 (patch-ad) = 099ebd36ffb48da38e0af21416f427afb0ed9012
diff -r 4d05eb9b4749 -r 3c67ce1b261f www/SpeedyCGI/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/patches/patch-ac    Mon Oct 20 20:41:47 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2008/10/20 20:41:47 adrianp Exp $
+
+--- src/speedy_backend_main.h.orig     2003-10-07 05:03:48.000000000 +0100
++++ src/speedy_backend_main.h
+@@ -38,7 +38,7 @@ void * efence_realloc (void *ptr, size_t
+ 
+ #else
+ 
+-#define speedy_new(s,n,t)     New(123,s,n,t)
++#define speedy_new(s,n,t)     Newx(s,n,t)
+ #define speedy_renew          Renew
+ #define speedy_free           Safefree
+ 
diff -r 4d05eb9b4749 -r 3c67ce1b261f www/SpeedyCGI/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/SpeedyCGI/patches/patch-ad    Mon Oct 20 20:41:47 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2008/10/20 20:41:47 adrianp Exp $
+
+--- src/optdefs.orig   2003-10-07 05:03:48.000000000 +0100
++++ src/optdefs
+@@ -63,7 +63,7 @@ option       BackendProg
+ type  str
+ letter        p
+ context       frontend
+-defval        $INSTALLBIN/speedy_backend
++defval        @@PREFIX@@/bin/speedy_backend
+ desc  Path to the speedy backend program.
+ 
+ option        TmpBase



Home | Main Index | Thread Index | Old Index