فهرست منبع

install mkimap with correctly prefixed paths, build paths are now handled by command line parameters

Michael van Elst 23 سال پیش
والد
کامیت
4bc1332b51
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      imapd/imapd.spec

+ 4 - 4
imapd/imapd.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Mail
 Group:        Mail
 License:      BSD
 License:      BSD
 Version:      2.1.12
 Version:      2.1.12
-Release:      20030429
+Release:      20030502
 
 
 #   package options
 #   package options
 %option       with_vhost_hack  no
 %option       with_vhost_hack  no
@@ -98,8 +98,8 @@ Provides:     IMAP
         imapd.conf-mkimap
         imapd.conf-mkimap
     %{l_shtool} subst \
     %{l_shtool} subst \
         -e 's;^exec perl ;exec %{l_prefix}/bin/perl ;' \
         -e 's;^exec perl ;exec %{l_prefix}/bin/perl ;' \
-        -e "s;/etc/imapd.conf;$RPM_BUILD_DIR/cyrus-imapd-%{version}/imapd.conf-mkimap;" \
-        -e "s;^\(\$sievedir = \"\).*$;\1$RPM_BUILD_ROOT%{l_prefix}/var/imapd/sieve\"\;;" \
+        -e "s;/etc/imapd.conf;%{l_prefix}/etc/imapd/imapd.conf;" \
+        -e "s;^\(\$sievedir = \).*$;\1 shift || \"%{l_prefix}/var/imapd/sieve\"\;;" \
         tools/mkimap
         tools/mkimap
 
 
     #   ajdust syslog ident of deliver program
     #   ajdust syslog ident of deliver program
@@ -189,7 +189,7 @@ Provides:     IMAP
         %{SOURCE fsl.imapd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
         %{SOURCE fsl.imapd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
 
 
     #   use mkimap to create many directories for us
     #   use mkimap to create many directories for us
-    tools/mkimap imapd.conf-mkimap
+    tools/mkimap imapd.conf-mkimap $RPM_BUILD_ROOT%{l_prefix}/var/imapd/sieve
 
 
     #   rename files which are likely to cause namespace conflicts
     #   rename files which are likely to cause namespace conflicts
     ( cd $RPM_BUILD_ROOT%{l_prefix}
     ( cd $RPM_BUILD_ROOT%{l_prefix}