2024-01-06 10:26:27 +01:00
|
|
|
%define htmldir %{_localstatedir}/www/html/%{name}
|
|
|
|
%define vacationgroupid 65423
|
|
|
|
%define vacationuserid 65423
|
|
|
|
|
|
|
|
Name: postfixadmin
|
2024-01-06 10:26:27 +01:00
|
|
|
Version: 3.3.3
|
2024-01-06 10:26:27 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 10:26:27 +01:00
|
|
|
Summary: A Web Based Management tool for Postfix
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://sourceforge.net/projects/postfixadmin/
|
2024-01-06 10:26:27 +01:00
|
|
|
Source: https://github.com/postfixadmin/postfixadmin.git/postfixadmin-%{version}/postfixadmin-%{version}.tar.bz2
|
|
|
|
#Source: http://downloads.sourceforge.net/project/postfixadmin/postfixadmin/postfixadmin-%{version}/postfixadmin-%{version}.tar.gz
|
2024-01-06 10:26:27 +01:00
|
|
|
Source1: %{name}-httpd.d.conf
|
|
|
|
Source2: %{name}-vacation.conf
|
|
|
|
Patch0: %{name}-2.2.1.1-css_menu_width.patch
|
|
|
|
Patch1: %{name}-2.3-fix_php_path.patch
|
2024-01-06 10:26:27 +01:00
|
|
|
Patch2: postfixadmin-2.91-fetchmail-fix-extra-ssl-options.patch
|
2024-01-06 10:26:27 +01:00
|
|
|
Patch3: postfixadmin-2.93-mariadb-5.5.patch
|
|
|
|
Patch4: postfixadmin-2.93-fetchmail-mariadb-5.5.patch
|
2024-01-06 10:26:27 +01:00
|
|
|
License: GPL
|
2024-01-06 10:26:27 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-Imap
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 10:26:27 +01:00
|
|
|
Requires: mysql >= 4.1.22, mysql-client >= 4.1.22
|
2024-01-06 10:26:27 +01:00
|
|
|
Requires(pre): postfix >= 2.3.8
|
2024-01-06 10:26:27 +01:00
|
|
|
Requires: httpd, apache-mod_php
|
2024-01-06 10:26:27 +01:00
|
|
|
Requires: php-mysqli >= 5.1.5
|
2024-01-06 10:26:27 +01:00
|
|
|
Requires: php-imap
|
|
|
|
Requires: perl-LockFile-Simple
|
|
|
|
Requires: perl-DBD-mysql
|
|
|
|
Requires: fetchmail
|
2024-01-06 10:26:27 +01:00
|
|
|
BuildArch: noarch
|
2024-01-06 10:26:27 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2024-01-06 10:26:27 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Postfix Admin is a Web Based Management tool created for Postfix.
|
|
|
|
It is a PHP based application that handles Postfix Style Virtual Domains and Users that are stored in MySQL.
|
|
|
|
|
|
|
|
Postfix Admin supports:
|
|
|
|
- Virtual Mailboxes / Virtual Aliases / Forwarders.
|
|
|
|
- Domain to Domain forwarding / Catch-All.
|
|
|
|
- Vacation (auto-response) for Virtual Mailboxes.
|
|
|
|
- Quota / Alias & Mailbox limits per domain.
|
|
|
|
- Backup MX.
|
|
|
|
- Packaged with over 25 languages...
|
|
|
|
|
|
|
|
%package cyrus
|
|
|
|
Group: Applications/Web
|
|
|
|
Summary: Postfixadmin support files for cyrus-imap
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description cyrus
|
|
|
|
Postfixadmin support files for cyrus-imap.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 10:26:27 +01:00
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
2024-01-06 10:26:27 +01:00
|
|
|
#%patch2 -p1
|
2024-01-06 10:26:27 +01:00
|
|
|
#%patch3 -p1
|
|
|
|
#%patch4 -p1
|
2024-01-06 10:26:27 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}%{htmldir} %{buildroot}%{_datadir}/postfixadmin
|
|
|
|
cp -a * %{buildroot}%{htmldir}
|
|
|
|
#install -m0644 DOCUMENTS/BACKUP_MX.txt DOCUMENTS/FAQ.txt DOCUMENTS/LANGUAGE.txt \
|
|
|
|
# DOCUMENTS/POSTFIX_CONF.txt DOCUMENTS/SECURITY.txt DOCUMENTS/UPGRADE.txt \
|
|
|
|
# DOCUMENTS/DOVECOT.txt DOCUMENTS/HORDE.txt DOCUMENTS/POSTFIXADMIN.txt \
|
|
|
|
# DOCUMENTS/SUPERADMIN.txt
|
|
|
|
# %{buildroot}%{_datadir}/postfixadmin/
|
|
|
|
#install CHANGELOG.TXT %{buildroot}%{htmldir}
|
|
|
|
#rm -rf %{buildroot}%{htmldir}/DOCUMENTS
|
|
|
|
#mv %{buildroot}%{htmldir}/config.inc.php.sample %{buildroot}%{htmldir}/config.inc.php
|
|
|
|
rm -rf %{buildroot}%{htmldir}/templates/{footer,menu}.tpl.orig
|
|
|
|
#sed -i "s|AuthUserFile .*|AuthUserFile %{htmldir}/admin/.htpasswd|" %{buildroot}%{htmldir}/admin/.htaccess
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/httpd.d/postfixadmin.conf
|
|
|
|
|
|
|
|
# configure vacation support
|
|
|
|
install -d %{buildroot}/var/spool/vacation
|
|
|
|
cp %{buildroot}%{htmldir}/VIRTUAL_VACATION/vacation.pl %{buildroot}/var/spool/vacation
|
|
|
|
install -D -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/mail/postfixadmin/vacation.conf
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/mail/postfixadmin/vacation.conf << _EOF
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
# configure cyrus imap support
|
|
|
|
cp %{buildroot}%{htmldir}/ADDITIONS/cyrus/cyrus.conf %{buildroot}%{_sysconfdir}/mail/postfixadmin/cyrus.conf
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{htmldir}/debian
|
|
|
|
#rm -f %{buildroot}%{htmldir}/*.TXT
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_localstatedir}/run/fetchmail
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
#%post
|
|
|
|
## new install
|
|
|
|
#if [ $1 -eq 1 ]; then
|
|
|
|
# mysql -u root < %{_datadir}/postfixadmin/DATABASE_MYSQL.TXT
|
|
|
|
#fi
|
|
|
|
#exit 0
|
|
|
|
|
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/usr/sbin/groupadd vacation -g %{vacationgroupid} 2>/dev/null
|
|
|
|
/usr/sbin/useradd -c "Virtual Vacation" -u %{vacationuserid} -d /dev/null -g vacation \
|
|
|
|
-s /bin/nologin vacation 2>/dev/null
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/usr/sbin/groupdel vacation 2>/dev/null
|
|
|
|
/usr/sbin/userdel vacation 2>/dev/null
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %attr(0640,root,nobody) %{_sysconfdir}/httpd/httpd.d/postfixadmin.conf
|
|
|
|
%config(noreplace) %attr(0600,vacation,vacation) %{_sysconfdir}/mail/postfixadmin/vacation.conf
|
|
|
|
#%config %attr(0640,root,nobody) %{htmldir}/admin/.htaccess
|
|
|
|
#%config(noreplace) %attr(0640,root,nobody) %{htmldir}/admin/.htpasswd
|
|
|
|
%attr(0755,root,root) %dir %{htmldir}
|
2024-01-06 10:26:27 +01:00
|
|
|
#%attr(-,apache,nobody) %{htmldir}/css/*
|
2024-01-06 10:26:27 +01:00
|
|
|
%config(noreplace) %attr(0640,apache,nobody) %{htmldir}/config.inc.php
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/*.php
|
2024-01-06 10:26:27 +01:00
|
|
|
#%attr(-,apache,nobody) %{htmldir}/calendar.js
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %{htmldir}/DOCUMENTS
|
|
|
|
%{htmldir}/DOCUMENTS/*
|
|
|
|
%dir %{htmldir}/ADDITIONS
|
|
|
|
%dir %{htmldir}/ADDITIONS/squirrelmail-plugin
|
|
|
|
%{htmldir}/ADDITIONS/squirrelmail-plugin/*
|
|
|
|
%{htmldir}/ADDITIONS/README.TXT
|
|
|
|
%{htmldir}/ADDITIONS/change_password.tgz
|
|
|
|
%{htmldir}/ADDITIONS/*.pl
|
|
|
|
%{htmldir}/ADDITIONS/import_users_from_csv.py
|
|
|
|
%{htmldir}/ADDITIONS/postfixadmin-domain-postdeletion.sh
|
|
|
|
%{htmldir}/ADDITIONS/postfixadmin-mailbox-postcreation.sh
|
|
|
|
%{htmldir}/ADDITIONS/postfixadmin-mailbox-postdeletion.sh
|
|
|
|
%{htmldir}/ADDITIONS/virtualmaildel.php
|
2024-01-06 10:26:27 +01:00
|
|
|
%{htmldir}/check_mailpass_expiration.sh
|
|
|
|
%{htmldir}/password_expiration.sql
|
|
|
|
%{htmldir}/postfixadmin.my.cnf
|
|
|
|
%{htmldir}/psalm.xml
|
|
|
|
%{htmldir}/composer.json
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/configs
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/configs/menu.conf
|
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/languages
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/languages/*
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/lib
|
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/lib/smarty
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/lib/smarty/*
|
2024-01-06 10:26:27 +01:00
|
|
|
#%{_localstatedir}/www/html/postfixadmin/lib/random_compat.*
|
|
|
|
#%{_localstatedir}/www/html/postfixadmin/lib/smarty.inc.php
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/model
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/model/*
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/public
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/public/*
|
|
|
|
%{_localstatedir}/www/html/postfixadmin/README.md
|
|
|
|
%{_localstatedir}/www/html/postfixadmin/phpunit.xml
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/scripts
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/scripts/*
|
|
|
|
%dir %attr(-,apache,nobody) %{htmldir}/templates
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/templates/*
|
|
|
|
%attr(-,apache,nobody) %dir %{htmldir}/VIRTUAL_VACATION
|
|
|
|
%attr(-,apache,nobody) %{htmldir}/VIRTUAL_VACATION/*
|
|
|
|
%attr(-,apache,nobody)%{htmldir}/tests
|
2024-01-06 10:26:27 +01:00
|
|
|
%attr(0700,vacation,vacation) %dir /var/spool/vacation
|
|
|
|
%attr(0700,vacation,vacation) /var/spool/vacation/vacation.pl
|
|
|
|
%{htmldir}/CHANGELOG.TXT
|
|
|
|
%{htmldir}/GPL-LICENSE.TXT
|
|
|
|
%{htmldir}/INSTALL.TXT
|
|
|
|
%{htmldir}/LICENSE.TXT
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %attr(0750,vmail,vmail) %{_localstatedir}/run/fetchmail
|
2024-01-06 10:26:27 +01:00
|
|
|
|
|
|
|
%files cyrus
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%config(noreplace) %{_sysconfdir}/mail/postfixadmin/cyrus.conf
|
2024-01-06 10:26:27 +01:00
|
|
|
%dir %{_localstatedir}/www/html/postfixadmin/ADDITIONS/cyrus
|
|
|
|
%{_localstatedir}/www/html/postfixadmin/ADDITIONS/cyrus/*
|
2024-01-06 10:26:27 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:26:27 +01:00
|
|
|
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 3.3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 3.3.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Tue Apr 21 2020 Automatic Build System <autodist@mambasoft.it> 3.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Sep 27 2019 Automatic Build System <autodist@mambasoft.it> 3.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.2-1mamba
|
|
|
|
- update to 3.2.2
|
|
|
|
|
|
|
|
* Fri Apr 14 2017 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 24 2016 Automatic Build System <autodist@mambasoft.it> 3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Tue Apr 19 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.93-2mamba
|
|
|
|
- patch in Fetchmail handler for mysql/mariadb 5.5
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Sat Oct 10 2015 Automatic Build System <autodist@mambasoft.it> 2.93-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Sat Nov 01 2014 Automatic Build System <autodist@mambasoft.it> 2.92-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Sat Jun 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.91-1mamba
|
|
|
|
- update to 2.91
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Sat Jun 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.7-3mamba
|
|
|
|
- require fetchmail, perl-LockFile-Simple and other perl requirements for fetchmail.pl
|
|
|
|
- provide /var/run/fetchmail required by fetchmail.pl
|
|
|
|
|
|
|
|
* Sat Jun 21 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.7-2mamba
|
|
|
|
- require php-imap
|
|
|
|
|
2024-01-06 10:26:27 +01:00
|
|
|
* Thu Feb 27 2014 Automatic Build System <autodist@mambasoft.it> 2.3.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 15 2013 Automatic Build System <autodist@mambasoft.it> 2.3.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Sep 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.5-2mamba
|
|
|
|
- replace config.inc.php to match new changes; use config.local.php for custom settings
|
|
|
|
|
|
|
|
* Mon Apr 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.5-1mamba
|
|
|
|
- update to 2.3.5
|
|
|
|
|
|
|
|
* Wed Sep 21 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.4-1mamba
|
|
|
|
- update to 2.3.4
|
|
|
|
|
|
|
|
* Fri Jun 04 2010 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
|
|
|
|
- update to 2.3
|
|
|
|
|
|
|
|
* Thu Mar 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.1.1-1mamba
|
|
|
|
- update to 2.2.1.1
|
|
|
|
|
|
|
|
* Fri May 25 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-3mamba
|
|
|
|
- change group from apache to nobody
|
|
|
|
|
|
|
|
* Thu May 24 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Tue Mar 13 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1qilnx
|
|
|
|
- package created by autospec
|