1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
Name: mysqmail
Version: 0.4.9
Release: 0.1.20090818
License: LGPL
Group: System Environment/Daemons
URL: http://www.gplhost.com/software-mysqmail.html
Source: mysqmail-%{version}.tar.gz
BuildRoot:%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: make gcc dotconf-devel mysql-devel
Requires: dotconf /usr/bin/tail mysql
Summary: Use MySQL accouting and auth for most used MTA (configuration file)
Group: System Environment/Daemons
%description
MySQMail is a set of tiny daemon loggers for Qmail, Postfix,
Pure-ftpd and Courier that will save trafic informations in database.
It's also a replacement for the qmail standard checkpasswd that
does the auth via a MySQL table. When done, it setups 2 more
environment variables: MYSQMAIL_USERNAME MYSQMAIL_DOMAINNAME
that the mysqmail's qmail-pop3d replacement will use to do
the traffic accounting in the MySQL table for this account.
This package holds the configuration file management for
the other packages which share the same /etc/mysqmail.conf:
mysqmail-postfix-logger and mysqmail-courier-logger
%package postfix-logger
Summary: Use MySQL accouting and auth for most used MTA (postfix logger)
Group: System Environment/Daemons
Requires: dtc-core, mysqmail
%description postfix-logger
MySQMail is a set of tiny daemon loggers for Qmail, Postfix,
Pure-ftpd and Courier that will save trafic informations in database.
It's also a replacement for the qmail standard checkpasswd that
does the auth via a MySQL table. When done, it setups 2 more
environment variables: MYSQMAIL_USERNAME MYSQMAIL_DOMAINNAME
that the mysqmail's qmail-pop3d replacement will use to do
the traffic accounting in the MySQL table for this account.
This package holds the configuration file management for
the other packages which share the same /etc/mysqmail.conf:
mysqmail-postfix-logger and mysqmail-courier-logger
%package courier-logger
Summary: Use MySQL accouting and auth for most used MTA (courier logger)
Group: System Environment/Daemons
Requires: dtc-core, mysqmail
%description courier-logger
MySQMail is a set of tiny daemon loggers for Qmail, Postfix,
Pure-ftpd and Courier that will save trafic informations in database.
It's also a replacement for the qmail standard checkpasswd that
does the auth via a MySQL table. When done, it setups 2 more
environment variables: MYSQMAIL_USERNAME MYSQMAIL_DOMAINNAME
that the mysqmail's qmail-pop3d replacement will use to do
the traffic accounting in the MySQL table for this account.
This package holds the configuration file management for
the other packages which share the same /etc/mysqmail.conf:
mysqmail-postfix-logger and mysqmail-courier-logger
%package pure-ftpd-logger
Summary: Use MySQL accouting and auth for most used MTA (pure-ftpd logger)
Group: System Environment/Daemons
Requires: dtc-core, mysqmail
%description pure-ftpd-logger
MySQMail is a set of tiny daemon loggers for Qmail, Postfix,
Pure-ftpd and Courier that will save trafic informations in database.
It's also a replacement for the qmail standard checkpasswd that
does the auth via a MySQL table. When done, it setups 2 more
environment variables: MYSQMAIL_USERNAME MYSQMAIL_DOMAINNAME
that the mysqmail's qmail-pop3d replacement will use to do
the traffic accounting in the MySQL table for this account.
This package holds the configuration file management for
the other packages which share the same /etc/mysqmail.conf:
mysqmail-postfix-logger and mysqmail-courier-logger
%package dovecot-logger
Summary: Use MySQL accouting and auth for most used MTA (dovecot logger)
Group: System Environment/Daemons
Requires: dtc-core, mysqmail
%description dovecot-logger
MySQMail is a set of tiny daemon loggers for Qmail, Postfix,
Pure-ftpd and Courier that will save trafic informations in database.
It's also a replacement for the qmail standard checkpasswd that
does the auth via a MySQL table. When done, it setups 2 more
environment variables: MYSQMAIL_USERNAME MYSQMAIL_DOMAINNAME
that the mysqmail's qmail-pop3d replacement will use to do
the traffic accounting in the MySQL table for this account.
This package holds the configuration file management for
the other packages which share the same /etc/mysqmail.conf:
mysqmail-postfix-logger and mysqmail-courier-logger
%prep
%setup
%build
make
%install
set -e
%{__rm} -rf %{buildroot}
mkdir -p %{buildroot}
make install DESTDIR=%{buildroot} SBIN_DIR=%{_sbindir} MAN_DIR=%{_mandir} INSTALL=install
make install-conf DESTDIR=%{buildroot} ETCDIR=%{_sysconfdir} INSTALL=install
install -D -m 0755 etc/init.d/mysqmail-postfix-logger %{buildroot}%{_sysconfdir}/rc.d/init.d/mysqmail-postfix-logger
install -D -m 0755 etc/init.d/mysqmail-courier-logger %{buildroot}%{_sysconfdir}/rc.d/init.d/mysqmail-courier-logger
install -D -m 0755 etc/init.d/mysqmail-pure-ftpd-logger %{buildroot}%{_sysconfdir}/rc.d/init.d/mysqmail-pure-ftpd-logger
install -D -m 0755 etc/init.d/mysqmail-dovecot-logger %{buildroot}%{_sysconfdir}/rc.d/init.d/mysqmail-dovecot-logger
%pre
%clean
%{__rm} -rf %{buildroot} 2>&1 >/dev/null
%files
%defattr(-, root, root, -)
%config(noreplace) %{_sysconfdir}/mysqmail.conf
%{_mandir}/man?/*
%files postfix-logger
%{_sbindir}/mysqmail-postfix-logger
%{_sysconfdir}/rc.d/init.d/mysqmail-postfix-logger
#%{_mandir}/man8/mysqmail-postfix-logger.8
%files courier-logger
%{_sbindir}/mysqmail-courier-logger
%{_sysconfdir}/rc.d/init.d/mysqmail-courier-logger
%files dovecot-logger
%{_sbindir}/mysqmail-dovecot-logger
%{_sysconfdir}/rc.d/init.d/mysqmail-dovecot-logger
%files pure-ftpd-logger
%{_sbindir}/mysqmail-pure-ftpd-logger
%{_sysconfdir}/rc.d/init.d/mysqmail-pure-ftpd-logger
%changelog
* Sat Aug 08 2009 Thomas Goirand (zigo) <thomas@goirand.fr> 0.30.4-0.1.20090818
- Initial Package
|