Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmailadmin
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 10
[-]
[+]
Changed
qmailadmin.spec
@@ -9,10 +9,19 @@ # vpopmail user %define VPOPUID 89 - +%if 0%{?suse_version} +%define _apachewww /srv/www/htdocs +%define _apachecgi /srv/www/cgi-bin +%endif + +%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} +%define _apachewww /var/www/html +%define _apachecgi /var/www/cgi-bin +%endif +%define _helpversion 1.0.8 Name: qmailadmin Version: 1.2.12 -Release: 2 +Release: 3 Summary: virtual domains for qmail Group: Applications/Productivity @@ -21,6 +30,7 @@ Source0: http://osdn.dl.sourceforge.net/sourceforge/qmailadmin/%{name}-%{version}.tar.gz Source1: qmailadmin.maildrop Source2: qmailadmin.logrotate +Source10: %{name}-help-%{_helpversion}.tar.gz Patch0: qmailadmin-makefile.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: maildrop netqmail autorespond vpopmail apache2 mysql @@ -29,15 +39,15 @@ %description %prep -%setup -q +%setup -q -b10 %patch0 %configure \ --enable-vpopmaildir=%{VPOP_HOME} \ - --enable-htmldir=/srv/www/htdocs \ - --enable-cgibindir=/srv/www/cgi-bin \ + --enable-htmldir=%{_apachewww} \ + --enable-cgibindir=%{_apachecgi} \ --enable-imageurl=/images/qmailadmin \ - --enable-imagedir=/srv/www/htdocs/images/qmailadmin \ - --enable-htmllibdir=/srv/www/htdocs/qmailadmin \ + --enable-imagedir=%{_apachewww}/images/qmailadmin \ + --enable-htmllibdir=%{_apachewww}/qmailadmin \ --enable-qmaildir=%{qdir} \ --enable-ezmlmdir=%{_bindir} \ --enable-cgipath=/cgi-bin/qmailadmin \ @@ -61,6 +71,9 @@ %__install -m 755 -d %{buildroot}/var/log/maildrop/ %__install -D -m 644 %{S:2} %{buildroot}/%{_sysconfdir}/logrotate.d/qmailadmin %__install -D -m 600 %{S:1} %{buildroot}/%{_sysconfdir}/maildrop.d/qmailadmin +# help files +%__install -m 755 -d %{buildroot}%{_apachewww}/images/qmailadmin/help +cp -rp $RPM_BUILD_DIR/%{name}-help-%{_helpversion}/* %{buildroot}%{_apachewww}/images/qmailadmin/help/ %pre @@ -69,20 +82,24 @@ %files %defattr(6755,vpopmail,vchkpw) -/srv/www/cgi-bin/qmailadmin +%{_apachecgi}/qmailadmin %defattr(0644,vpopmail,vchkpw) -/srv/www/htdocs/images/qmailadmin/* +%{_apachewww}/images/qmailadmin/* %defattr(0755,vpopmail,vchkpw) -/srv/www/htdocs/qmailadmin +%{_apachewww}/qmailadmin %defattr(0644,vpopmail,vchkpw) -/srv/www/htdocs/qmailadmin/html/* -/srv/www/htdocs/qmailadmin/lang/* +%{_apachewww}/qmailadmin/html/* +%{_apachewww}/qmailadmin/lang/* %attr(0700,vpopmail,vchkpw) %dir %{_sysconfdir}/maildrop.d %attr(0600,vpopmail,vchkpw) %{_sysconfdir}/maildrop.d/qmailadmin %attr(0755,vpopmail,vchkpw) /var/log/maildrop %attr(0644,root,root) %{_sysconfdir}/logrotate.d/qmailadmin %changelog +* Thu Oct 23 2008 Carsten Schoene <cs@linux-administrator.com> - 1.2.12-3 +- added qmailadmin help files +- changed some macros for cross distribution build + * Mon Jul 14 2008 Carsten Schoene <cs@łinux-administrator.com> - 1.2.12-2 - added maildrop script for spam processing - added logrotate script
Added
qmailadmin-help-1.0.8.tar.gz
^