diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-12-18 21:24:16 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-12-18 21:24:16 +0000 |
commit | 240fb2cd2c1ecb0c085c2e1ebb12e7b2944d3e15 (patch) | |
tree | e7b40a6cccf06385e13c477b6e4ddf74d52aae41 /net-mail/qmail | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-240fb2cd2c1ecb0c085c2e1ebb12e7b2944d3e15.tar.gz gentoo-2-240fb2cd2c1ecb0c085c2e1ebb12e7b2944d3e15.tar.bz2 gentoo-2-240fb2cd2c1ecb0c085c2e1ebb12e7b2944d3e15.zip |
*** empty log message ***
Diffstat (limited to 'net-mail/qmail')
-rw-r--r-- | net-mail/qmail/files/digest-qmail-1.03-r3 | 4 | ||||
-rw-r--r-- | net-mail/qmail/qmail-1.03-r3.ebuild | 217 |
2 files changed, 221 insertions, 0 deletions
diff --git a/net-mail/qmail/files/digest-qmail-1.03-r3 b/net-mail/qmail/files/digest-qmail-1.03-r3 new file mode 100644 index 000000000000..8a8187e55e1c --- /dev/null +++ b/net-mail/qmail/files/digest-qmail-1.03-r3 @@ -0,0 +1,4 @@ +MD5 622f65f982e380dbe86e6574f3abcb7c qmail-1.03.tar.gz +MD5 39b6f70f65056472ff97ab40c1dba7b4 big-todo.103.patch +MD5 2ff58c3570870a8ff9a1d9eb9aec05a6 big-concurrency.patch +MD5 536b8dd8648dee72c137569a5ae2ac46 qmail-nosync.patch diff --git a/net-mail/qmail/qmail-1.03-r3.ebuild b/net-mail/qmail/qmail-1.03-r3.ebuild new file mode 100644 index 000000000000..7336c217a902 --- /dev/null +++ b/net-mail/qmail/qmail-1.03-r3.ebuild @@ -0,0 +1,217 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger <achim@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail/qmail-1.03-r3.ebuild,v 1.1 2000/12/18 21:24:16 achim Exp $ + +S=${WORKDIR}/qmail-1.03 +DESCRIPTION="A modern replacement for sendmail which uses maildirs" + +QMAIL_SRC="http://cr.yp.to/software/qmail-1.03.tar.gz + http://www.qmail.org/big-todo.103.patch + http://www.qmail.org/big-concurrency.patch + http://www.jedi.claranet.fr/qmail-nosync.patch" +MYSQL_SRC="http://iain.cx/unix/qmail/qmail-mysql.patch" +LDAP_SRC="http://www.nrg4u.com/qmail/qmail-ldap-1.03-20001201.patch.gz" + +QMAIL_DEP=">=sys-apps/bash-2.04 + >=sys-libs/glibc-2.1.3" +MYSQL_DEP=">=dev-db/mysql-3.23.28" +LDAP_DEP=">=net-nds/openldap-1.2.11" + +HOMEPAGE="http://www.qmail.org/ + http://www.jedi.claranet.fr/qmail-tuning.html + http://iain.cx/unix/qmail/mysql.php + http://www.nrg4u.com/" + +# oversize dns patch (unnecessary?) +# http://www.ckdhr.com/ckd/qmail-1.03.patch + +if [ "${P}" = "qmail-mysql-1.03" ]; then + SRC_URI="${QMAIL_SRC} ${MYSQL_SRC}" + DEPEND="${QMAIL_DEP} ${MYSQL_DEP}" +elif [ "${P}" = "qmail-ldap-1.03" ]; then + SRC_URI="${QMAIL_SRC} ${LDAP_SRC}" + DEPEND="${QMAIL_DEP} ${LDAP_DEP}" +else + SRC_URI="${QMAIL_SRC}" + DEPEND="${QMAIL_DEP}" +fi + +PROVIDE="virtual/mta" + + +src_unpack() { + cd ${WORKDIR} + unpack qmail-1.03.tar.gz + + cd ${S} + echo Applying big-todo patch... + patch < ${DISTDIR}/big-todo.103.patch + + echo Applying big-concurrency patch... + patch < ${DISTDIR}/big-concurrency.patch + + echo Applying Ext2FS/ReiserFS patch... + patch < ${DISTDIR}/qmail-nosync.patch + + if [ "${P}" = "qmail-mysql-1.03" ]; then + cd ${S} + echo Applying MySQL patch... + patch < ${DISTDIR}/qmail-mysql.patch + fi + + echo "gcc ${CFLAGS}" > conf-cc + echo "gcc" > conf-ld + echo "500" > conf-spawn +} + + +src_compile() { + cd ${S} + + if [ "${P}" = "qmail-mysql-1.03" ]; then + cp Makefile Makefile.orig + sed -e "s:MYSQL_LIBS=.*:MYSQL_LIBS=/usr/lib/mysql/libmysqlclient.a -lm:" \ + -e "s:MYSQL_INCLUDE=.*:MYSQL_INCLUDE=-I/usr/include/mysql:" Makefile.orig > Makefile + fi + + try make it man +} + + + +src_install() { + cd ${S} + diropts -m 755 -o root -g qmail + dodir /var/qmail + + for i in bin boot control users + do + dodir /var/qmail/$i + done + + diropts -m 755 -o alias -g qmail + dodir /var/qmail/alias + + diropts -m 750 -o qmailq -g qmail + dodir /var/qmail/queue + dodir /var/qmail/queue/todo + + diropts -m 700 -o qmailq -g qmail + dodir /var/qmail/queue/pid + + diropts -m0700 -o qmails -g qmail + dodir /var/qmail/queue/bounce + + diropts -m 750 -o qmailq -g qmail + dodir /var/qmail/queue/mess + + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 + do + dodir /var/qmail/queue/mess/$i + dodir /var/qmail/queue/todo/$i + dodir /var/qmail/queue/intd/$i + done + + diropts -m 700 -o qmails -g qmail + for i in info local remote + do + dodir /var/qmail/queue/$i + done + + for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 + do + dodir /var/qmail/queue/info/$i + dodir /var/qmail/queue/local/$i + dodir /var/qmail/queue/remote/$i + done + + diropts -m 750 -o qmailq -g qmail + dodir /var/qmail/queue/lock + + dd if=/dev/zero of=${D}/var/qmail/queue/lock/tcpto bs=1024 count=1 + fperms 644 /var/qmail/queue/lock/tcpto + fowners qmailr.qmail /var/qmail/queue/lock/tcpto + + touch ${D}/var/qmail/queue/lock/sendmutex + fperms 600 /var/qmail/queue/lock/sendmutex + fowners qmails.qmail /var/qmail/queue/lock/sendmutex + + mkfifo ${D}/var/qmail/queue/lock/trigger + fperms 622 /var/qmail/queue/lock/trigger + fowners qmails.qmail /var/qmail/queue/lock/trigger + + insopts -o root -g qmail -m 755 + insinto /var/qmail/boot + doins home home+df proc proc+df binm1 binm1+df binm2 binm2+df binm3 binm3+df + + into /usr + dodoc FAQ UPGRADE SENDMAIL INSTALL* TEST* REMOVE* PIC* SECURITY + dodoc SYSDEPS TARGETS THANKS THOUGHTS TODO VERSION + + insopts -o qmailq -g qmail -m 4711 + insinto /var/qmail/bin + doins qmail-queue qmail-queue + + insopts -o root -g qmail -m 700 + insinto /var/qmail/bin + doins qmail-lspawn qmail-start qmail-newu qmail-newmrh + + insopts -o root -g qmail -m 711 + insinto /var/qmail/bin + doins qmail-getpw qmail-local qmail-remote qmail-rspawn \ + qmail-clean qmail-send splogger qmail-pw2u + + insopts -o root -g qmail -m 755 + insinto /var/qmail/bin + doins qmail-inject predate datemail mailsubj qmail-showctl \ + qmail-qread qmail-qstat qmail-tcpto qmail-tcpok qmail-pop3d \ + qmail-popup qmail-qmqpc qmail-qmqpd qmail-qmtpd qmail-smtpd \ + sendmail tcp-env qreceipt qsmhook qbiff forward preline \ + condredirect bouncesaying except maildirmake maildir2mbox \ + maildirwatch qail elq pinq config-fast + + diropts -m 755 + dodir /usr/sbin /usr/lib + dosym /var/qmail/bin/sendmail /usr/sbin/sendmail + dosym /var/qmail/bin/sendmail /usr/lib/sendmail + + into /usr + for i in *.1 *.5 *.8 + do + doman $i + done + + diropts -m 700 -o alias -g qmail + if [ ! -d ${ROOT}/var/qmail/alias/Maildir ] ; then + dodir /var/qmail/alias/Maildir + + for i in cur new tmp + do + dodir /var/qmail/alias/Maildir/$i + done + fi + + for i in mailer-daemon postmaster root + do + touch ${D}/var/qmail/alias/.qmail-${i} + fowners alias.qmail /var/qmail/alias/.qmail-${i} + done + + insinto /etc/rc.d/init.d + insopts -m755 + doins ${O}/files/qmail +} + + +# pkg_config() { +# export QmailHost=`uname -n` +# ${ROOT}/usr/sbin/rc-update add qmail +# if [ ${ROOT} = "/" ] ; then +# +# if [ ! -f ${ROOT}/var/qmail/control/me ] ; then +# ${ROOT}/var/qmail/bin/config-fast $QmailHost +# fi +# +# fi +# } |