3 # - add separate user/group
4 # - add subpackages and init / rc-inetd scripts
5 # for dbmail-{pop3,imap,lmtpd}
6 # - add cronjob for dbmail-maintenance
7 Summary: Collection of programs for storing and retrieving mail from a SQL database
8 Summary(pl.UTF-8): Zestaw programów do zapisywania i odtwarzania poczty z bazy danych SQL
13 Group: Networking/Daemons
14 Source0: http://dbmail.org/download/%{name}-%{version}.tgz
15 # Source0-md5: 9499c25c977e44777364a9696d8b1b48
16 URL: http://www.dbman.org/
17 BuildRequires: autoconf
18 BuildRequires: postgresql-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 DBMAIL is a collection of programs that enables email to be stored in
24 and retrieved from a database.
28 Well, for me it's usefull because a number of reasons.
29 - It enables me to create mailboxes without the need of system users.
30 - Mail is more effeciently stored and therefore it can be inserted
31 an retrieved much faster than any regular system (DBmail is
32 currently able to retrieve aprox. 250 mail messages per second).
33 - It's more expandable. A database is much easier to access than
34 a flat file or a Maildir. We don't need to parse first.
35 - In my case, I can easily link a mailbox to a certain client
36 which enables me to let the client maintaining his/her own mailboxes
37 without me needing to technically support it.
38 - It's scalable. You can run the dbmail programs on different servers
39 talking to the same database (cluster).
40 - It is more secure. There's no need to maintain system users or write
41 to the filesystem. All this is done through the database.
43 %description -l pl.UTF-8
44 DBMAIL to zestaw programów umożliwiających zapisywanie i odtwarzanie
47 Dlaczego jest to użyteczne? Dla autora jest z kilku powodów:
48 - Umożliwia tworzenie skrzynek bez wymagania użytkowników systemowych.
49 - Poczta jest zapisywana bardziej wydajnie i może być umieszczana oraz
50 odtwarzana dużo szybciej niż w normalnych systemach (DBmail aktualnie
51 jest w stanie odczytywać około 250 listów na sekundę).
52 - Jest bardziej rozszerzalne. Dostęp do bazy danych jest łatwiejszy
53 niż do płaskiego pliku lub Maildira. Nie trzeba ich najpierw
55 - W przypadku autora - może on łatwo podłączyć skrzynkę do pewnego
56 klienta umożliwiając utrzymywanie skrzynek przez klienta bez potrzeby
57 technicznego wsparcia administratora.
58 - Jest skalowalne. Można uruchamiać programy dbmail na różnych
59 serwerach komunikujących się z tą samą bazą danych (klastrem).
60 - Jest bardziej bezpieczne. Nie trzeba utrzymywać użytkowników
61 systemowych ani pisać po systemie plików. Wszystkie jest wykonywane w
64 %package mailbox2dbmail
65 Summary: Copy mail from an mbox file, maildir or mhdir directory to dbmail
66 Summary(pl.UTF-8): Kopiowanie poczty z pliku mbox, katalogu maildir lub mhdir do dbmaila
68 Group: Applications/Mail
69 Requires: %{name} = %{version}-%{release}
70 Requires: python-modules >= 2.2
72 %description mailbox2dbmail
73 Use this program to copy mail from an mbox file, maildir or mhdir
74 directory to dbmail. This program uses ./dbmail-smtp for injecting the
77 %description mailbox2dbmail -l pl.UTF-8
78 Tego programu można używać do kopiowania poczty z pliku mbox albo
79 katalogu maildir lub mhdir do dbmaila. Używa on ./dbmail-smtp do
80 umieszczania listów w bazie DBMail.
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
97 install -D dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbmail.conf
98 install -d $RPM_BUILD_ROOT%{_mandir}/man1
99 cp man/* $RPM_BUILD_ROOT%{_mandir}/man1
100 install contrib/mailbox2dbmail/mailbox2dbmail $RPM_BUILD_ROOT%{_bindir}
101 install contrib/mailbox2dbmail/mailbox2dbmail.1 $RPM_BUILD_ROOT%{_mandir}/man1
102 install dbmail-* $RPM_BUILD_ROOT%{_bindir}
105 rm -rf $RPM_BUILD_ROOT
109 echo " Read /usr/share/doc/%{name}-%{version}-%{release}/INSTALL*"
110 echo " files, create database, configure /etc/dbmail.conf, the"
111 echo " SMTP server, and the cron job for dbmail-maintenance."
113 echo " This package doesn't provide any init scripts; you'll have"
114 echo " to deal with starting the appropiate daemons yourself."
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
120 %attr(755,root,root) %{_bindir}/dbmail-*
121 # -devel? but headers?
123 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
124 %{_mandir}/man1/dbmail-*
126 %files mailbox2dbmail
127 %defattr(644,root,root,755)
128 %doc contrib/mailbox2dbmail/README
129 %attr(755,root,root) %{_bindir}/*
130 %{_mandir}/man1/mailbox2dbmail*