SPECS: courier-imap.spec - rel 0.1; new scripts need testing; pldi...
arekm
arekm at pld-linux.org
Thu Sep 1 16:48:04 CEST 2005
Author: arekm Date: Thu Sep 1 14:48:04 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel 0.1; new scripts need testing; pldized init scripts
---- Files affected:
SPECS:
courier-imap.spec (1.148 -> 1.149)
---- Diffs:
================================================================
Index: SPECS/courier-imap.spec
diff -u SPECS/courier-imap.spec:1.148 SPECS/courier-imap.spec:1.149
--- SPECS/courier-imap.spec:1.148 Thu Sep 1 16:06:03 2005
+++ SPECS/courier-imap.spec Thu Sep 1 16:47:59 2005
@@ -3,15 +3,17 @@
Summary(pl): Serwer Courier-IMAP
Name: courier-imap
Version: 4.0.4
-Release: 1
+Release: 0.1
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
# Source0-md5: cb5a1d394e622fe2c5ea7bcab68c6286
Source1: %{name}.init
-Source2: %{name}-pop3.init
-Source3: %{name}.pamd
-Source4: %{name}-pop3.pamd
+Source2: %{name}-ssl.init
+Source3: %{name}-pop3.init
+Source4: %{name}-pop3-ssl.init
+Source5: %{name}.pamd
+Source6: %{name}-pop3.pamd
Patch0: %{name}-dirs.patch
Patch1: %{name}-certsdir.patch
Patch2: %{name}-maildir.patch
@@ -114,7 +116,9 @@
%patch2 -p1
install %{SOURCE1} courier-imap.in
-install %{SOURCE2} courier-pop3.in
+install %{SOURCE2} courier-imap-ssl.in
+install %{SOURCE3} courier-pop3.in
+install %{SOURCE4} courier-pop3-ssl.in
%build
@@ -152,9 +156,11 @@
DESTDIR=$RPM_BUILD_ROOT
install courier-imap $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap
+install courier-imap-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap-ssl
install courier-pop3 $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/imap
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/pam.d/pop3
+install courier-pop3-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3-ssl
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3
rm -rf $RPM_BUILD_ROOT%{_sbindir}/mk*cert
@@ -185,6 +191,7 @@
%post
/sbin/chkconfig --add courier-imap
+/sbin/chkconfig --add courier-imap-ssl
if [ -f /var/lock/subsys/courier-imap ]; then
/etc/rc.d/init.d/courier-imap restart >&2
@@ -192,6 +199,12 @@
echo "Run \"/etc/rc.d/init.d/courier-imap start\" to start courier-imap daemon."
fi
+if [ -f /var/lock/subsys/courier-imap-ssl ]; then
+ /etc/rc.d/init.d/courier-imap-ssl restart >&2
+else
+ echo "Run \"/etc/rc.d/init.d/courier-imap-ssl start\" to start courier-imap-ssl daemon."
+fi
+
%preun
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/courier-imap ]; then
@@ -200,6 +213,14 @@
/sbin/chkconfig --del courier-imap
fi
+if [ "$1" = "0" ]; then
+ if [ -f /var/lock/subsys/courier-imap-ssl ]; then
+ /etc/rc.d/init.d/courier-imap-ssl stop >&2
+ fi
+ /sbin/chkconfig --del courier-imap-ssl
+fi
+
+
%triggerin -- %{name} < 3.0.5
if [ -f /var/lib/openssl/certs/imapd.pem ]; then
echo
@@ -258,6 +279,7 @@
%post pop3
/sbin/chkconfig --add courier-pop3
+/sbin/chkconfig --add courier-pop3-ssl
/sbin/chkconfig --del courier-imap-pop3 >/dev/null 2>&1 || :
if [ -f /var/lock/subsys/courier-imap-pop3 ]; then
/etc/rc.d/init.d/courier-imap-pop3 stop >&2
@@ -268,12 +290,22 @@
echo "Run \"/etc/rc.d/init.d/courier-pop3 start\" to start courier-pop3 daemon."
fi
+if [ -f /var/lock/subsys/courier-pop3-ssl ]; then
+ /etc/rc.d/init.d/courier-pop3-ssl restart >&2
+else
+ echo "Run \"/etc/rc.d/init.d/courier-pop3-ssl start\" to start courier-pop3-ssl daemon."
+fi
+
%preun pop3
if [ "$1" = "0" ]; then
if [ -f /var/lock/subsys/courier-pop3 ]; then
/etc/rc.d/init.d/courier-pop3 stop >&2
fi
/sbin/chkconfig --del courier-pop3
+ if [ -f /var/lock/subsys/courier-pop3-ssl ]; then
+ /etc/rc.d/init.d/courier-pop3-ssl stop >&2
+ fi
+ /sbin/chkconfig --del courier-pop3-ssl
fi
%triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.5
@@ -317,6 +349,7 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
%attr(754,root,root) /etc/rc.d/init.d/courier-imap
+%attr(754,root,root) /etc/rc.d/init.d/courier-imap-ssl
%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
%attr(755,root,root) %{_bindir}/imapd
@@ -365,6 +398,7 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
%attr(754,root,root) /etc/rc.d/init.d/courier-pop3
+%attr(754,root,root) /etc/rc.d/init.d/courier-pop3-ssl
%attr(755,root,root) %{_bindir}/pop3d
%attr(755,root,root) %{_sbindir}/mkpop3dcert
%attr(755,root,root) %{_sbindir}/pop3login
@@ -378,6 +412,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.149 2005/09/01 14:47:59 arekm
+- rel 0.1; new scripts need testing; pldized init scripts
+
Revision 1.148 2005/09/01 14:06:03 andree
- updated to 4.0.4
- remove -static from Makefile.am
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/courier-imap.spec?r1=1.148&r2=1.149&f=u
More information about the pld-cvs-commit
mailing list