]> git.pld-linux.org Git - packages/dbmail.git/blame - dbmail.spec
- tabs in preamble
[packages/dbmail.git] / dbmail.spec
CommitLineData
199be7b0 1# TODO:
2# - bcond for mysql
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
c96445db 7Summary: Collection of programs for storing and retrieving mail from a SQL database
4320ffcf 8Summary(pl.UTF-8): Zestaw programów do zapisywania i odtwarzania poczty z bazy danych SQL
c96445db 9Name: dbmail
7660024c 10Version: 2.0.1
1d897355 11Release: 1
c96445db 12License: GPL v2
13Group: Networking/Daemons
1d897355 14Source0: http://dbmail.org/download/%{name}-%{version}.tgz
7660024c 15# Source0-md5: 9499c25c977e44777364a9696d8b1b48
c96445db 16URL: http://www.dbman.org/
188b129a 17BuildRequires: autoconf
c96445db 18BuildRequires: postgresql-devel
c96445db 19Requires: postgresql
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
9021f374
JB
23DBMAIL is a collection of programs that enables email to be stored in
24and retrieved from a database.
c96445db 25
26Why is it usefull?
27==================
28Well, for me it's usefull because a number of reasons.
9021f374
JB
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
c96445db 34 a flat file or a Maildir. We don't need to parse first.
9021f374 35- In my case, I can easily link a mailbox to a certain client
c96445db 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
9021f374 39 talking to the same database (cluster).
c96445db 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.
42
623cd071
JR
43%description -l pl.UTF-8
44DBMAIL to zestaw programów umożliwiających zapisywanie i odtwarzanie
9021f374
JB
45poczty z bazy danych.
46
623cd071
JR
47Dlaczego 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
54 analizować.
55- W przypadku autora - może on łatwo podłączyć skrzynkę do pewnego
56 klienta umożliwiając utrzymywanie skrzynek przez klienta bez potrzeby
0eaf55d0 57 technicznego wsparcia administratora.
623cd071
JR
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
0eaf55d0 62 bazie danych.
c96445db 63
81dd7052 64%package mailbox2dbmail
65Summary: Copy mail from an mbox file, maildir or mhdir directory to dbmail
4320ffcf 66Summary(pl.UTF-8): Kopiowanie poczty z pliku mbox, katalogu maildir lub mhdir do dbmaila
81dd7052 67# FIXME: better group
68Group: Applications/Mail
9021f374 69Requires: %{name} = %{version}-%{release}
81dd7052 70Requires: python-modules >= 2.2
71
72%description mailbox2dbmail
73Use this program to copy mail from an mbox file, maildir or mhdir
0eaf55d0
ER
74directory to dbmail. This program uses ./dbmail-smtp for injecting the
75emails into DBMail.
81dd7052 76
623cd071
JR
77%description mailbox2dbmail -l pl.UTF-8
78Tego programu można używać do kopiowania poczty z pliku mbox albo
79katalogu maildir lub mhdir do dbmaila. Używa on ./dbmail-smtp do
80umieszczania listów w bazie DBMail.
81dd7052 81
c96445db 82%prep
1d897355 83%setup -q
c96445db 84
85%build
188b129a 86%{__autoconf}
c96445db 87%configure2_13 \
88 --with-pgsql
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93
94%{__make} install \
95 DESTDIR=$RPM_BUILD_ROOT
96
cbb67471 97install -D dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}/dbmail.conf
37e8b2f8 98install -d $RPM_BUILD_ROOT%{_mandir}/man1
1c4fab0d 99cp man/* $RPM_BUILD_ROOT%{_mandir}/man1
100install contrib/mailbox2dbmail/mailbox2dbmail $RPM_BUILD_ROOT%{_bindir}
81dd7052 101install contrib/mailbox2dbmail/mailbox2dbmail.1 $RPM_BUILD_ROOT%{_mandir}/man1
1d897355 102install dbmail-* $RPM_BUILD_ROOT%{_bindir}
37e8b2f8 103
c96445db 104%clean
105rm -rf $RPM_BUILD_ROOT
106
c96445db 107%post
199be7b0 108echo " *****"
109echo " Read /usr/share/doc/%{name}-%{version}-%{release}/INSTALL*"
110echo " files, create database, configure /etc/dbmail.conf, the"
111echo " SMTP server, and the cron job for dbmail-maintenance."
112echo
113echo " This package doesn't provide any init scripts; you'll have"
114echo " to deal with starting the appropiate daemons yourself."
115echo " *****"
c96445db 116
117%files
118%defattr(644,root,root,755)
119%doc AUTHORS ChangeLog NEWS README THANKS TODO EXTRAS BUGS INSTALL* sql
633b0a6a 120%attr(755,root,root) %{_bindir}/dbmail-*
9021f374
JB
121# -devel? but headers?
122#%{_libdir}/*.a
0eaf55d0 123%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
81dd7052 124%{_mandir}/man1/dbmail-*
125
126%files mailbox2dbmail
127%defattr(644,root,root,755)
128%doc contrib/mailbox2dbmail/README
129%attr(755,root,root) %{_bindir}/*
130%{_mandir}/man1/mailbox2dbmail*
This page took 0.093755 seconds and 4 git commands to generate.