]> git.pld-linux.org Git - packages/sendmail.git/blobdiff - sendmail.spec
- ooops - left from tests...
[packages/sendmail.git] / sendmail.spec
index 58ff74992b5813e82395983100986277b9e89959..e753fed734cb36cbc776f2b735bdfbdd477cde8a 100644 (file)
@@ -1,3 +1,8 @@
+# 
+# TODO:
+# - make sid-milter support:
+#   http://sourceforge.net/projects/sid-milter/
+#   http://www.sendmail.net/
 #
 # Conditional build:
 %bcond_without ldap    # without LDAP support
@@ -16,12 +21,12 @@ Summary(ru):        
 Summary(tr):   Elektronik posta hizmetleri sunucusu
 Summary(uk):   ðÏÛÔÏ×ÉÊ ÔÒÁÎÓÐÏÒÔÎÉÊ ÁÇÅÎÔ sendmail
 Name:          sendmail
-Version:       8.12.11
-Release:       9
+Version:       8.13.1
+Release:       1
 License:       BSD
 Group:         Networking/Daemons
 Source0:       ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
-# Source0-md5: fafda7f8043f0c34b9aa295618aa598c
+# Source0-md5: 5407db289086261d7e7a09920d2ea14e
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}.aliases
@@ -37,7 +42,7 @@ Source10:     %{name}.mailertable
 Source11:      %{name}.virtusertable
 Source12:      %{name}.domaintable
 Source13:      %{name}-smtp.pamd
-Source14:      %{name}-monitrc
+Source14:      %{name}.monitrc
 Patch0:                %{name}-makemapman.patch
 Patch1:                %{name}-smrsh-paths.patch
 Patch2:                %{name}-rmail.patch
@@ -53,6 +58,7 @@ BuildRequires:        man
 %{?with_ldap:BuildRequires:    openldap-devel}
 %{?with_tls:BuildRequires:     openssl-devel >= 0.9.7d}
 %{?with_pgsql:BuildRequires:   postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.159
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
@@ -66,8 +72,9 @@ Requires(postun):     /usr/sbin/userdel
 Requires:      m4
 Requires:      procmail
 Requires:      pam >= 0.77.3
+Provides:      group(smmsp)
 Provides:      smtpdaemon
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Provides:      user(smmsp)
 Obsoletes:     courier
 Obsoletes:     exim
 Obsoletes:     masqmail
@@ -81,6 +88,7 @@ Obsoletes:    smail
 Obsoletes:     smtpdaemon
 Obsoletes:     ssmtp
 Obsoletes:     zmailer
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/mail
 
@@ -323,7 +331,7 @@ if [ -n "`/usr/bin/getgid smmsp`" ]; then
                exit 1
        fi
 else
-       /usr/sbin/groupadd -g 25 -r -f smmsp
+       /usr/sbin/groupadd -g 25 smmsp 1>&2
 fi
 if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then
        if [ "`/bin/id -u smmsp`" != "25" ]; then
@@ -331,7 +339,8 @@ if [ -n "`/bin/id -u smmsp 2>/dev/null`" ]; then
                exit 1
        fi
 else
-       /usr/sbin/useradd -u 25 -r -d /var/spool/clientqueue -s /bin/false -c "Sendmail Message Submission Program" -g smmsp smmsp 1>&2
+       /usr/sbin/useradd -u 25 -d /var/spool/clientqueue -s /bin/false \
+               -c "Sendmail Message Submission Program" -g smmsp smmsp 1>&2
 fi
 
 %post
@@ -392,8 +401,8 @@ fi
 
 %postun
 if [ "$1" = "0" ]; then
-       /usr/sbin/userdel smmsp 2>/dev/null
-       /usr/sbin/groupdel smmsp 2>/dev/null
+       %userremove smmsp
+       %groupremove smmsp
 fi
 
 # removal of compatibility links
This page took 0.055431 seconds and 4 git commands to generate.