]> git.pld-linux.org Git - packages/courier.git/blobdiff - courier.spec
- tabs; _initrddir macro
[packages/courier.git] / courier.spec
index f8a6659c2536cabb4e6a603e477d08ec8c451f71..0d5de1d5f4c20dfd1f40d5272b6fbb0fbbfd889e 100644 (file)
@@ -1,46 +1,50 @@
 #
+# TODO:
+#      - tests
+#
 # Conditional build:
-%bcond_with    fam             # with fam support
+%bcond_without fam             # with fam support
 #
 Summary:       Courier mail server
 Summary(pl):   Serwer poczty Courier
 Name:          courier
-Version:       0.45.6
-Release:       2
+Version:       0.49.0
+Release:       0.1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: da08b5f7d2fc9f4a871a5584914011c6
+# Source0-md5: 2c0f3d3d2eab405aaf633d9e17363bae
 Patch0:        %{name}-openssl-path.patch
 Patch1:                %{name}-withoutfam.patch
 Patch2:                %{name}-maildir.patch
 Patch3:                %{name}-sendmail_dir.patch
 Patch4:                %{name}-start_scripts.patch
-Patch5:                %{name}-fix_build.patch
-Patch6:                %{name}-certs.patch
+Patch5:                %{name}-certs.patch
 URL:           http://www.courier-mta.org/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: courier-authlib-devel
 BuildRequires: db-devel
 BuildRequires: expect
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
 BuildRequires: mailcap
-BuildRequires: mysql-devel
-BuildRequires: openldap-devel
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: openssl-tools >= 0.9.7d
 BuildRequires: openssl-tools-perl >= 0.9.7d
 BuildRequires: pam-devel
 BuildRequires: perl-devel
-BuildRequires: postgresql-devel
+BuildRequires: sed >= 4.0
 BuildRequires: sysconftool
-BuildRequires: zlib-devel
 %{?with_fam:BuildRequires:     fam-devel}
 Requires(post,preun):  /sbin/chkconfig
+# only for light upgrade from old version < 0.47
+# remove it after some time
+Requires(post):        courier-authlib-userdb
 Requires(post):        openssl-tools >= 0.9.7d
-%{?with_fam:Requires:  fam}
+Requires:      perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
 Provides:      smtpdaemon
+Obsoletes:     courier-smtpauth
 Obsoletes:     exim
 Obsoletes:     masqmail
 Obsoletes:     nullmailer
@@ -56,7 +60,6 @@ Obsoletes:    ssmtp
 Obsoletes:     zmailer
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                apachedir       /home/services/httpd
 %define                _datadir        %{_prefix}/share/courier
 %define                _mandir         /usr/share/man
 %define                _libdir         %{_prefix}/%{_lib}/courier
@@ -64,14 +67,14 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _localstatedir  /var/spool/courier
 %define                _sysconfdir     /etc/courier
 %define                _certsdir       %{_sysconfdir}/certs
-%define                initdir         /etc/rc.d/init.d
-
-# Change the following if your DocumentRoot and cgibindir differ.  This is
-# the default redhat build:
+%define                _initrddir              /etc/rc.d/init.d
 
-%define                _cgibindir              %{apachedir}/cgi-bin
-%define                _documentrootdir        %{apachedir}/html
-%define                _imageurl               /webmail/
+%define                _httpdir        /home/services/httpd
+%define                _cgibindir      %{_httpdir}/cgi-bin
+%define                _imagedir       %{_datadir}/sqwebmail/images
+%define                _imageurl       /webmail
+%define                _apache1dir     /etc/apache
+%define                _apache2dir     /etc/httpd
 
 %description
 Courier is a fully functional mail server, that can completely take
@@ -143,7 +146,7 @@ standalone version.
 %description imapd -l pl
 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
 ¶ci±gaæ pocztê przy pomocy klienta IMAP. Serwer IMAP Couriera mo¿e byæ
-u¿ywany tylko ze skrzynami Maildir, nie obs³uguje skrzynek w postaci
+u¿ywany tylko ze skrzynkami Maildir, nie obs³uguje skrzynek w postaci
 pojedynczych plików.
 
 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
@@ -172,7 +175,6 @@ Summary(pl):        Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
 Group:         Networking/Daemons
 Requires:      %{name} = %{version}-%{release}
 Requires:      %{_cgibindir}
-Requires:      %{_documentrootdir}
 
 %description webmail
 This package installs Courier mail server's integrated HTTP webmail
@@ -248,57 +250,6 @@ incoming mail.
 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
 potrzebny do filtrowania przychodz±cej poczty.
 
-%package smtpauth
-Summary:       Courier mail server authenticated ESMTP module
-Summary(pl):   Modu³ uwierzytelniania ESMTP (SMTP AUTH) do Couriera
-Group:         Networking/Daemons
-Requires:      %{name} = %{version}-%{release}
-
-%description smtpauth
-Authenticated ESMTP allows remote users to authenticate themselves and
-be able to relay outbound mail through the Courier mail server.
-
-%description smtpauth -l pl
-SMTP AUTH pozwala zdalnym u¿ytkownikom na uwierzytelnianie i
-umo¿liwienie przekazania wychodz±cej poczty poprzez serwer poczty
-Courier.
-
-%package authldap
-Summary:       LDAP authentication daemon for Courier mail server
-Summary(pl):   Demon autentykacji LDAP do Couriera
-Group:         Networking/Daemons
-PreReq:                %{name} = %{version}-%{release}
-
-%description authldap
-This package provides LDAP authentication for Courier.
-
-%description authldap -l pl
-Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courierze.
-
-%package authmysql
-Summary:       MySQL authentication daemon for Courier mail server
-Summary(pl):   Demon autentykacji MySQL do Couriera
-Group:         Networking/Daemons
-PreReq:                %{name} = %{version}-%{release}
-
-%description authmysql
-This package provides MySQL authentication for Courier.
-
-%description authmysql -l pl
-Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courierze.
-
-%package authpgsql
-Summary:       PostgreSQL authentication daemon for Courier mail server
-Summary(pl):   Demon autentykacji PostgreSQL do Couriera
-Group:         Networking/Daemons
-PreReq:                %{name} = %{version}-%{release}
-
-%description authpgsql
-This package provides PostgreSQL authentication for Courier.
-
-%description authpgsql -l pl
-Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze.
-
 %prep
 %setup -q
 %patch0 -p1
@@ -307,7 +258,6 @@ Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze.
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-%patch6 -p1
 
 %build
 # we don't want fax module
@@ -321,12 +271,6 @@ cd rootcerts
 %{__automake}
 cd ..
 
-cd authlib
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-cd ..
-
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -348,6 +292,20 @@ cd ../..
 cd imap
 %{__aclocal}
 %{__autoconf}
+ln -s ../ltmain.sh .
+%{__automake}
+cd ..
+
+cd webadmin
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd ..
+
+cd maildir
+%{__aclocal}
+%{__autoconf}
+ln -s ../ltmain.sh .
 %{__automake}
 cd ..
 
@@ -355,10 +313,15 @@ cd ..
        --localstatedir=%{_localstatedir} \
        --sysconfdir=%{_sysconfdir} \
        --mandir=%{_mandir} \
+       --enable-imagedir=%{_imagedir} \
        --enable-imageurl=%{_imageurl} \
        --with-certsdir=%{_certsdir} \
        --with-db=db \
-       --with-mailer=%{_sbindir}/sendmail
+       --with-mailer=%{_sbindir}/sendmail \
+       --with-mailuser=daemon \
+       --with-mailgroup=daemon \
+       --with-mailuid=2 \
+       --with-mailgid=2
 
 %{__make}
 %{__make} check
@@ -366,9 +329,8 @@ cd ..
 %install
 rm -rf $RPM_BUILD_ROOT
 umask 022
-install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{initdir}} \
-       $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir}} \
-       $RPM_BUILD_ROOT%{_sysconfdir}/{hosteddomains,userdb} \
+install -d -p $RPM_BUILD_ROOT{/etc/{cron.hourly,pam.d},%{_initrddir}} \
+       $RPM_BUILD_ROOT{%{_cgibindir},/usr/lib,%{_sysconfdir}/hosteddomains} \
        $RPM_BUILD_ROOT{/etc/cron.hourly,%{_certsdir}}
 
 %{__make} install \
@@ -389,44 +351,19 @@ done
 # delete dead links
 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1 \
 $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authcram.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authldap.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authpam.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7 \
-$RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7 \
 $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8 \
 $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8 \
 $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8 \
 $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8 \
-$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8 \
-$RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8 \
 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
 
 # make man links
 echo '.so dot-forward.1' > $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1
 echo '.so sendmail.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpgsql.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7
-echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7
 echo '.so esmtpd.8' > $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8
 echo '.so courierfilter.8' > $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8
 echo '.so makesmtpaccess.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8
 echo '.so courieruucp.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8
-echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
-echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
 echo '.so courierpop3d.8' > $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
 
 %{__make} install-perms
@@ -437,9 +374,6 @@ mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
 mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
        $RPM_BUILD_ROOT%{_cgibindir}/webadmin
 
-# And here's why we delete all images from filelist.webmail:
-mv -f $RPM_BUILD_ROOT%{_datadir}/sqwebmail/images $RPM_BUILD_ROOT%{_documentrootdir}/webmail
-
 # install a cron job to clean out webmail's cache
 install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
 
@@ -454,21 +388,13 @@ chmod a-w htmldoc/*
 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
 # package, so after it's installed they should be runnable.
 
-sed 's/^POP3DSTART.*/POP3DSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
-
-sed 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
-
-sed 's/^IMAPDSTART.*/IMAPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
-
-sed 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
+sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
+sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
+sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
+sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
 
 # Want to have esmtpd running by default
-sed 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new
-mv -f $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
+sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
 
 # run script from install-configure (make config files)
 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
@@ -479,6 +405,12 @@ done
 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
 
+# file with important options
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
+# enable this option if you want to pass bad converted mails
+# opt BOFHBADMIME=accept
+EOF
+
 # Make password and unsecureok (files for webadmin)
 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
@@ -489,7 +421,7 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/me
 # create calendarmode
 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
 
-install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
+install courier.sysvinit $RPM_BUILD_ROOT%{_initrddir}/courier
 #
 # Red Hat /etc/profile.d scripts
 #
@@ -518,7 +450,6 @@ if ( \$? ) then
 else
        test -w /etc
        if ( \$? ) then
-       then
                setenv PATH "%{_sbindir}:\$PATH"
        endif
        setenv PATH "%{_bindir}:\$PATH"
@@ -535,9 +466,12 @@ ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
 # This link by default is missing
 ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
 
+# for apache
+echo "Alias /webmail %{_imagedir}" >apache-%{name}.conf
+install apache-%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache-%{name}.conf
+
 # remove unpackaged files
 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
-rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
 rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
 rm -f $RPM_BUILD_ROOT%{_datadir}/courierwebadmin/*fax*
 
@@ -572,17 +506,17 @@ EOF
 fi
 
 if [ -e /var/lock/subsys/courier ]; then
-       %{initdir}/courier restart
+       %{_initrddir}/courier restart
 else
        echo
-       echo Type "%{initdir}/courier start" to start courier
+       echo 'Type "%{_initrddir}/courier start" to start courier'
        echo
 fi
 
 %preun
 if [ "$1" = "0" ]; then
        if [ -e /var/lock/subsys/courier ]; then
-               %{initdir}/courier stop
+               %{_initrddir}/courier stop
        fi
        /sbin/chkconfig --del courier
 fi
@@ -593,7 +527,7 @@ if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
        %{_sbindir}/imapd start
 else
        echo
-       echo Type "%{_sbindir}/imapd start" to start imapd server
+       echo 'Type "%{_sbindir}/imapd start" to start imapd server'
        echo
 fi
 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
@@ -621,7 +555,7 @@ if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
        %{_sbindir}/pop3d start
 else
        echo
-       echo Type "%{_sbindir}/pop3d start" to start pop3d server
+       echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
        echo
 fi
 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
@@ -629,7 +563,7 @@ if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
        %{_sbindir}/pop3d-ssl start
 else
        echo
-       echo Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server
+       echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
        echo
 fi
 
@@ -662,84 +596,43 @@ if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
        %{_sbindir}/webmaild start
 else
        echo
-       echo Type "%{_sbindir}/webmaild start" to start webmail server
+       echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
        echo
 fi
 
-%preun webmail
-if [ "$1" = "0" ]; then
-       if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
-               %{_sbindir}/webmaild stop
+# apache1
+if [ -d %{_apache1dir}/conf.d ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf %{_apache1dir}/conf.d/99_%{name}.conf
+       if [ -f /var/lock/subsys/apache ]; then
+               /etc/rc.d/init.d/apache restart 1>&2
        fi
 fi
-
-%post smtpauth
-if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
-       %{_sbindir}/esmtpd stop
-       %{_sbindir}/esmtpd start
-fi
-if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
-       %{_sbindir}/esmtpd-ssl stop
-       %{_sbindir}/esmtpd-ssl start
-fi
-
-if [ "$1" = "1" ]; then
-       echo
-       echo Remember to enable auth in esmtp config files
-       echo
-fi
-
-%postun smtpauth
-if [ "$1" = "0" ]; then
-       if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
-               %{_sbindir}/esmtpd stop
-               %{_sbindir}/esmtpd start
-       fi
-       if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
-               %{_sbindir}/esmtpd-ssl stop
-               %{_sbindir}/esmtpd-ssl start
+# apache2
+if [ -d %{_apache2dir}/httpd.conf ]; then
+       ln -sf %{_sysconfdir}/apache-%{name}.conf %{_apache2dir}/httpd.conf/99_%{name}.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
        fi
 fi
 
-%post authldap
-if ps -A |grep -q authdaemond.lda; then
-       %{_libdir}/authlib/authdaemond stop
-       %{_libdir}/authlib/authdaemond start
-fi
-
-%postun authldap
-if [ -x %{_libdir}/authlib/authdaemond ]; then
-       if ps -A |grep -q authdaemond.lda; then
-               %{_libdir}/authlib/authdaemond stop;
-               %{_libdir}/authlib/authdaemond start;
+%preun webmail
+if [ "$1" = "0" ]; then
+       if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
+               %{_sbindir}/webmaild stop
        fi
-fi
-
-%post authmysql
-if ps -A |grep -q authdaemond.mys; then
-       %{_libdir}/authlib/authdaemond stop
-       %{_libdir}/authlib/authdaemond start
-fi
-
-%postun authmysql
-if [ -x %{_libdir}/authlib/authdaemond ]; then
-       if ps -A |grep -q authdaemond.mys; then
-               %{_libdir}/authlib/authdaemond stop;
-               %{_libdir}/authlib/authdaemond start;
+       # apache1
+       if [ -d %{_apache1dir}/conf.d ]; then
+               rm -f %{_apache1dir}/conf.d/99_%{name}.conf
+               if [ -f /var/lock/subsys/apache ]; then
+                       /etc/rc.d/init.d/apache restart 1>&2
+               fi
        fi
-fi
-
-%post authpgsql
-if ps -A |grep -q authdaemond.pgs; then
-       %{_libdir}/authlib/authdaemond stop
-       %{_libdir}/authlib/authdaemond start
-fi
-
-%postun authpgsql
-if [ -x %{_libdir}/authlib/authdaemond ]; then
-       if ps -A |grep -q authdaemond.pgs; then
-               %{_libdir}/authlib/authdaemond stop;
-               %{_libdir}/authlib/authdaemond start;
+       # apache2
+       if [ -d %{_apache2dir}/httpd.conf ]; then
+               rm -f %{_apache2dir}/httpd.conf/99_%{name}.conf
+               if [ -f /var/lock/subsys/httpd ]; then
+                       /etc/rc.d/init.d/httpd restart 1>&2
+               fi
        fi
 fi
 
@@ -760,22 +653,12 @@ fi
 %{_mandir}/man1/testmxlookup.1*
 %{_mandir}/man1/dot-forward.1*
 %{_mandir}/man1/couriertls.1*
-%{_mandir}/man1/courierlogger.1*
 %{_mandir}/man1/mailq*
 %{_mandir}/man1/couriertcpd*
 %{_mandir}/man1/dotforward.1*
 %{_mandir}/man1/rmail.1*
 %{_mandir}/man5/dot-courier.5*
 %{_mandir}/man7/localmailfilter.7*
-%{_mandir}/man7/authlib.7*
-%{_mandir}/man7/authcram.7*
-%{_mandir}/man7/authdaemon.7*
-%{_mandir}/man7/authdaemond.7*
-%{_mandir}/man7/authpam.7*
-%{_mandir}/man7/authpwd.7*
-%{_mandir}/man7/authshadow.7*
-%{_mandir}/man7/authuserdb.7*
-%{_mandir}/man7/authvchkpw.7*
 %{_mandir}/man8/courierfilter.8*
 %{_mandir}/man8/courierperlfilter.8*
 %{_mandir}/man8/dupfilter.8*
@@ -789,19 +672,14 @@ fi
 %{_mandir}/man8/makealiases.8*
 %{_mandir}/man8/makepercentrelay.8*
 %{_mandir}/man8/makesmtpaccess.8*
-%{_mandir}/man8/makeuserdb.8*
 %{_mandir}/man8/submit.8*
-%{_mandir}/man8/userdb.8*
-%{_mandir}/man8/userdbpw.8*
 %{_mandir}/man8/courieruucp.8*
 %{_mandir}/man8/esmtpd-msa.8*
 %{_mandir}/man8/filterctl.8*
 %{_mandir}/man8/makesmtpaccess-msa.8*
 %{_mandir}/man8/makeuucpneighbors.8*
-%{_mandir}/man8/pw2userdb.8*
-%{_mandir}/man8/vchkpw2userdb.8*
-%dir %{_sysconfdir}
-%attr(750,daemon,root) %dir %{_certsdir}
+%attr(755,daemon,daemon) %dir %{_sysconfdir}
+%attr(750,daemon,daemon) %dir %{_certsdir}
 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/me
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook
@@ -811,6 +689,7 @@ fi
 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smtpaccess/default
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpacceptmailfor.dir/default
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bofh
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courierd
 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aliases/system
@@ -820,6 +699,7 @@ fi
 %dir %{_datadir}
 %{_datadir}/rootcerts
 %attr(755,root,root) %dir %{_datadir}/courierwebadmin
+%{_datadir}/courierwebadmin/admin-15*
 %dir %{_libdir}/filters
 %attr(755,daemon,daemon) %{_libdir}/filters/*
 %attr(755,daemon,daemon) %{_datadir}/perlfilter-*.pl
@@ -884,9 +764,9 @@ fi
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectwarn.txt
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnheader.txt
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.dsn
+%attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/rfcerr*.txt
 %dir %{_libdir}/courier/modules/dsn
 %attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
-%{_libdir}/courier/modules/modules.ctl
 %attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
 %attr(750,daemon,daemon) %{_libdir}/courier/courierd
 %attr(750,daemon,daemon) %{_libdir}/courier/aliasexp
@@ -894,13 +774,11 @@ fi
 %attr(750,daemon,daemon) %{_libdir}/courier/aliascreate
 %attr(750,daemon,daemon) %{_libdir}/courier/submit
 %attr(755,daemon,daemon) %{_libdir}/courier/makedatprog
-%attr(755,root,root) %{_sbindir}/authenumerate
 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
 %attr(755,root,root) %{_sbindir}/courier
 %attr(755,root,root) %{_datadir}/courierctl.start
 %attr(755,root,root) %{_bindir}/couriertls
 %attr(755,root,root) %{_sbindir}/couriertcpd
-%attr(755,root,root) %{_sbindir}/courierlogger
 %attr(755,root,root) %{_bindir}/courier-config
 %attr(755,root,root) %{_bindir}/deliverquota
 %attr(755,root,root) %{_bindir}/dotforward
@@ -914,41 +792,21 @@ fi
 %attr(755,root,root) %{_datadir}/makehosteddomains
 %attr(755,root,root) %{_sbindir}/makehosteddomains
 %attr(755,root,root) %{_bindir}/makemime
-%attr(755,root,root) %{_datadir}/makeuserdb
-%attr(755,root,root) %{_sbindir}/makeuserdb
 %attr(755,root,root) %{_bindir}/mimegpg
-%attr(755,root,root) %{_datadir}/pw2userdb
-%attr(755,root,root) %{_sbindir}/pw2userdb
 %attr(4755,root,root) %{_bindir}/rmail
 %attr(755,root,root) %{_sbindir}/showconfig
 %attr(750,root,daemon) %{_sbindir}/showmodules
 %attr(4755,root,root) %{_sbindir}/sendmail
 %attr(755,root,root) %{_bindir}/testmxlookup
-%attr(755,root,root) %{_datadir}/userdb
-%attr(755,root,root) %{_sbindir}/userdb
-%attr(755,root,root) %{_sbindir}/userdbpw
-%attr(755,root,root) %{_datadir}/vchkpw2userdb
-%attr(755,root,root) %{_sbindir}/vchkpw2userdb
 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc
 %attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
-%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
-%dir %{_libdir}/authlib
-%attr(755,root,root) %{_libdir}/authlib/authdaemon
-%attr(755,root,root) %{_libdir}/authlib/authdaemond.plain
-%attr(755,root,root) %{_libdir}/authlib/authdaemond
-%attr(770,daemon,daemon) %dir %{_localstatedir}/authdaemon
-%attr(755,root,root) %dir %{_libdir}/authlib/changepwd
-%attr(4755,root,root) %{_libdir}/authlib/changepwd/authdaemon.passwd
-%attr(755,root,root) %{_libdir}/authlib/changepwd/authsystem.passwd
-%attr(755,root,root) %{_datadir}/authsystem.passwd
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/esmtp
 %attr(755,root,root) /etc/profile.d/courier.sh
 %attr(755,root,root) /etc/profile.d/courier.csh
 %attr(754,root,root) /etc/rc.d/init.d/courier
-%attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
-%attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
+%attr(755,daemon,daemon) %dir %{_localstatedir}/track
 %attr(755,root,root) /usr/lib/sendmail
 
 %files pop3d
@@ -1020,16 +878,16 @@ fi
 %files webmail
 %defattr(644,root,root,755)
 %doc htmldoc/pcp* gpglib/README.html
-%attr(4755,root,root) %{_cgibindir}/webmail
+%attr(755,root,root) %{_cgibindir}/webmail
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
-%{_documentrootdir}/webmail
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sqwebmaild
 %attr(755,root,root) %{_sbindir}/webmaild
 %dir %{_datadir}/sqwebmail
 %dir %{_datadir}/sqwebmail/html
 %dir %{_datadir}/sqwebmail/html/en-us
 %{_datadir}/sqwebmail/html/en
+%{_datadir}/sqwebmail/images
 %config %{_datadir}/sqwebmail/html/en-us/[CILT]*
 %{_datadir}/sqwebmail/html/en-us/*.html
 %{_datadir}/sqwebmail/html/en-us/*.txt
@@ -1042,6 +900,7 @@ fi
 %attr(755,root,root) %{_sbindir}/webgpg
 %attr(755,root,root) %{_libdir}/courier/pcpd
 %attr(755,root,root) %{_libdir}/courier/sqwebmaild
+%attr(755,root,root) %{_libdir}/courier/sqwebpasswd
 %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/calendarmode
@@ -1049,13 +908,14 @@ fi
 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/apache-%{name}.conf
 
 %files maildrop
 %defattr(644,root,root,755)
 %doc htmldoc/r* htmldoc/maildrop* htmldoc/lockmail*
 %{_mandir}/man1/maildrop.1*
 %{_mandir}/man1/refor*
-%{_mandir}/man5/maildrop*
+%{_mandir}/man7/maildrop*
 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop
 %attr(4755,root,root) %{_bindir}/maildrop
 %attr(755,root,root) %{_bindir}/reformail
@@ -1079,37 +939,3 @@ fi
 %{_mandir}/man1/couriermlm.1*
 %attr(755,root,root) %{_bindir}/couriermlm
 %{_datadir}/couriermlm
-
-%files smtpauth
-%defattr(644,root,root,755)
-%attr(4750,root,daemon) %{_libdir}/courier/modules/esmtp/authstart
-%attr(755,root,root) %{_libdir}/courier/modules/esmtp/authend
-
-%files authldap
-%defattr(644,root,root,755)
-%doc authlib/README.ldap
-%attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap
-%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
-%{_mandir}/man7/authldap.7*
-%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldap.pl
-%{_datadir}/courierwebadmin/admin-15ldap.html
-%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldapa.pl
-%{_datadir}/courierwebadmin/admin-15ldapa.html
-
-%files authmysql
-%defattr(644,root,root,755)
-%doc authlib/README.authmysql.html authlib/README.authmysql.myownquery
-%attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql
-%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
-%{_mandir}/man7/authmysql.7*
-%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15mysql.pl
-%{_datadir}/courierwebadmin/admin-15mysql.html
-
-%files authpgsql
-%defattr(644,root,root,755)
-%doc authlib/README.authpostgres.html
-%attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql
-%attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
-%{_mandir}/man7/authpgsql.7*
-%attr(755,root,root) %{_datadir}/courierwebadmin/admin-15pgsql.pl
-%{_datadir}/courierwebadmin/admin-15pgsql.html
This page took 0.108734 seconds and 4 git commands to generate.