Name: qmail-qmqpc Version: 1.03 Release: 6 Group: Networking/Clients URL: http://www.qmail.org/ Copyright: Check with djb@koobera.math.uic.edu Packager: Bruce Guenter Source0: ftp://koobera.math.uic.edu/pub/software/qmail-1.03.tar.gz Source1: qmail.csh Source2: qmail.sh Patch: http://www.qcc.sk.ca/~bguenter/distrib/qmail+patches/qmail-1.03-qmqpc-timeout.patch Summary: Qmail QMQP client Provides: MTA Provides: smtpdaemon Provides: qmail-queue Conflicts: sendmail Conflicts: qmail BuildRoot: /tmp/qmail-qmqpc %description This package provides a simple QMQP client setup to be used to set up a non-intelligent mail host that forwards all of its mail to another host running a QMQP server (qmail-qmqpd). This package is a complete standalone system for providing mail capabilities to a networked host. QMQP is a streamlined protocol that provides a centralized mail queue within a cluster of hosts. See the author's page at ftp://koobera.math.uic.edu/www/proto/qmqp.html for full details. %prep %setup -n qmail-1.03 %patch -p1 echo "gcc $RPM_OPT_FLAGS" >conf-cc echo "gcc -s $RPM_OPT_FLAGS" >conf-ld uid=`id -un` { for u in 1 2 3 4 5 6 7 8; do echo $uid; done } >conf-users gid=`id -gn` { echo $gid; echo $gid } >conf-groups %build make it man %install PATH="/bin:/usr/bin" rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT pushd $RPM_BUILD_ROOT mkdir -p etc/qmail mkdir -p etc/profile.d mkdir -p usr mkdir -p usr/lib mkdir -p usr/sbin mkdir -p var/qmail popd # INSTALL IT mkdir -p $RPM_BUILD_ROOT/{usr,var/qmail,etc/qmail,etc/profile.d} echo $RPM_BUILD_ROOT/var/qmail >conf-qmail make install ./install /usr/bin/install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d pushd $RPM_BUILD_ROOT/var/qmail # Make symlinks ln -sf qmail-qmqpc bin/qmail-queue ln -sf qmail-qmqpc.8 man/man8/qmail-queue.8 mv bin ../../usr/bin ln -s /usr/bin bin mv man ../../usr/man ln -s /usr/man man mv control ../../etc/qmail/control ln -s /etc/qmail/control control rm -rf doc ln -s /usr/doc/qmail-$RPM_PACKAGE_VERSION doc popd pushd $RPM_BUILD_ROOT/usr mv bin/sendmail sbin ln -s ../sbin/sendmail lib popd # Create "ghost" files touch $RPM_BUILD_ROOT/etc/qmail/control/me touch $RPM_BUILD_ROOT/etc/qmail/control/qmqpservers %clean rm -rf $RPM_BUILD_ROOT # Files List ################################################################### %files %defattr(-,root,root) %config /etc/profile.d/* %dir /etc/qmail %dir /etc/qmail/control %ghost %config(noreplace) /etc/qmail/control/me %ghost %config(noreplace) /etc/qmail/control/qmqpservers /usr/bin/bouncesaying /usr/bin/condredirect /usr/bin/datemail /usr/bin/elq /usr/bin/except /usr/bin/forward /usr/bin/maildir2mbox /usr/bin/maildirmake /usr/bin/maildirwatch /usr/bin/mailsubj /usr/bin/pinq /usr/bin/predate /usr/bin/preline /usr/bin/qail /usr/bin/qbiff /usr/bin/qmail-inject /usr/bin/qmail-qmqpc /usr/bin/qmail-queue /usr/bin/qmail-showctl /usr/lib/sendmail /usr/man/man1/bouncesaying.1 /usr/man/man1/condredirect.1 /usr/man/man1/except.1 /usr/man/man1/forward.1 /usr/man/man1/maildir2mbox.1 /usr/man/man1/maildirmake.1 /usr/man/man1/maildirwatch.1 /usr/man/man1/mailsubj.1 /usr/man/man1/preline.1 /usr/man/man1/qbiff.1 /usr/man/man5/addresses.5 /usr/man/man5/envelopes.5 /usr/man/man5/maildir.5 /usr/man/man5/mbox.5 /usr/man/man5/qmail-control.5 /usr/man/man5/qmail-header.5 /usr/man/man7/forgeries.7 /usr/man/man7/qmail-limits.7 /usr/man/man7/qmail.7 /usr/man/man8/qmail-inject.8 /usr/man/man8/qmail-queue.8 /usr/man/man8/qmail-qmqpc.8 /usr/man/man8/qmail-showctl.8 /usr/sbin/sendmail %dir /var/qmail /var/qmail/bin /var/qmail/control /var/qmail/doc /var/qmail/man