Browse Source

add mailgate wrapper to set PERL search path

Michael van Elst 22 years ago
parent
commit
2feaf4b46b
2 changed files with 11 additions and 1 deletions
  1. 4 0
      rt/rt-mailgate.sh
  2. 7 1
      rt/rt.spec

+ 4 - 0
rt/rt-mailgate.sh

@@ -0,0 +1,4 @@
+#!/bin/sh
+PERL5LIB='@l_prefix@/libexec/rt'
+export PERL5LIB
+exec @l_prefix@/libexec/rt/tools/rt-mailgate "$@"

+ 7 - 1
rt/rt.spec

@@ -47,7 +47,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Database
 License:      GPL
 Version:      %{V_here}
-Release:      20030327
+Release:      20030401
 
 #   list of sources
 Source0:      http://www.cpan.org/modules/by-module/Log/Log-Dispatch-%{V_log_dispatch}.tar.gz
@@ -68,6 +68,7 @@ Source14:     rtupgrade
 Source15:     rtapachectl
 Source16:     rtapache.conf
 Source17:     config.layout
+Source18:     rt-mailgate.sh
 
 #   build information
 Prefix:       %{l_prefix}
@@ -364,7 +365,12 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/cgi/rt/
     mv \
         $RPM_BUILD_ROOT%{l_prefix}/bin/rt-crontool \
+        $RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate \
         $RPM_BUILD_ROOT%{l_prefix}/libexec/rt/tools/
+    %{l_shtool} install -c -m 755 \
+        -e 's;@l_prefix@;%{l_prefix};g' \
+        %{SOURCE rt-mailgate.sh} \
+        $RPM_BUILD_ROOT%{l_prefix}/bin/rt-mailgate
 
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
         %{l_files_std} \