summaryrefslogtreecommitdiff
path: root/www/p5-CGI-SpeedyCGI
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2003-04-11 02:17:22 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2003-04-11 02:17:22 +0000
commit87a7fb201a924b9b23c252b2dfec0538f1682828 (patch)
tree56fe08dc990d1f5493ea6c739d54cdd13714d407 /www/p5-CGI-SpeedyCGI
parentupdate to 3.0.2.5 (diff)
add SUID support, which is required by mail/openwebmail
bump PORTREVISION PR: 50441 Submitted by: leeym Reviewed by: lars@thegler.dk (MAINTAINER) Approved by: lars@thegler.dk (MAINTAINER)
Notes
Notes: svn path=/head/; revision=78718
Diffstat (limited to 'www/p5-CGI-SpeedyCGI')
-rw-r--r--www/p5-CGI-SpeedyCGI/Makefile6
-rw-r--r--www/p5-CGI-SpeedyCGI/files/patch-src::SpeedyMake.pl10
-rw-r--r--www/p5-CGI-SpeedyCGI/pkg-plist1
3 files changed, 16 insertions, 1 deletions
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile
index ec24ff8d62dc..d2e5d13c4b36 100644
--- a/www/p5-CGI-SpeedyCGI/Makefile
+++ b/www/p5-CGI-SpeedyCGI/Makefile
@@ -7,6 +7,7 @@
PORTNAME= CGI-SpeedyCGI
PORTVERSION= 2.21
+PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
@@ -15,7 +16,10 @@ PKGNAMEPREFIX= p5-
MAINTAINER= lars@thegler.dk
COMMENT= Speed up perl CGI scripts by running them persistently
-#SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
PERL_CONFIGURE= yes
+post-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/speedy/speedy ${PREFIX}/bin/speedy_suid
+ @${CHMOD} 4755 ${PREFIX}/bin/speedy_suid
+
.include <bsd.port.mk>
diff --git a/www/p5-CGI-SpeedyCGI/files/patch-src::SpeedyMake.pl b/www/p5-CGI-SpeedyCGI/files/patch-src::SpeedyMake.pl
new file mode 100644
index 000000000000..41f7688a19e0
--- /dev/null
+++ b/www/p5-CGI-SpeedyCGI/files/patch-src::SpeedyMake.pl
@@ -0,0 +1,10 @@
+--- src/SpeedyMake.pl.orig Sun Mar 30 08:17:01 2003
++++ src/SpeedyMake.pl Sun Mar 30 08:18:59 2003
+@@ -214,6 +214,7 @@
+ join(' ',
+ "-DSPEEDY_PROGNAME=\\\"" . $class->my_name_full . "\\\"",
+ "-DSPEEDY_VERSION=\\\"\$(VERSION)\\\"",
++ "-DIAMSUID",
+ '-DSPEEDY_' . ($class->am_frontend ? 'FRONTEND' : 'BACKEND'),
+ );
+ }
diff --git a/www/p5-CGI-SpeedyCGI/pkg-plist b/www/p5-CGI-SpeedyCGI/pkg-plist
index c92974411c67..1ecddc1b1222 100644
--- a/www/p5-CGI-SpeedyCGI/pkg-plist
+++ b/www/p5-CGI-SpeedyCGI/pkg-plist
@@ -2,6 +2,7 @@ lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/SpeedyCGI/.packlist
lib/perl5/site_perl/%%PERL_VER%%/CGI/SpeedyCGI.pm
bin/speedy
bin/speedy_backend
+bin/speedy_suid
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/SpeedyCGI
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/CGI 2>/dev/null || true