Name: postfix Version: 20000531 Release: 1 Source: ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/snapshot-%{version}.tar.gz License: Freely Redistributable (see LICENSE) Group: System Environment/Daemons Provides: MTA, smtpd, smtpdaemon Conflicts: sendmail BuildRoot: /var/tmp/%{name}-rpmroot Summary: the Postfix mail system URL: http://www.postfix.org/ %description From README: Postfix aims to be an alternative to the widely-used sendmail program. Sendmail is responsible for 70% of all e-mail delivered on the Internet. With an estimated 100 million users, that's an estimated 10 billion (10^10) messages daily. A stunning number. This package includes PCRE and LDAP support. %prep %setup -n snapshot-%{version} %build make tidy perl -pi -le 's/# spawn/spawn #/' Makefile.in make -f Makefile.init makefiles \ CCARGS='-DHAS_PCRE -DHAS_LDAP' \ AUXLIBS='-lpcre -lldap -llber' make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/lib} strip bin/* libexec/* perl -pi -le 's/(chown|chgrp)/true $1/g' INSTALL.sh sh ./INSTALL.sh <$RPM_BUILD_ROOT/etc/rc.d/init.d/postfix #!/bin/sh # chkconfig: 2345 80 30 # description: control Postfix MTA exec /usr/sbin/postfix "\$1" Eof chmod 755 $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix ln -s /usr/sbin/sendmail $RPM_BUILD_ROOT/usr/lib/ ./mantools/srctoman spawn/spawn.c >$RPM_BUILD_ROOT/usr/man/man8/spawn.8 %pre grep -l '^postfix:' /etc/passwd || \ useradd -s '/no/shell' -d '/no/where' -r postfix %post /sbin/chkconfig --add postfix %preun chkconfig --del postfix %files %defattr(-,root,root) %doc [A-Z]* conf html %doc /usr/man/*/* %config /etc/postfix /etc/rc.d/*/* /usr/bin/* /usr/lib/* /usr/libexec/* /usr/sbin/* %attr(-,postfix,postfix) /var/spool/* %changelog * Sun Jun 04 2000 Bennett Todd - Initial wrap