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.
50 lines
1.1 KiB
50 lines
1.1 KiB
%define version 0.0.1
|
|
%define release 1.beta0
|
|
%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(Date::Time)
|
|
Requires: perl(DBI);
|
|
|
|
%description
|
|
Log every smtpd transaction in a database
|
|
|
|
%changelog
|
|
* Thu Oct 11 2012 Daniel Berteaud <daniel@firewall-services.com> 0.0.1
|
|
- Initial release
|
|
|
|
%build
|
|
perl createlinks
|
|
|
|
%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 \
|
|
> %{name}-%{version}-filelist
|
|
|
|
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
|
|
echo "%doc mail_log.sql" >> %{name}-%{version}-filelist
|
|
%files -f %{name}-%{version}-filelist
|
|
%defattr(-,root,root)
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
%preun
|
|
|
|
|