1 # TODO: bcond for mysql
2 Summary: Collection of programs for storing and retrieving mail from a SQL database
9 Group: Networking/Daemons
10 Source0: http://dbmail.org/tgz/%{name}-%{version}%{_rc}.tgz
11 # Source0-md5: f3cca8eb615af565a388069c1ab68f08
12 URL: http://www.dbman.org/
13 BuildRequires: postgresql-devel
14 #Requires(pre,post): -
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 DBMAIL is a collection of programs that enables email to be
22 stored in and retrieved from a database.
26 Well, for me it's usefull because a number of reasons.
27 - it enables me to create mailboxes without the need of systemusers.
28 - mail is more effeciently stored and therefore it can be inserted
29 an retrieved much faster dan any regular system (DBmail is currently
30 able to retrieve aprox. 250 mail messages per second)
31 - it's more expandable. A database is much easier to access than
32 a flat file or a Maildir. We don't need to parse first.
33 - In my case, i can easily link a mailbox to a certain client
34 which enables me to let the client maintaining his/her own mailboxes
35 without me needing to technically support it.
36 - It's scalable. You can run the dbmail programs on different servers
37 talking to the same database(cluster).
38 - It is more secure. There's no need to maintain system users or write
39 to the filesystem. All this is done through the database.
45 %setup -q -n %{name}-%{version}%{_rc}
48 # if ac/am/* rebuilding is necessary, do it in this order and add
49 # appropriate BuildRequires
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
65 install -D dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbmail/dbmail.conf
66 install -d $RPM_BUILD_ROOT%{_mandir}/man1
67 cp man/* $RPM_BUILD_ROOT%{_mandir}/man1
70 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
82 %doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
83 %attr(755,root,root) %{_bindir}/*
85 %dir %{_sysconfdir}/dbmail
86 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dbmail/*