|
|
@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
|
|
|
Group: Mail
|
|
|
License: BSD
|
|
|
Version: 2.1.12
|
|
|
-Release: 20030415
|
|
|
+Release: 20030417
|
|
|
|
|
|
# package options
|
|
|
%option with_vhost_hack no
|
|
|
@@ -166,9 +166,14 @@ Provides: IMAP
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/imapd/spool
|
|
|
|
|
|
# offer a sane configuration
|
|
|
+
|
|
|
+ l_hostname=`%{l_shtool} echo -e %h`
|
|
|
+ l_domainname=`%{l_shtool} echo -e %d | cut -c2-`
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
-e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
+ -e "s;@l_hostname@;$l_hostname;g" \
|
|
|
+ -e "s;@l_domainname@;$l_domainname;g" \
|
|
|
%{SOURCE cyrus.conf} \
|
|
|
%{SOURCE imapd.conf} \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/imapd/
|