Browse Source

install embpcgi script and fix shebang in all embperl scripts

Ralf S. Engelschall 19 years ago
parent
commit
982818434d
2 changed files with 17 additions and 4 deletions
  1. 11 2
      perl-www/perl-www.patch
  2. 6 2
      perl-www/perl-www.spec

+ 11 - 2
perl-www/perl-www.patch

@@ -1,6 +1,6 @@
 Index: Embperl-2.2.0/Makefile.PL
 --- Embperl-2.2.0/Makefile.PL.orig	2005-10-26 08:44:21 +0200
-+++ Embperl-2.2.0/Makefile.PL	2005-11-15 08:12:18 +0100
++++ Embperl-2.2.0/Makefile.PL	2006-08-18 13:51:54 +0200
 @@ -621,7 +621,7 @@
  $base = $ENV{'ProgramFiles'} if ($win32) ;
  
@@ -10,9 +10,18 @@ Index: Embperl-2.2.0/Makefile.PL
  
  if ($apache && $apache_src ne '')
      {
+@@ -1330,7 +1330,7 @@
+     'LIBS'	   => [$libs || ''],   			 
+     'DEFINE'	   => "$d \$(DEFS)", 			 
+     'INC'	   => $i,     			 
+-    'EXE_FILES'    => [ 'embpexec.pl', 'embpmsgid.pl' ],
++    'EXE_FILES'    => [ 'embpexec.pl', 'embpmsgid.pl', 'embpcgi.pl' ],
+     'clean'        => { FILES => 'dirent.h test/conf/httpd.conf test/conf/httpd.stop.conf test/conf/httpd.min.conf test/tmp/* Embperl.c $(OBJECT)' },
+     'realclean'    => { FILES => 'embpmsgid.pl embpexec.pl embpexec.bat embpcgi.pl embpcgi.test.pl embpcgi.bat epocgi.pl epocgi.bat epocgi.test.pl embpfastcgi.pl embpfastcgi.test.pl test/conf/config.pl xs/mmargs.pl' },
+     'dist'         => { COMPRESS => 'gzip', SUFFIX => 'gz'},
 Index: Embperl-2.2.0/driver/epxalan.MAKEPL
 --- Embperl-2.2.0/driver/epxalan.MAKEPL.orig	2005-10-26 00:16:36 +0200
-+++ Embperl-2.2.0/driver/epxalan.MAKEPL	2005-11-15 08:12:18 +0100
++++ Embperl-2.2.0/driver/epxalan.MAKEPL	2006-08-18 13:51:33 +0200
 @@ -8,7 +8,7 @@
  
  if (!$win32)

+ 6 - 2
perl-www/perl-www.spec

@@ -95,7 +95,7 @@ Class:        BASE
 Group:        Language
 License:      GPL/Artistic
 Version:      %{V_perl}
-Release:      20060817
+Release:      20060818
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/URI/URI-%{V_uri}.tar.gz
@@ -606,7 +606,11 @@ AutoReqProv:  no
     #   cleanup installation
     ( cd $RPM_BUILD_ROOT%{l_prefix}/bin
       for prog in *.pl; do
-          mv $prog `echo $prog | sed -e 's;\.pl$;;'`
+          base=`echo $prog | sed -e 's;\.pl$;;'`
+          %{l_shtool} install -c -m 755 \
+              -e 's;^#!/.*;#!%{l_prefix}/bin/perl;' \
+              $prog $base
+          rm -f $prog
       done
     ) || exit $?