diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2007-06-18 08:33:32 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2007-06-18 08:33:32 +0000 |
commit | f8741aaef030a35e99f02d58ba7d70e4a93b89c3 (patch) | |
tree | 5c79125eec084e98085c5c1682fd83ad122056e5 /mail-mta/qmail-ldap | |
parent | Version bump (diff) | |
download | historical-f8741aaef030a35e99f02d58ba7d70e4a93b89c3.tar.gz historical-f8741aaef030a35e99f02d58ba7d70e4a93b89c3.tar.bz2 historical-f8741aaef030a35e99f02d58ba7d70e4a93b89c3.zip |
change noHomeDirectory to homeDirectory in controls patch; cleanup
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'mail-mta/qmail-ldap')
-rw-r--r-- | mail-mta/qmail-ldap/ChangeLog | 9 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/Manifest | 31 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r5 | 9 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r7 (renamed from mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r6) | 6 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/qmail-ldap-1.03-r5.ebuild | 500 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/qmail-ldap-1.03-r7.ebuild (renamed from mail-mta/qmail-ldap/qmail-ldap-1.03-r6.ebuild) | 4 |
6 files changed, 25 insertions, 534 deletions
diff --git a/mail-mta/qmail-ldap/ChangeLog b/mail-mta/qmail-ldap/ChangeLog index 749e344c7953..25fbea4e032e 100644 --- a/mail-mta/qmail-ldap/ChangeLog +++ b/mail-mta/qmail-ldap/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for mail-mta/qmail-ldap # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/ChangeLog,v 1.20 2007/06/17 15:44:40 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/ChangeLog,v 1.21 2007/06/18 08:33:32 hollow Exp $ + +*qmail-ldap-1.03-r7 (18 Jun 2007) + + 18 Jun 2007; Benedikt Böhm <hollow@gentoo.org> + -qmail-ldap-1.03-r5.ebuild, -qmail-ldap-1.03-r6.ebuild, + +qmail-ldap-1.03-r7.ebuild: + change noHomeDirectory to homeDirectory in controls patch; cleanup 17 Jun 2007; Benedikt Böhm <hollow@gentoo.org> qmail-ldap-1.03-r6.ebuild: Fix rfc use flags; add debug use flag; fix null-pointer in diff --git a/mail-mta/qmail-ldap/Manifest b/mail-mta/qmail-ldap/Manifest index d61cb94694f4..e19d1c349199 100644 --- a/mail-mta/qmail-ldap/Manifest +++ b/mail-mta/qmail-ldap/Manifest @@ -119,29 +119,22 @@ MD5 6ca7a3cdbfa79a51ee627c059319041d files/tcprules.d-Makefile.qmail 132 RMD160 275cf670b111f0673be05c5bb6362943af34e1f2 files/tcprules.d-Makefile.qmail 132 SHA256 505e202a5a28a036669e51d3fb51d3c02a3a35d76764c5e3f4fa0c43564a89d6 files/tcprules.d-Makefile.qmail 132 DIST qmail-1.03.tar.gz 220668 RMD160 b851f273f1d365d38efd949b1efcf35768ffa30f SHA1 18fb960481291a0503e93a94df3f6094edb7f27a SHA256 21ed6c562cbb55092a66197c35c8222b84115d1acab0854fdb1ad1f301626f88 -DIST qmail-ldap-1.03-20060201-controls20060401c.patch 196003 RMD160 b8ff42886e6b6f2df21c51c05745212878af2182 SHA1 7efee9e06baa8c69e94152b24b36b175e73e3cdd SHA256 bd79b1e71183e70e44728241cf90bb462914d7a86e7af1392081cfa88343a1f5 +DIST qmail-ldap-1.03-20060201-controls20060401d.patch 195962 RMD160 1da9243da1d70faf9305d1740dc6ff2aaf98f261 SHA1 c7a3af8f28920487d5b2c6d920976aa6e40908ee SHA256 49b4418d620af20bb2f3a1b3a9413b51c831bfe7c9ea153f0aef3d5dc76a3577 DIST qmail-ldap-1.03-20060201.patch.gz 270788 RMD160 c5702f1e4ddc9b5c4bd7d9960d6bab8514ef9d97 SHA1 c413cabc489cad971d1492d08400d5c0c291899b SHA256 92ba895df1957109ad856cc1d1554ece4d25d59017e77127dd52d76afd05525a DIST qmail-ldap-1.03-queue-custom-error.patch 2472 RMD160 9d653c77c4f3982945f98e031d6b729628ef102a SHA1 1a23226c1725fccd462fe42f8e523f1b234d5912 SHA256 77536616109591ef5f4bc0f309879167a14b3d6ce4778ff3f2dcaee9a424c25a DIST qmail-ldap-1.03-spp-0.42.patch 13618 RMD160 508570102eea891b09bcf7e26c33ebe9c19526b3 SHA1 b8f9a133f56565a54a6083656e9b9d86a59e6698 SHA256 0f673a5944347d5e46c7beffd5d9fa760cecb2e61a3291c3392ffa6777cee8c8 -EBUILD qmail-ldap-1.03-r5.ebuild 14312 RMD160 79139eeafb061d5d790e131213057b6b6c5ca47e SHA1 9144055af75c4f64374d6ae536bdc7b2dfc6c575 SHA256 53136669e942a76b361d20fcd889c4bd11b2d3498ef6d925a6118dadd99fa719 -MD5 50cc283eae449ac5d5cf36113b77060d qmail-ldap-1.03-r5.ebuild 14312 -RMD160 79139eeafb061d5d790e131213057b6b6c5ca47e qmail-ldap-1.03-r5.ebuild 14312 -SHA256 53136669e942a76b361d20fcd889c4bd11b2d3498ef6d925a6118dadd99fa719 qmail-ldap-1.03-r5.ebuild 14312 -EBUILD qmail-ldap-1.03-r6.ebuild 15285 RMD160 a9f3147e69f9b3902f43d8b7d55b54369e33f402 SHA1 0d9e6d8857c7f751689a20d82c46e0624cacb3eb SHA256 fd9823dd19f71d2fdbe9161de9e3becaca1a1fe34d102c1201bb7b94506b5356 -MD5 db7cfac23686c290ab1274d0c1e4e708 qmail-ldap-1.03-r6.ebuild 15285 -RMD160 a9f3147e69f9b3902f43d8b7d55b54369e33f402 qmail-ldap-1.03-r6.ebuild 15285 -SHA256 fd9823dd19f71d2fdbe9161de9e3becaca1a1fe34d102c1201bb7b94506b5356 qmail-ldap-1.03-r6.ebuild 15285 -MISC ChangeLog 8877 RMD160 2fa74e78a8476595cc55b8918a95cf3c77396ba5 SHA1 2e69c3846f3cd1a523b432915a0ecd67dc60636b SHA256 a668ceb6e1399ea98c0caabc5f87bc01c8f47bbb8e761126e85aff62e398c64d -MD5 9d2dc42461fa8e3b2cec3b72d213e2f8 ChangeLog 8877 -RMD160 2fa74e78a8476595cc55b8918a95cf3c77396ba5 ChangeLog 8877 -SHA256 a668ceb6e1399ea98c0caabc5f87bc01c8f47bbb8e761126e85aff62e398c64d ChangeLog 8877 +EBUILD qmail-ldap-1.03-r7.ebuild 15285 RMD160 cca4d9357aff13114a4d759a7aa81db74bcc1bbd SHA1 d01ce6eacbb2f9aa2d7e5a3b8a9654b1dd4fc3e2 SHA256 e0fe1de01dce9cbbb2a6d0fb9286f5dcc1eef8eab8b19a69ef9d8de142dfafd7 +MD5 caccaeecf765a82ae2ad8253270bea61 qmail-ldap-1.03-r7.ebuild 15285 +RMD160 cca4d9357aff13114a4d759a7aa81db74bcc1bbd qmail-ldap-1.03-r7.ebuild 15285 +SHA256 e0fe1de01dce9cbbb2a6d0fb9286f5dcc1eef8eab8b19a69ef9d8de142dfafd7 qmail-ldap-1.03-r7.ebuild 15285 +MISC ChangeLog 9120 RMD160 da04c2e5ec00dd35e3a8aaa7bfb2bac822315c71 SHA1 a8efd4ea005df84149a677513d78a25e9ca38d6f SHA256 b04d30a49d50f60e4c17c016d6801375b65d371149fd59364ac738833dfde61f +MD5 c4b3855d232ae2c9e916f1a1f86a8b01 ChangeLog 9120 +RMD160 da04c2e5ec00dd35e3a8aaa7bfb2bac822315c71 ChangeLog 9120 +SHA256 b04d30a49d50f60e4c17c016d6801375b65d371149fd59364ac738833dfde61f ChangeLog 9120 MISC metadata.xml 274 RMD160 b34739abe171522004ed69a7df6db178429ed47b SHA1 0714382cdd6138d1a7949f730c60df5e8058b483 SHA256 ae84918a025442981b8832fba60cb274de53724bbe092258d8388985d265bf1e MD5 fbfbac7493a4261c305da3e4c3cb1ed7 metadata.xml 274 RMD160 b34739abe171522004ed69a7df6db178429ed47b metadata.xml 274 SHA256 ae84918a025442981b8832fba60cb274de53724bbe092258d8388985d265bf1e metadata.xml 274 -MD5 5bb0b0fe448cc576033c262c27c8f151 files/digest-qmail-ldap-1.03-r5 780 -RMD160 c0bd77623bdcfa364dbb8b5d6dc5e993e08b9f67 files/digest-qmail-ldap-1.03-r5 780 -SHA256 91cf16cfaef5274cbc8fce507452c7e152911ba1fe150c6711d7484ea5a3e3c1 files/digest-qmail-ldap-1.03-r5 780 -MD5 c386ab2b5c370efa6e8555ce96fcfce3 files/digest-qmail-ldap-1.03-r6 1400 -RMD160 c174bfeea3999671098d8fb308972ed8c44e0211 files/digest-qmail-ldap-1.03-r6 1400 -SHA256 22b6c7893823162200c87fe73b86c4655fc89221ae7128afca1ea9ca6cc7441a files/digest-qmail-ldap-1.03-r6 1400 +MD5 2cd8b07d2d6d934679cb46863721a25e files/digest-qmail-ldap-1.03-r7 1400 +RMD160 0bcc943aa4be4644afdfee4e77d38080d5e462ac files/digest-qmail-ldap-1.03-r7 1400 +SHA256 d50275423854fedc13266a87ae79efb7abca0b496f570366063a4c8529a058aa files/digest-qmail-ldap-1.03-r7 1400 diff --git a/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r5 b/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r5 deleted file mode 100644 index 017af98e17dc..000000000000 --- a/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r5 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 622f65f982e380dbe86e6574f3abcb7c qmail-1.03.tar.gz 220668 -RMD160 b851f273f1d365d38efd949b1efcf35768ffa30f qmail-1.03.tar.gz 220668 -SHA256 21ed6c562cbb55092a66197c35c8222b84115d1acab0854fdb1ad1f301626f88 qmail-1.03.tar.gz 220668 -MD5 55fa135415ee011f3f4234d7d52a3565 qmail-ldap-1.03-20060201.patch.gz 270788 -RMD160 c5702f1e4ddc9b5c4bd7d9960d6bab8514ef9d97 qmail-ldap-1.03-20060201.patch.gz 270788 -SHA256 92ba895df1957109ad856cc1d1554ece4d25d59017e77127dd52d76afd05525a qmail-ldap-1.03-20060201.patch.gz 270788 -MD5 a5d9c4ba5a7b8c858341cc4ef8ebd447 qmail-ldap-1.03-spp-0.42.patch 13618 -RMD160 508570102eea891b09bcf7e26c33ebe9c19526b3 qmail-ldap-1.03-spp-0.42.patch 13618 -SHA256 0f673a5944347d5e46c7beffd5d9fa760cecb2e61a3291c3392ffa6777cee8c8 qmail-ldap-1.03-spp-0.42.patch 13618 diff --git a/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r6 b/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r7 index 480adc62a46a..d0b86ff0a76b 100644 --- a/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r6 +++ b/mail-mta/qmail-ldap/files/digest-qmail-ldap-1.03-r7 @@ -1,9 +1,9 @@ MD5 622f65f982e380dbe86e6574f3abcb7c qmail-1.03.tar.gz 220668 RMD160 b851f273f1d365d38efd949b1efcf35768ffa30f qmail-1.03.tar.gz 220668 SHA256 21ed6c562cbb55092a66197c35c8222b84115d1acab0854fdb1ad1f301626f88 qmail-1.03.tar.gz 220668 -MD5 6ef5ae5bdefb9d97de1b607737119d53 qmail-ldap-1.03-20060201-controls20060401c.patch 196003 -RMD160 b8ff42886e6b6f2df21c51c05745212878af2182 qmail-ldap-1.03-20060201-controls20060401c.patch 196003 -SHA256 bd79b1e71183e70e44728241cf90bb462914d7a86e7af1392081cfa88343a1f5 qmail-ldap-1.03-20060201-controls20060401c.patch 196003 +MD5 7d0b31842b3edf1b29a5fb76d7706f8d qmail-ldap-1.03-20060201-controls20060401d.patch 195962 +RMD160 1da9243da1d70faf9305d1740dc6ff2aaf98f261 qmail-ldap-1.03-20060201-controls20060401d.patch 195962 +SHA256 49b4418d620af20bb2f3a1b3a9413b51c831bfe7c9ea153f0aef3d5dc76a3577 qmail-ldap-1.03-20060201-controls20060401d.patch 195962 MD5 55fa135415ee011f3f4234d7d52a3565 qmail-ldap-1.03-20060201.patch.gz 270788 RMD160 c5702f1e4ddc9b5c4bd7d9960d6bab8514ef9d97 qmail-ldap-1.03-20060201.patch.gz 270788 SHA256 92ba895df1957109ad856cc1d1554ece4d25d59017e77127dd52d76afd05525a qmail-ldap-1.03-20060201.patch.gz 270788 diff --git a/mail-mta/qmail-ldap/qmail-ldap-1.03-r5.ebuild b/mail-mta/qmail-ldap/qmail-ldap-1.03-r5.ebuild deleted file mode 100644 index 864a002a18e8..000000000000 --- a/mail-mta/qmail-ldap/qmail-ldap-1.03-r5.ebuild +++ /dev/null @@ -1,500 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/qmail-ldap-1.03-r5.ebuild,v 1.1 2007/06/16 13:48:10 hollow Exp $ - -inherit eutils toolchain-funcs fixheadtails flag-o-matic - -QMAIL_LDAP_PATCH=20060201 -QMAIL_SPP_PATCH=0.42 - -DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" -HOMEPAGE=" - http://www.qmail-ldap.org - http://cr.yp.to/qmail.html - http://qmail.org/ -" -SRC_URI=" - mirror://qmail/qmail-${PV}.tar.gz - http://www.nrg4u.com/qmail/${P}-${QMAIL_LDAP_PATCH}.patch.gz - !vanilla? ( - qmail-spp? ( mirror://gentoo/${P}-spp-${QMAIL_SPP_PATCH}.patch ) - ) -" - -LICENSE="as-is" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="cluster gencertdaily highvolume mailwrapper qmail-spp ssl vanilla zlib" -RESTRICT="test" - -DEPEND=" - !mail-mta/qmail - sys-apps/groff - net-mail/queue-repair - ssl? ( dev-libs/openssl ) - net-nds/openldap -" -RDEPEND=" - mailwrapper? ( net-mail/mailwrapper ) - !mailwrapper? ( !virtual/mta ) - sys-apps/ucspi-tcp - sys-process/daemontools - net-mail/dot-forward - ${DEPEND} -" -PROVIDE=" - virtual/mta - virtual/mda -" - -# Important: QMAIL_CONF_SPLIT should always be a prime number! -MY_CONF_SPLIT="${QMAIL_CONF_SPLIT:-23}" - -MY_S="${WORKDIR}"/qmail-${PV} -TCPRULES_DIR=/etc/tcprules.d - -if use gencertdaily; then - CRON_FOLDER=cron.daily -else - CRON_FOLDER=cron.hourly -fi - - -src_unpack() { - unpack qmail-${PV}.tar.gz - - cd "${MY_S}" - - # main ldap patch - # includes: netqmail-1.05, EXTTODO, BIGTODO, TLS/SMTPAUTH, 0.0.0.0 fix - epatch ${DISTDIR}/${P}-${QMAIL_LDAP_PATCH}.patch.gz || die "ldap patch failed" - - local LDAPFLAGS="-DALTQUEUE -DEXTERNAL_TODO -DDASH_EXT" - - if ! use vanilla; then - use cluster && LDAPFLAGS="${LDAPFLAGS} -DQLDAP_CLUSTER" - use highvolume && LDAPFLAGS="${LDAPFLAGS} -DBIGTODO" - use zlib && LDAPFLAGS="${LDAPFLAGS} -DDATA_COMPRESS -D QMQP_COMPRESS" - - if use qmail-spp; then - epatch ${DISTDIR}/${P}-spp-${QMAIL_SPP_PATCH}.patch - fi - - # a lot of sed magic to get Makefile right - sed -i \ - -e "s:^#LDAPFLAGS=.*:LDAPFLAGS=${LDAPFLAGS}:" \ - -e 's:^LDAPLIBS=.*:LDAPLIBS=-L/usr/lib -lldap -llber:' \ - -e 's:^LDAPINCLUDES=.*:LDAPINCLUDES=-I/usr/include:' \ - Makefile || die "could not enable OpenLDAP" - - sed -i -e 's:^#SHADOWLIBS=.*:SHADOWLIBS=-lcrypt:' \ - Makefile || die "could not enable shadow passwords" - - sed -i \ - -e 's:^#\(MDIRMAKE=.*\):\1:' \ - -e 's:^#\(HDIRMAKE=.*\):\1:' \ - Makefile || die "could not enabled automaildirmake" - - if use zlib; then - sed -i -e 's:^#ZLIB=.*:ZLIB=-lz:' \ - Makefile || die "could not enable zlib" - fi - - if use ssl; then - sed -i \ - -e 's:^#\(TLS=.*\):\1:g' \ - -e 's:^#TLSINCLUDES=.*:TLSINCLUDES=/usr/include:' \ - -e 's:^#TLSLIBS=.*:TLSLIBS=-L/usr/lib -lssl -lcrypto:' \ - -e 's:^#OPENSSLBIN=.*:OPENSSLBIN=/usr/bin/openssl:' \ - Makefile || die "could not enable TLS" - fi - fi - - if [[ -n "${QMAIL_PATCH_DIR}" && -d "${QMAIL_PATCH_DIR}" ]] - then - echo - ewarn "You enabled custom patches from ${QMAIL_PATCH_DIR}." - ewarn "Be warned that you won't get any support when using " - ewarn "this feature. You're on your own from now!" - ebeep - epatch "${QMAIL_PATCH_DIR}/"* - echo - fi - - is_prime ${MY_CONF_SPLIT} || die 'QMAIL_CONF_SPLIT is not a prime number.' - einfo "Using conf-split value of ${MY_CONF_SPLIT}." - - ht_fix_file Makefile* - append-ldflags $(bindnow-flags) - - # The following commands patch the conf-{cc,ld} files to use the user's - # specified CFLAGS and LDFLAGS. These rather complex commands are needed - # because a user supplied patch might apply changes to these files, too. - # Fixes Bug #165981. - echo "$(head -n 1 "${MY_S}/conf-cc" | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #")" \ - "${CFLAGS}" > "${MY_S}/conf-cc.tmp" && - mv "${MY_S}/conf-cc.tmp" "${MY_S}/conf-cc" || die 'Patching conf-cc failed.' - - echo "$(head -n 1 "${MY_S}/conf-ld" | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #")" \ - "${LDLAGS}" > "${MY_S}/conf-ld.tmp" && - mv "${MY_S}/conf-ld.tmp" "${MY_S}/conf-ld" || die 'Patching conf-ld failed.' - - echo -n "${MY_CONF_SPLIT}" > "${MY_S}/conf-split" -} - -src_compile() { - cd "${MY_S}" - emake it man ldap || die "make failed" -} - -src_install() { - cd "${MY_S}" - - einfo "Setting up directory hierarchy ..." - - diropts -m 755 -o root -g qmail - dodir /var/qmail/{,bin,boot,control} - - keepdir /var/qmail/users - - diropts -m 755 -o alias -g qmail - dodir /var/qmail/alias - - einfo "Installing the qmail software ..." - - 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 - - insinto /var/qmail/bin - - insopts -o qmailq -g qmail -m 4711 - doins qmail-queue - - insopts -o root -g qmail -m 700 - doins qmail-{lspawn,start,newu,newmrh} - - insopts -o root -g qmail -m 711 - doins qmail-{getpw,local,remote,rspawn,clean,send,pw2u} splogger - - insopts -o root -g qmail -m 755 - doins bouncesaying condredirect config-fast datemail elq \ - except forward maildir2mbox maildirmake maildirwatch \ - mailsubj pinq predate preline qail qbiff \ - qmail-{inject,pop3d,popup,qmqpc,qmqpd,qmtpd,qread} \ - qmail-{qstat,showctl,smtpd,tcpok,tcpto} \ - qreceipt qsmhook sendmail tcp-env - doins auth_{imap,pop,smtp} condwrite digest dirmaker \ - pbs{add,check,dbd} qmail-{cdb,forward,group} \ - qmail-{ldaplookup,quotawarn,reply,secretary,todo,verify} - - einfo "Installing manpages" - into /usr - doman *.[1-8] - - dodoc BLURB* CHANGES FAQ INSTALL* PIC* README* REMOVE* SECURITY \ - SENDMAIL SYSDEPS TARGETS TEST* THANKS* THOUGHTS TODO* \ - UPGRADE VERSION* \ - QLDAP* ${FILESDIR}/samples.ldif - - # use the correct maildirmake - # the courier-imap one has some extensions that are nicer - [[ -e /usr/bin/maildirmake ]] && \ - MAILDIRMAKE="/usr/bin/maildirmake" || \ - MAILDIRMAKE="${D}/var/qmail/bin/maildirmake" - - einfo "Adding env.d entry for qmail" - insopts -m 644 - doenvd ${FILESDIR}/99qmail - - einfo "Creating sendmail replacement ..." - diropts -m 755 - dodir /usr/sbin /usr/lib - - if use mailwrapper - then - insinto /etc/mail - doins ${FILESDIR}/mailer.conf - else - dosym /var/qmail/bin/sendmail /usr/sbin/sendmail - dosym /var/qmail/bin/sendmail /usr/lib/sendmail - fi - - einfo "Setting up the default aliases ..." - diropts -m 700 -o alias -g qmail - ${MAILDIRMAKE} ${D}/var/qmail/alias/.maildir - keepdir /var/qmail/alias/.maildir/{cur,new,tmp} - - for i in /var/qmail/alias/.qmail-{mailer-daemon,postmaster,root} - do - if [[ ! -f ${i} ]]; then - touch ${D}${i} - fowners alias:qmail ${i} - fi - done - - einfo "Setting up maildirs by default in the account skeleton ..." - diropts -m 755 -o root -g root - insinto /etc/skel - newins ${FILESDIR}/dot-qmail .qmail.sample - fperms 644 /etc/skel/.qmail.sample - ${MAILDIRMAKE} ${D}/etc/skel/.maildir - keepdir /etc/skel/.maildir/{cur,new,tmp} - - einfo "Setting up all services (send, smtp, qmtp, qmqp, pop3) ..." - insopts -o root -g root -m 755 - diropts -m 755 -o root -g root - dodir /var/qmail/supervise - - for i in send smtpd qmtpd qmqpd pop3d; do - insopts -o root -g root -m 755 - diropts -m 755 -o root -g root - dodir /var/qmail/supervise/qmail-${i}{,/log} - fperms +t /var/qmail/supervise/qmail-${i}{,/log} - insinto /var/qmail/supervise/qmail-${i} - newins ${FILESDIR}/run-qmail-${i} run - insinto /var/qmail/supervise/qmail-${i}/log - newins ${FILESDIR}/run-qmail-${i}-log run - diropts -m 755 -o qmaill - keepdir /var/log/qmail/qmail-${i} - done - - dodir ${TCPRULES_DIR} - insinto ${TCPRULES_DIR} - newins ${FILESDIR}/tcprules.d-Makefile.qmail Makefile.qmail - for i in smtp qmtp qmqp pop3; do - newins ${FILESDIR}/tcp.${i}.sample tcp.qmail-${i} - done - - einfo "Installing OpenLDAP schema ..." - insinto /etc/openldap/schema - doins qmail.schema - - einfo "Installing some stock configuration files" - insinto /var/qmail/control - insopts -o root -g root -m 644 - doins ${FILESDIR}/conf-{common,send,qmtpd,qmqpd,pop3d} - newins ${FILESDIR}/conf-smtpd conf-smtpd - newins ${FILESDIR}/dot-qmail defaultdelivery - use ssl && \ - doins ${FILESDIR}/servercert.cnf - - einfo "Configuration sanity checker and launcher" - into /var/qmail - insopts -o root -g root -m 644 - dobin ${FILESDIR}/qmail-config-system - - if use qmail-spp; then - einfo "Installing files for qmail-spp" - insinto /var/qmail/control/ - doins ${FILESDIR}/smtpplugins - keepdir /var/qmail/plugins/ - fi - - if use ssl; then - einfo "SSL Certificate creation script" - dobin ${FILESDIR}/mkservercert - einfo "RSA key generation cronjob" - insinto /etc/${CRON_FOLDER} - doins ${FILESDIR}/qmail-genrsacert.sh - chmod +x ${D}/etc/${CRON_FOLDER}/qmail-genrsacert.sh - - # for some files - keepdir /var/qmail/control/tlshosts/ - fi -} - -rootmailfixup() { - # so you can check mail as root easily - local TMPCMD="ln -sf /var/qmail/alias/.maildir/ ${ROOT}/root/.maildir" - if [[ -d "${ROOT}/root/.maildir" && ! -L "${ROOT}/root/.maildir" ]] ; then - elog "Previously the qmail ebuilds created /root/.maildir/ but not" - elog "every mail was delivered there. If the directory does not" - elog "contain any mail, please delete it and run:" - elog "${TMPCMD}" - else - ${TMPCMD} - fi - chown -R alias:qmail ${ROOT}/var/qmail/alias/.maildir 2>/dev/null -} - -buildtcprules() { - for i in smtp qmtp qmqp pop3; do - # please note that we don't check if it exists - # as we want it to make the cdb files anyway! - f=tcp.qmail-${i} - src=${ROOT}${TCPRULES_DIR}/${f} - cdb=${ROOT}${TCPRULES_DIR}/${f}.cdb - tmp=${ROOT}${TCPRULES_DIR}/.${f}.tmp - [[ -e ${src} ]] && tcprules ${cdb} ${tmp} < ${src} - done -} - -pkg_postinst() { - einfo "Setting up the message queue hierarchy ..." - /usr/bin/queue-repair.py \ - --create --split "${MY_CONF_SPLIT}" \ - $(use highvolume && echo '--bigtodo' || echo '--no-bigtodo') \ - ${ROOT}/var/qmail >/dev/null || \ - die 'queue-repair failed' - - rootmailfixup - buildtcprules - - # for good measure - env-update - - elog "To setup qmail to run out-of-the-box on your system, run:" - elog "emerge --config =${CATEGORY}/${PF}" - elog - elog "To start qmail at boot you have to add svscan to your startup" - elog "and create the following links:" - elog "ln -s /var/qmail/supervise/qmail-send /service/qmail-send" - elog "ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd" - elog - elog "To start the pop3 server as well, create the following link:" - elog "ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d" - elog - elog "Additionally, the QMTP and QMQP protocols are supported, " - elog "and can be started as:" - elog "ln -s /var/qmail/supervise/qmail-qmtpd /service/qmail-qmtpd" - elog "ln -s /var/qmail/supervise/qmail-qmqpd /service/qmail-qmqpd" - elog - elog "Additionally, if you wish to run qmail right now, you should " - elog "run this before anything else:" - elog "source /etc/profile" - elog - elog "If you are looking for documentation, check those links:" - elog "http://www.lifewithqmail.com/ldap/" - elog " -- Life with qmail-ldap" - elog - elog "For sample ldifs, please check" - elog "/usr/share/doc/${PF}/samples.ldif.gz" -} - -pkg_preinst() { - mkdir -p ${TCPRULES_DIR} - for proto in smtp qmtp qmqp pop3; do - for ext in '' .cdb; do - old="/etc/tcp.${proto}${ext}" - new="${TCPRULES_DIR}/tcp.qmail-${proto}${ext}" - fail=0 - if [[ -f "$old" && ! -f "$new" ]]; then - einfo "Moving $old to $new" - cp $old $new || fail=1 - else - fail=1 - fi - if [[ "${fail}" = 1 && -f ${old} ]]; then - eerror "Error moving $old to $new, be sure to check the" - eerror "configuration! You may have already moved the files," - eerror "in which case you can delete $old" - fi - done - done -} - -# Candidate for eclass -pkg_setup() { - # keep in sync with mini-qmail pkg - einfo "Creating groups and users" - enewgroup qmail 201 - enewuser alias 200 -1 /var/qmail/alias 200 - enewuser qmaild 201 -1 /var/qmail 200 - enewuser qmaill 202 -1 /var/qmail 200 - enewuser qmailp 203 -1 /var/qmail 200 - enewuser qmailq 204 -1 /var/qmail 201 - enewuser qmailr 205 -1 /var/qmail 201 - enewuser qmails 206 -1 /var/qmail 201 -} - -pkg_config() { - # avoid some weird locale problems - export LC_ALL=C - - if [[ ${ROOT} = / ]] ; then - if [[ ! -f ${ROOT}var/qmail/control/me ]] ; then - export qhost=$(hostname --fqdn) - ${ROOT}var/qmail/bin/config-fast $qhost - fi - else - ewarn "Skipping some configuration as it MUST be run on the final host" - fi - - einfo "Accepting relaying by default from all ips configured on this machine." - LOCALIPS=$(/sbin/ifconfig | grep inet | cut -d' ' -f 12 -s | cut -b 6-20) - TCPSTRING=":allow,RELAYCLIENT=\"\",RBLSMTPD=\"\"" - for ip in $LOCALIPS; do - myline="${ip}${TCPSTRING}" - for proto in smtp qmtp qmqp; do - f="${ROOT}${TCPRULES_DIR}/tcp.qmail-${proto}" - egrep -q "${myline}" ${f} || echo "${myline}" >>${f} - done - done - - buildtcprules - - if use ssl; then - ebegin "Generating RSA keys for SSL/TLS, this can take some time" - ${ROOT}/etc/${CRON_FOLDER}/qmail-genrsacert.sh - eend $? - einfo "Creating a self-signed ssl-certificate:" - ${ROOT}/var/qmail/bin/mkservercert - einfo "If you want to have a properly signed certificate " - einfo "instead, do the following:" - # space at the end of the string because of the current implementation - # of einfo - einfo "openssl req -new -nodes -out req.pem \\ " - einfo " -config /var/qmail/control/servercert.cnf \\ " - einfo " -keyout /var/qmail/control/servercert.pem" - einfo "Send req.pem to your CA to obtain signed_req.pem, and do:" - einfo "cat signed_req.pem >> /var/qmail/control/servercert.pem" - fi -} - -# --- TODO: The following code can be moved to prime.eclass -- -# Original Author: Michael Hanselmann <hansmi@gentoo.org> -# Purpose: Functions for prime numbers - -# Prints a list of primes between min and max inclusive -# -# Note: this functions gets very slow when used with large numbers. -# -# Syntax: primes <min> <max> -primes() { - local min=${1} max=${2} - local result= primelist=2 i p - - [[ ${min} -le 2 ]] && result="${result} 2" - - for ((i = 3; i <= max; i += 2)) - do - for p in ${primelist} - do - [[ $[i % p] == 0 || $[p * p] -gt ${i} ]] && \ - break - done - if [[ $[i % p] != 0 ]] - then - primelist="${primelist} ${i}" - [[ ${i} -ge ${min} ]] && \ - result="${result} ${i}" - fi - done - - echo ${result} -} - -# Checks wether a number is a prime number -# -# Syntax: is_prime <number> -is_prime() { - local number=${1} i - for i in $(primes ${number} ${number}) - do - [[ ${i} == ${number} ]] && return 0 - done - return 1 -} -# --- end of prime.eclass --- diff --git a/mail-mta/qmail-ldap/qmail-ldap-1.03-r6.ebuild b/mail-mta/qmail-ldap/qmail-ldap-1.03-r7.ebuild index 17ddedb0664f..f38cbdb6723d 100644 --- a/mail-mta/qmail-ldap/qmail-ldap-1.03-r6.ebuild +++ b/mail-mta/qmail-ldap/qmail-ldap-1.03-r7.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/qmail-ldap-1.03-r6.ebuild,v 1.4 2007/06/17 15:44:40 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail-ldap/qmail-ldap-1.03-r7.ebuild,v 1.1 2007/06/18 08:33:32 hollow Exp $ inherit eutils toolchain-funcs fixheadtails flag-o-matic QMAIL_LDAP_PATCH=20060201 QMAIL_SPP_PATCH=0.42 -CONTROLS_PATCH=20060401c +CONTROLS_PATCH=20060401d DESCRIPTION="qmail -- a secure, reliable, efficient, simple message transfer agent" HOMEPAGE=" |