smeserver-qpsmtpd-log2sql/smeserver-qpsmtpd-log2sql.spec

82 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

2014-06-26 06:53:38 +02:00
%define version 0.1.8
2012-10-11 17:58:15 +02:00
%define release 1
2012-10-11 11:29:02 +02:00
%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
2012-10-11 11:43:14 +02:00
Requires: perl(DBI)
2012-10-11 11:29:02 +02:00
%description
2012-10-12 13:55:14 +02:00
Log every smtp transaction in a database
2012-10-11 11:29:02 +02:00
%changelog
2014-06-26 06:53:38 +02:00
* Thu Jun 26 2014 Daniel Berteaud <daniel@firewall-services.com> 0.1.8-1
- Define HOME in cron task so it works on EL6
2013-05-15 09:38:00 +02:00
* Wed May 15 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.7-1
- Only convert to InnoDB if not already done
2013-04-22 12:16:52 +02:00
* Mon Apr 22 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.6-1
- Fix a typo in MySQL template
2013-04-19 16:41:44 +02:00
* Fri Apr 19 2013 Daniel Berteaud <daniel@firewall-services.com> 0.1.5-1
- Use InnoDB instead of MyISAM
2012-10-16 17:23:50 +02:00
* 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
2012-10-14 22:18:50 +02:00
* 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
2012-10-12 16:11:36 +02:00
- decode (MIME-Header) mail subject
2012-10-12 13:55:14 +02:00
* 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
2012-10-11 11:29:02 +02:00
- Initial release
2012-10-11 11:43:14 +02:00
%prep
%setup -q -n %{name}-%{version}
2012-10-11 11:29:02 +02:00
%build
2012-10-11 11:43:14 +02:00
perl ./createlinks
2012-10-11 11:29:02 +02:00
%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 \
2012-10-16 17:23:50 +02:00
--file /etc/cron.daily/qpsmtpd-db-cleanup 'attr(0755,root,root)' \
2012-10-11 11:29:02 +02:00
> %{name}-%{version}-filelist
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
2012-10-12 13:55:14 +02:00
echo "%doc smtp_log.sql" >> %{name}-%{version}-filelist
2012-10-11 11:29:02 +02:00
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
%clean
rm -rf $RPM_BUILD_ROOT
%post
%preun