/[smeserver]/rpms/qpsmtpd/sme8/qpsmtpd.spec
ViewVC logotype

Diff of /rpms/qpsmtpd/sme8/qpsmtpd.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.24 by snetram, Thu Nov 5 18:06:59 2009 UTC Revision 1.27 by slords, Wed Apr 14 15:29:58 2010 UTC
# Line 1  Line 1 
1  # $Id: qpsmtpd.spec,v 1.23 2009/11/04 16:59:38 charliebrady Exp $  # $Id: qpsmtpd.spec,v 1.26 2010/03/05 20:07:37 slords Exp $
2    
3  Name: qpsmtpd  Name: qpsmtpd
4  Version: 0.83  Version: 0.84
5  Release: 0.6%{?dist}  Release: 0.1%{?dist}
6  Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async  Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async
7  License: distributable  License: MIT
8  Group: System Environment/Daemons  Group: System Environment/Daemons
9  URL: http://smtpd.develooper.com/  URL: http://smtpd.develooper.com/
10  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11  BuildRequires: perl >= 0:5.00503  BuildRequires: perl >= 0:5.00503
12  BuildArchitectures: noarch  BuildArch: noarch
13  Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)  Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP)
14  Requires(pre): coreutils, shadow-utils, perl  Requires(pre): coreutils, shadow-utils, perl
15    
# Line 23  Source6: qpsmtpd.conf Line 23  Source6: qpsmtpd.conf
23  Source7: README.selinux  Source7: README.selinux
24    
25  Patch10: qpsmtpd-0.83-loginit.patch  Patch10: qpsmtpd-0.83-loginit.patch
 Patch11: qpsmtpd-48d1a5b9febc96d2d3c4110500759e36fb4eabb6.patch  
 Patch12: qpsmtpd-de3fbb565f711bc27e7bfa061e83c3020710dc16.patch  
26    
27  Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch  Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch
28  Patch101: qpsmtpd-0.83-peer_hooks.patch  Patch101: qpsmtpd-0.83-peer_hooks.patch
29  Patch102: qpsmtpd-0.83-clamd_conf.patch  Patch102: qpsmtpd-0.83-clamav-headers.patch
 Patch103: qpsmtpd-0.83-clamav-headers.patch  
30    
31  %description  %description
32  qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core  qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core
# Line 61  qpsmpd-async which uses it. Line 58  qpsmpd-async which uses it.
58  %prep  %prep
59  %setup -q  %setup -q
60  %patch10 -p1  %patch10 -p1
 %patch11 -p1  
 %patch12 -p1  
61  %patch100 -p1  %patch100 -p1
62  %patch101 -p1  %patch101 -p1
63  %patch102 -p1  %patch102 -p1
 %patch103 -p1  
64    
65    
66  %build  %build
# Line 82  eval `perl '-V:installarchlib'` Line 76  eval `perl '-V:installarchlib'`
76  mkdir -p $RPM_BUILD_ROOT/$installarchlib  mkdir -p $RPM_BUILD_ROOT/$installarchlib
77  if grep -q DESTDIR Makefile  if grep -q DESTDIR Makefile
78  then  then
79          make DESTDIR=$RPM_BUILD_ROOT          make DESTDIR=$RPM_BUILD_ROOT
80          find blib/lib -name '*.pm.*' -exec rm -f {} \;          find blib/lib -name '*.pm.*' -exec rm -f {} \;
81          make DESTDIR=$RPM_BUILD_ROOT install          make DESTDIR=$RPM_BUILD_ROOT install
82    
83  else  else
84          make PREFIX=$RPM_BUILD_ROOT/usr          make PREFIX=$RPM_BUILD_ROOT/usr
85          find blib/lib -name '*.pm.*' -exec rm -f {} \;          find blib/lib -name '*.pm.*' -exec rm -f {} \;
86          make PREFIX=$RPM_BUILD_ROOT/usr install          make PREFIX=$RPM_BUILD_ROOT/usr install
87  fi  fi
88  mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}  mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
89  rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/*.*  rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/*.*
# Line 115  mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir} Line 109  mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
109  cp %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d  cp %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
110  mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}  mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}
111  cp %{SOURCE7} $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}  cp %{SOURCE7} $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version}
 rm -f ${RPM_BUILD_ROOT}%{_bindir}/%{name}-prefork  
112    
113  [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress  [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
114    
115  find ${RPM_BUILD_ROOT}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;  find ${RPM_BUILD_ROOT}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \;
116  find ${RPM_BUILD_ROOT}%{_prefix} -type f -print | \  find ${RPM_BUILD_ROOT}%{_prefix} -type f -print | \
117          sed "s@^$RPM_BUILD_ROOT@@g"     | \          sed "s@^$RPM_BUILD_ROOT@@g"     | \
118          grep -v [Aa]sync                | \          grep -v [Aa]sync                | \
119          grep -v packaging               | \          grep -v packaging               | \
120          grep -v README.selinux          | \          grep -v README.selinux          | \
121          grep -v /Apache                 | \          grep -v /Apache                 | \
122          grep -v /Danga                  | \          grep -v /Danga                  | \
123          grep -v Qpsmtpd/ConfigServer.pm | \          grep -v Qpsmtpd/ConfigServer.pm | \
124          grep -v Qpsmtpd/PollServer.pm   > %{name}-%{version}-%{release}-filelist          grep -v Qpsmtpd/PollServer.pm   > %{name}-%{version}-%{release}-filelist
125  if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then  if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
126      echo "ERROR: EMPTY FILE LIST"      echo "ERROR: EMPTY FILE LIST"
127      exit -1      exit -1
# Line 141  fi Line 134  fi
134  %config(noreplace) %{_sysconfdir}/qpsmtpd/*  %config(noreplace) %{_sysconfdir}/qpsmtpd/*
135  %config(noreplace) %{_sysconfdir}/xinetd.d/smtp  %config(noreplace) %{_sysconfdir}/xinetd.d/smtp
136  %config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver  %config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver
 %attr(2750,qpsmtpd,clamav) %dir %{_localstatedir}/spool/qpsmtpd  
 %attr(2750,smelog,smelog) %dir %{_localstatedir}/log/qpsmtpd  
137    
138  %files apache  %files apache
139  %defattr(-,root,root)  %defattr(-,root,root)
# Line 163  fi Line 154  fi
154  %{_datadir}/%{name}/plugins/async/*  %{_datadir}/%{name}/plugins/async/*
155    
156  %pre  %pre
 if ! id smtpd >/dev/null 2>&1  
 then  
     # need to create smtpd user.  
     if perl -e 'exit ! defined(getgrnam("postdrop"))'  
     then  
         # if postfix is installed, we will probably use  
         # queue/postfix, which will need this:  
         supp="-G postdrop"  
     fi  
     useradd -r -m $supp smtpd  
 fi  
157    
158  %changelog  %changelog
159    * Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme
160    - Update to 0.84
161    - add sme specific patches
162    
163    * Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme
164    - Remove spool and log dir from package (in smeserver-qpsmtpd)
165    - Don't create smtpd user (unused in sme) [SME: 5815]
166    
167  * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme  * Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme
168  - Apply qpsmtpd git changesets to implement custom SPAM  - Apply qpsmtpd git changesets to implement custom SPAM
169    subject prefix [SME: 5031]    subject prefix [SME: 5031]
170    
171  * Tue Nov 3 2009 <slords@lordsfam.net> 0.83-0.5.sme  * Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme
172  - Update pre requires so scripts don't fail on install [SME: 5558]  - Update pre requires so scripts don't fail on install [SME: 5558]
173    
174  * Sat Oct 31 2009 <slords@lordsfam.net> 0.83-0.4.sme  * Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme
175  - Rebase bad_rcptto patch to remove orig file [SME: 5548]  - Rebase bad_rcptto patch to remove orig file [SME: 5548]
176  - Change logging in tls init to prevent warnings [SME: 5551]  - Change logging in tls init to prevent warnings [SME: 5551]
177    
178  * Thu Oct 29 2009 <slords@lordsfam.net> 0.83-0.3.sme  * Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme
179  - Only run/initialize plugins once [SME: 5533]  - Only run/initialize plugins once [SME: 5533]
180    
181  * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme  * Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed