|
|
|
|
@ -33,9 +33,10 @@ Distribution: OpenPKG [EVAL]
|
|
|
|
|
Group: Mail |
|
|
|
|
License: BSD |
|
|
|
|
Version: 2.1.13 |
|
|
|
|
Release: 20030617 |
|
|
|
|
Release: 20030623 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_fsl yes |
|
|
|
|
%option with_vhost_hack no |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
@ -50,8 +51,12 @@ Patch1: vhosthack.patch
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030103, sasl, db >= 4.1.24, openssl, make, perl, perl-openpkg, fsl |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20030103, sasl, openssl, perl, MTA, fsl |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030415, sasl, db >= 4.1.24, openssl, make, perl, perl-openpkg |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20030415, sasl, openssl, perl, MTA |
|
|
|
|
%if "%{with_fsl}" == "yes" |
|
|
|
|
BuildPreReq: fsl |
|
|
|
|
PreReq: fsl |
|
|
|
|
%endif |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
Provides: IMAP |
|
|
|
|
@ -114,7 +119,7 @@ Provides: IMAP
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
cflags="%{l_cppflags}" |
|
|
|
|
ldflags="%{l_ldflags} `%{l_prefix}/bin/fsl-config --all --ldflags`" |
|
|
|
|
ldflags="%{l_ldflags} %{l_fsl_ldflags}" |
|
|
|
|
case "%{l_target}" in |
|
|
|
|
*-solaris* ) ldflags="$ldflags -lsocket -lnsl" ;; |
|
|
|
|
esac |
|
|
|
|
@ -122,7 +127,7 @@ Provides: IMAP
|
|
|
|
|
CPPFLAGS="$cflags" \ |
|
|
|
|
CFLAGS="%{l_cflags -O} $cflags" \ |
|
|
|
|
LDFLAGS="$ldflags" \ |
|
|
|
|
LIBS="`%{l_prefix}/bin/fsl-config --all --libs`" \ |
|
|
|
|
LIBS="%{l_fsl_libs}" \ |
|
|
|
|
./configure \ |
|
|
|
|
--cache-file=./cache.config \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
@ -173,7 +178,6 @@ Provides: IMAP
|
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/imapd \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/imapd/spool \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin |
|
|
|
|
|
|
|
|
|
@ -200,10 +204,6 @@ Provides: IMAP
|
|
|
|
|
-e 's;@l_susr@;%{l_susr};g' -e 's;@l_sgrp@;%{l_sgrp};g' \ |
|
|
|
|
%{SOURCE rc.imapd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ |
|
|
|
|
|
|
|
|
|
# install fsl configuration |
|
|
|
|
%{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
|
%{SOURCE fsl.imapd} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ |
|
|
|
|
|
|
|
|
|
# use mkimap to create many directories for us |
|
|
|
|
tools/mkimap imapd.conf-mkimap $RPM_BUILD_ROOT%{l_prefix}/var/imapd/sieve |
|
|
|
|
|
|
|
|
|
@ -219,16 +219,23 @@ Provides: IMAP
|
|
|
|
|
tools/mkimap \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
|
|
|
|
|
# OSSP fake syslog library |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
|
%{SOURCE fsl.%{name}} \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ |
|
|
|
|
|
|
|
|
|
# strip binaries |
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
|
|
|
|
|
|
|
|
|
# determine files |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
|
|
|
%{l_files_std} \ |
|
|
|
|
'%not %dir %{l_prefix}/etc/fsl' \ |
|
|
|
|
'%config %{l_prefix}/etc/fsl/fsl.%{name}' \ |
|
|
|
|
'%config %{l_prefix}/etc/imapd/imapd.conf' \ |
|
|
|
|
'%config %{l_prefix}/etc/imapd/cyrus.conf' \ |
|
|
|
|
'%config %{l_prefix}/etc/fsl/fsl.imapd' \ |
|
|
|
|
'%not %dir %{l_prefix}/etc/fsl' \ |
|
|
|
|
'%dir %attr(0750,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/imapd' \ |
|
|
|
|
'%dir %attr(0750,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/imapd/*' \ |
|
|
|
|
'%dir %attr(0770,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/imapd/*/*' \ |
|
|
|
|
|