Log every SMTP transaction in a MySQL database on SME Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.7 KiB

%define version 0.1.4
%define release 1
12 years ago
%define name smeserver-qpsmtpd-log2sql
Summary: SQL Logging plugin for qpsmtpd
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPL
Group: Networking/Daemons
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArchitectures: noarch
BuildRequires: e-smith-devtools
Requires: smeserver-qpsmtpd
Requires: e-smith-mysql
Requires: perl(DBI)
12 years ago
%description
Log every smtp transaction in a database
12 years ago
%changelog
* Tue Oct 16 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.4-1
- purge old entries from the database
- log headers in a separate table
* Sun Oct 14 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.3-1
- use UTF-8 for MySQL connexion
- log auth user name
* Fri Oct 12 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1
- decode (MIME-Header) mail subject
* Thu Oct 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.1-1
- update coding style
- DB renamed to smtp_log
- Possibility to choose an other database host (default is localhost)
* Thu Oct 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.0-1
12 years ago
- Initial release
%prep
%setup -q -n %{name}-%{version}
12 years ago
%build
perl ./createlinks
12 years ago
%install
/bin/rm -rf $RPM_BUILD_ROOT
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--file /etc/cron.daily/qpsmtpd-db-cleanup 'attr(0755,root,root)' \
12 years ago
> %{name}-%{version}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
echo "%doc smtp_log.sql" >> %{name}-%{version}-filelist
12 years ago
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT
%post
%preun