SPECS (DEVEL): dbmail.spec - split into -imapd, -lmtpd, -pop3d sub...
twittner
twittner at pld-linux.org
Sun Nov 19 23:09:27 CET 2006
Author: twittner Date: Sun Nov 19 22:09:27 2006 GMT
Module: SPECS Tag: DEVEL
---- Log message:
- split into -imapd, -lmtpd, -pop3d subpackages (I hope it makes sense)
- added initscripts
- TODO updated
- not tested - EOTIME & trouble with installation:
Processing dependencies...
dbmail-pop3d-2.2.1-0.1 marks dbmail-2.2.1-0.1 (cap dbmail = 2.2.1-0.1)
error: dbmail-2.2.1-0.1 (cnfl filesystem = 2.0-1) conflicts with installed filesystem-2.0-1
error: dbmail-2.2.1-0.1 (cnfl rc-scripts = 0.4.0.27-5) conflicts with installed rc-scripts-0.4.0.27-5
[...]
wtf?
---- Files affected:
SPECS:
dbmail.spec (1.15.2.2 -> 1.15.2.3)
---- Diffs:
================================================================
Index: SPECS/dbmail.spec
diff -u SPECS/dbmail.spec:1.15.2.2 SPECS/dbmail.spec:1.15.2.3
--- SPECS/dbmail.spec:1.15.2.2 Sun Nov 19 21:45:41 2006
+++ SPECS/dbmail.spec Sun Nov 19 23:09:22 2006
@@ -3,11 +3,15 @@
%bcond_without static_libs # don't build static libraries
#
# TODO:
-# - add separate user/group
-# - add subpackages and init / rc-inetd scripts
-# for dbmail-{pop3,imap,lmtpd}
-# - add cronjob for dbmail-maintenance
-# - review of %{_libdir} content - I'm not sure which files are really needed (I've packed all)
+# - add separate user/group
+# - add subpackages and init / rc-inetd scripts
+# for dbmail-{pop3,imap,lmtpd}
+# - add cronjob for dbmail-maintenance
+# - review of %{_libdir} content - I'm not sure which files are really needed (I've packed all)
+# - review summaries, descriptions before TRANSLATING them.
+# - review splitting files between subpackages
+# - add bconds for database backends
+#
Summary: Collection of programs for storing and retrieving mail from a SQL database
Summary(pl): Zestaw programów do zapisywania i odtwarzania poczty z bazy danych SQL
Name: dbmail
@@ -17,6 +21,9 @@
Group: Networking/Daemons
Source0: http://www.dbmail.org/download/2.2/%{name}-%{version}.tar.gz
# Source0-md5: 0023c5b55bdd2856ed4ec44c729adfdd
+Source1: %{name}-imapd.init
+Source2: %{name}-lmtpd.init
+Source3: %{name}-pop3d.init
URL: http://www.dbmail.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -25,6 +32,7 @@
BuildRequires: mysql-devel
BuildRequires: openldap-devel
BuildRequires: postgresql-devel
+BuildRequires: rpmbuild(macros) >= 1.228
BuildRequires: sqlite3-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,16 +42,17 @@
Why is it usefull?
==================
-Well, for me it's usefull because a number of reasons.
+Well, for me it's usefull
+because a number of reasons.
- It enables me to create mailboxes without the need of system users.
-- Mail is more effeciently stored and therefore it can be inserted
- an retrieved much faster than any regular system (DBmail is
- currently able to retrieve aprox. 250 mail messages per second).
-- It's more expandable. A database is much easier to access than
- a flat file or a Maildir. We don't need to parse first.
-- In my case, I can easily link a mailbox to a certain client
- which enables me to let the client maintaining his/her own mailboxes
- without me needing to technically support it.
+- Mail is more effeciently stored and therefore it can be inserted an
+ retrieved much faster than any regular system (DBmail is currently
+ able to retrieve aprox. 250 mail messages per second).
+- It's more expandable. A database is much easier to access than a
+ flat file or a Maildir. We don't need to parse first.
+- In my case, I can easily link a mailbox to a certain client which
+ enables me to let the client maintaining his/her own mailboxes without
+ me needing to technically support it.
- It's scalable. You can run the dbmail programs on different servers
talking to the same database (cluster).
- It is more secure. There's no need to maintain system users or write
@@ -70,6 +79,49 @@
systemowych ani pisać po systemie plików. Wszystkie jest wykonywane w
bazie danych.
+%package imapd
+Summary: imapd daemon for DBMail system
+#Summary(pl):
+Group: Daemons
+Requires(post,preun): /sbin/chkconfig
+Requires: dbmail = %{version}-%{release}
+
+%description imapd
+dbmail-imapd provides access to the DBMail system to clients
+supporting Internet Message Access Protocol, IMAP4r1, as specified in
+RFC 3501.
+
+#%%description imapd -l pl
+
+
+%package lmtpd
+Summary: lmtpd daemon for DBMail system
+#Summary(pl):
+Group: Daemons
+Requires(post,preun): /sbin/chkconfig
+Requires: dbmail = %{version}-%{release}
+
+%description lmtpd
+dbmail-lmtpd receive messages from an MTA supporting the Lightweight
+Mail Transport Protocol, as specified in RFC 2033.
+
+#%%description lmtpd -l pl
+
+
+%package pop3d
+Summary: pop3d daemon for DBMail system
+#Summary(pl):
+Group: Daemons
+Requires(post,preun): /sbin/chkconfig
+Requires: dbmail = %{version}-%{release}
+
+%description pop3d
+dbmail-pop3d provides access to the DBMail system to client support-
+ing Post Office Protocol, POP3, as specified in RFC 1939.
+
+#%%description pop3d -l pl
+
+
%package mailbox2dbmail
Summary: Copy mail from an mbox file, maildir or mhdir directory to dbmail
Summary(pl): Kopiowanie poczty z pliku mbox, katalogu maildir lub mhdir do dbmaila
@@ -108,7 +160,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},/etc/{rc.d/init.d,sysconfig}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -116,23 +168,58 @@
install dbmail.conf $RPM_BUILD_ROOT%{_sysconfdir}
install contrib/mailbox2dbmail/mailbox2dbmail $RPM_BUILD_ROOT%{_bindir}
install contrib/mailbox2dbmail/mailbox2dbmail.1 $RPM_BUILD_ROOT%{_mandir}/man1
+for initscript in %{SOURCE1} %{SOURCE2} %{SOURCE3} ; do
+ install $initscript $RPM_BUILD_ROOT/etc/rc.d/init.d/`basename $initscript .init`
+done
%clean
rm -rf $RPM_BUILD_ROOT
%post
%banner %{name} << EOF
-Read /usr/share/doc/%{name}-%{version}/*
-files, create database, configure /etc/dbmail.conf, the
+Read %{_docdir}/%{name}-%{version}/*
+files, create database, configure %{_sysconfdir}/dbmail.conf, the
SMTP server, and the cron job for dbmail-maintenance.
-This package doesn't provide any init scripts; you'll have
-to deal with starting the appropiate daemons yourself.
EOF
+%post imapd
+/sbin/chkconfig --add dbmail-imapd
+%service dbmail-imapd restart
+
+%preun imapd
+if [ "$1" = "0" ]; then
+ %service -q dbmail-imapd stop
+ /sbin/chkconfig --del dbmail-imapd
+fi
+
+%post lmtpd
+/sbin/chkconfig --add dbmail-lmtpd
+%service dbmail-lmtpd restart
+
+%preun lmtpd
+if [ "$1" = "0" ]; then
+ %service -q dbmail-lmtpd stop
+ /sbin/chkconfig --del dbmail-lmtpd
+fi
+
+%post pop3d
+/sbin/chkconfig --add dbmail-pop3d
+%service dbmail-pop3d restart
+
+%preun pop3d
+if [ "$1" = "0" ]; then
+ %service -q dbmail-pop3d stop
+ /sbin/chkconfig --del dbmail-pop3d
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS BUGS ChangeLog README* THANKS sql
-%attr(755,root,root) %{_sbindir}/dbmail-*
+%attr(755,root,root) %{_sbindir}/dbmail-export
+#%%attr(755,root,root) %{_sbindir}/dbmail-sievecmd
+%attr(755,root,root) %{_sbindir}/dbmail-smtp
+%attr(755,root,root) %{_sbindir}/dbmail-users
+%attr(755,root,root) %{_sbindir}/dbmail-util
%dir %{_libdir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}/lib*.so.*.*.*
%attr(755,root,root) %{_libdir}/%{name}/lib*.so.*
@@ -141,7 +228,30 @@
# -devel? but headers?
#%{_libdir}/*.a
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-%{_mandir}/man[158]/dbmail*
+%{_mandir}/man[15]/dbmail*
+%{_mandir}/man8/dbmail-export.8*
+%{_mandir}/man8/dbmail-sievecmd.8*
+%{_mandir}/man8/dbmail-timsieved.8*
+%{_mandir}/man8/dbmail-users.8*
+%{_mandir}/man8/dbmail-util.8*
+
+%files imapd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/dbmail-imapd
+%attr(754,root,root) /etc/rc.d/init.d/dbmail-imapd
+%{_mandir}/man8/dbmail-imapd*
+
+%files lmtpd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/dbmail-lmtpd
+%attr(754,root,root) /etc/rc.d/init.d/dbmail-lmtpd
+%{_mandir}/man8/dbmail-lmtpd*
+
+%files pop3d
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/dbmail-pop3d
+%attr(754,root,root) /etc/rc.d/init.d/dbmail-pop3d
+%{_mandir}/man8/dbmail-pop3d*
%files mailbox2dbmail
%defattr(644,root,root,755)
@@ -155,6 +265,18 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.15.2.3 2006/11/19 22:09:22 twittner
+- split into -imapd, -lmtpd, -pop3d subpackages (I hope it makes sense)
+- added initscripts
+- TODO updated
+- not tested - EOTIME & trouble with installation:
+ Processing dependencies...
+ dbmail-pop3d-2.2.1-0.1 marks dbmail-2.2.1-0.1 (cap dbmail = 2.2.1-0.1)
+ error: dbmail-2.2.1-0.1 (cnfl filesystem = 2.0-1) conflicts with installed filesystem-2.0-1
+ error: dbmail-2.2.1-0.1 (cnfl rc-scripts = 0.4.0.27-5) conflicts with installed rc-scripts-0.4.0.27-5
+ [...]
+ wtf?
+
Revision 1.15.2.2 2006/11/19 20:45:41 twittner
- added TODO entry about %%{_libdir} content
- BR: {mysql,openldap,sqlite3}-devel
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/dbmail.spec?r1=1.15.2.2&r2=1.15.2.3&f=u
More information about the pld-cvs-commit
mailing list