Summary: Postfix Mail Transport Agent Summary(pl): Agent Pocztowy Postfix Name: postfix Version: 19990627 Release: 1 URL: http://www.postfix.org/ Source0: ftp://postfix.cloud9.net/snapshot-%{version}.tar.gz Source1: postfix.aliases Source2: postfix.cron Source3: postfix.init Patch0: postfix-config.patch Patch1: http://www.xaa.iae.nl/~xaa/postfix6/patch.19990714.txt Copyright: Distributable Group: Networking/Daemons Group(pl): Sieciowe/Serwery Provides: smtpdaemon BuildPrereq: openldap-devel BuildPrereq: grep Conflicts: smtpdaemon Prereq: /sbin/chkconfig Prereq: %{_sbindir}/useradd Prereq: %{_sbindir}/groupadd Prereq: %{_sbindir}/userdel Prereq: %{_sbindir}/groupdel BuildRoot: /tmp/%{name}-%{version}-root %description Postfix is attempt to provide an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and hopefully secure, while at the same time being sendmail compatible enough to not upset your users. This version have IPv6 support and LDAP support. %description -l pl Postfix jest prób± dostarczenia alternatywnego MTA w stosunku do szeroko używanego sendmaila. Postfix w zamierzeniu ma być szybki, łatwy w administrowaniu, bezpieczny oraz ma być na tyle kompatybilny z sendmailem by nie denerwować Twoich użytkowników. Ta wersja wspiera IPv6 oraz LDAP. %prep %setup -q -n snapshot-%{version} %patch0 -p1 %patch1 -p1 %build make -f Makefile.init makefiles make tidy make DEBUG="" OPT="$RPM_OPT_FLAGS" CCARGS="-DHAS_LDAP" \ AUXLIBS="-llber -lldap" %install %define _sysconfdir /etc rm -rf $RPM_BUILD_ROOT rm -f {html,man}/Makefile.in conf/{LICENSE,main.cf.default} install -d $RPM_BUILD_ROOT%{_sysconfdir}/{mail,cron.daily,rc.d/init.d} \ $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/postfix,%{_mandir}/man{1,5,8}} \ $RPM_BUILD_ROOT%{_var}/spool/postfix/{active,corrupt,deferred,maildrop,private,saved,bounce,defer,incoming,pid,public} install -d sample-conf; mv -f conf/sample* sample-conf/ || : install bin/* $RPM_BUILD_ROOT%{_sbindir} install libexec/* $RPM_BUILD_ROOT%{_libdir}/postfix install conf/* $RPM_BUILD_ROOT%{_sysconfdir}/mail (cd man; tar cf - .) | (cd $RPM_BUILD_ROOT%{_mandir}; tar xf -) install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/cron.daily/postfix install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/postfix ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/mailq ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/newaliases ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail mv -f $RPM_BUILD_ROOT%{_sysconfdir}/mail/postfix-script-sgid \ $RPM_BUILD_ROOT%{_sysconfdir}/mail/postfix-script rm -f $RPM_BUILD_ROOT%{_sysconfdir}/mail/postfix-script-{diff,nosgid} touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/\ {aliases,access,canonical,relocated,transport,virtual}{,.db} strip $RPM_BUILD_ROOT{%{_bindir}/*,%{_libdir}/*} || : gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \ LDAP_README HISTORY MYSQL_README UUCP_README touch $RPM_BUILD_ROOT/var/spool/postfix/.nofinger %pre if [ -f /var/lock/subsys/postfix ]; then /etc/rc.d/init.d/postfix stop 2> /dev/null fi %{_sbindir}/groupadd -f -g 62 postfix %{_sbindir}/useradd -M -g postfix -d /var/spool/postfix -u 62 -s /bin/false postfix 2> /dev/null %{_sbindir}/groupadd -f -g 63 maildrop %post /sbin/chkconfig --add postfix if ! grep -q "^hostmaster:" /etc/mail/aliases; then echo "Adding Entry for hostmaster in /etc/mail/aliases" echo "hostmaster: root" >>/etc/mail/aliases fi newaliases %preun if [ $1 = 0 ]; then if [ -f /var/lock/subsys/postfix ]; then /etc/rc.d/init.d/postfix stop 2> /dev/null fi /sbin/chkconfig --del postfix fi %postun %{_sbindir}/groupdel maildrop 2> /dev/null %{_sbindir}/userdel postfix 2> /dev/null %{_sbindir}/groupdel postfix 2> /dev/null %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc html {LDAP_README,HISTORY,MYSQL_README,UUCP_README}.gz %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/access %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/aliases %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/canonical %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/relocated %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/transport %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/virtual %ghost %{_sysconfdir}/mail/*.db %dir %{_sysconfdir}/mail %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/main.cf %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/master.cf %attr(755,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mail/postfix-script %attr(740,root,root) %{_sysconfdir}/cron.daily/postfix %attr(740,root,root) %{_sysconfdir}/rc.d/init.d/postfix %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/s* %attr(755,root,root) %{_sbindir}/post*i* %attr(755,root,root) %{_sbindir}/postl* %attr(755,root,root) %{_sbindir}/postc* %attr(755,root,root) %{_sbindir}/postmap %attr(755,root,root) %{_sbindir}/postsuper %attr(2755,root,maildrop) %{_sbindir}/postdrop %attr(755,root,root) %{_libdir}/sendmail %attr(644,root,root) %{_mandir}/man*/* %attr(755,root,root) %{_libdir}/postfix %attr(755,root,root) %dir %{_var}/spool/postfix %attr(700, postfix,root) %dir %{_var}/spool/postfix/active %attr(700, postfix,root) %dir %{_var}/spool/postfix/bounce %attr(700, postfix,root) %dir %{_var}/spool/postfix/corrupt %attr(700, postfix,root) %dir %{_var}/spool/postfix/defer %attr(700, postfix,root) %dir %{_var}/spool/postfix/deferred %attr(700, postfix,root) %dir %{_var}/spool/postfix/incoming %attr(1730,postfix,maildrop) %dir %{_var}/spool/postfix/maildrop %attr(755, postfix,root) %dir %{_var}/spool/postfix/pid %attr(700, postfix,root) %dir %{_var}/spool/postfix/private %attr(755, postfix,root) %dir %{_var}/spool/postfix/public %attr(700, postfix,root) %dir %{_var}/spool/postfix/saved %attr(644, postfix,root) %{_var}/spool/postfix/.nofinger