Hi,

I have a suggestion relating to the installation part in the spec file.

1) Replace hardwired config option:

        -       --enable-imageurl=/webmail/ \
        +        --enable-imageurl=%{imageurl} \


2) Replace hardwired user/group on install

+ %define cacheowner              bin
+ %define sqwebmailowner          root
+ %define sqwebmailgroup          mail

At configure
+ --with-cacheowner=%{cacheowner} \


- %attr(06555, root, mail) %{cgibindir}/sqwebmail
+ %attr(%{sqwebmailperm}, %{sqwebmailowner}, %{sqwebmailgroup})
%{cgibindir}/sqwebmail

- %attr(700, bin, bin) %dir %{cachedir}
+ %attr(700, %{cacheowner}, bin) %dir %{cachedir}


Reasons:
Afterwards you can easily change the spec file to produce an usermade RPM,
i.e. for usage with vpopmail-only and Apache/suexec:

Note: there are additional Apache settings necessary to use this.

%define cgibindir               /home/vpopmail/public_html/sqwebmail/cgi-bin
%define imagedir                /home/vpopmail/public_html/sqwebmail/images
%define imageurl                '/images/sqwebmail/'

%define cacheowner              vpopmail
%define sqwebmailowner          vpopmail
%define sqwebmailgroup          vchkpw
%define sqwebmailperm           00555



        Peter

Reply via email to