diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-mta/qmail-ldap |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-mta/qmail-ldap')
-rw-r--r-- | mail-mta/qmail-ldap/Manifest | 13 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/files/1.03-warnings.patch | 55 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/files/samples.ldif | 32 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/metadata.xml | 22 | ||||
-rw-r--r-- | mail-mta/qmail-ldap/qmail-ldap-1.03-r8.ebuild | 225 |
5 files changed, 347 insertions, 0 deletions
diff --git a/mail-mta/qmail-ldap/Manifest b/mail-mta/qmail-ldap/Manifest new file mode 100644 index 000000000000..565147e4ab47 --- /dev/null +++ b/mail-mta/qmail-ldap/Manifest @@ -0,0 +1,13 @@ +AUX 1.03-warnings.patch 2604 SHA256 2b27769cae0a52229787b67ae0f5b7a0fbfbb8377ee43cdaedbef418b27e7444 SHA512 6bf142eb11dd14133786b4c8ff44e70e2e3ef625c7a488e1506030a73c34bb8029ac25be6e2567436aac8b08efaaa174260694875ec22795d8bbb2ca806849ac WHIRLPOOL 73597de4a976eab8ddc3b3ee3e868af816633bda084444e2e2472c18d6ff6b55c34f2567d43d43bd550711168ad45c64ef317efb54fbf3ecabbcff1eb46fbb92 +AUX samples.ldif 821 SHA256 7fc42450cb689ee3e71d12aadef4dd68ec42bd8676040d0f3a22813204482c60 SHA512 2b77a383a1a2fb482f583b8044575ac476a3d0e6ee0a807b05cd42ba25d701e8f1562675518d76df23fbb33b7b7b1c691866ea7d8f918d73cd65c4a4ce52f38c WHIRLPOOL 1a6764a70f13072e965a67ea7fe54e19935f974ca49f5830c12e8f617655168e2478fcceaf6c5b8f84823f751fa993fa716561913ea95cecd64a6cfe6a967ee1 +DIST genqmail-20080406.tar.bz2 10252 SHA256 501ca2120c7619569bd9ac3e0035cb0022bfd0cdc9c720b5c43c9e3a4eb07ce8 SHA512 744d0968307bfedebf0ca7bc0d5bd0780884326acaf5fea0a66fb91f8b0caf5ba52eb443c9cb2a7d6389622ca5c87100c3204ec3408aed8ef5fb1e7f80ff0d35 WHIRLPOOL b385cd2d5e88795f163a4f49dc81a2080d7076ec2016ee7d8154df4488effa7112caf0577c8dc8ff654665213aa4120a21de8223f3dd51056fa189546ace3cf5 +DIST qmail-1.03.tar.gz 220668 SHA256 21ed6c562cbb55092a66197c35c8222b84115d1acab0854fdb1ad1f301626f88 SHA512 f2cc47c3ef4a3595d5953f216811a9b60f505cf8cbfd31ae31a888ee04916936210ef1c23d59e8d280a5f0e1c3794b90ee212b2b0f36361c5eff842598c8aee2 WHIRLPOOL 60c4545738666403ff13e89ffacd817dfcb51066c2de309894af79372cfb8613a34cf287c2e3fb23c7035463ffd4dc7ba3a2f52448012448e711e0054163f7f2 +DIST qmail-ldap-1.03-20060201-controls20060401d.patch 195962 SHA256 49b4418d620af20bb2f3a1b3a9413b51c831bfe7c9ea153f0aef3d5dc76a3577 SHA512 7e75089de1f9ed09f2e1397cbe8b8e68ad44cc164af92eefdbbb58d7b11678505afc3f225d8038f68c891c3ec3443ae768c334593c0f347e4b16189a9606b181 WHIRLPOOL 836ea0ae6806b15f1acb03309c3184e52ef61970abcb7f44e57637b9da1e38fe7ec1e7a35dec30d41171a9256b2996f3747c91f12691cf065586bb83647f9a54 +DIST qmail-ldap-1.03-20060201.patch.gz 270788 SHA256 92ba895df1957109ad856cc1d1554ece4d25d59017e77127dd52d76afd05525a SHA512 c74dd4b600129cac808c8caef63ee8c969887b5c576cd700bb2d021d4480e3e854d147e3e3b72923abe9c3b8bc108c8f00ed7b842eba1f66a961b39f108df798 WHIRLPOOL 82b890617262b9aeb81e30329a6e9a1f8ae63f06a8ceeb817be6c178e8f57abe5a67556b112ac1bb7db4086a9b8260bf24b9bc300c4756d0d5a64e8ac539ea8a +DIST qmail-ldap-1.03-queue-custom-error.patch 2472 SHA256 77536616109591ef5f4bc0f309879167a14b3d6ce4778ff3f2dcaee9a424c25a SHA512 04db0c940e8c2a888298febc59a11ae023c154b0c21183134e5255b994630993d0a9241724f8bc5e64337c5444e2c3059d5cc29561ac70637cb40c3e52c5a3b3 WHIRLPOOL 28e3e3649ec1348984f3e38f2a8ddc1ca3932fb686d45301d38914226a0f1acfd970dde8a63a7df46c83515297cb0a95c923934ebb0b66b6809ea0591e0f85f8 +DIST qmail-ldap-1.03-spp-0.42.patch 13618 SHA256 0f673a5944347d5e46c7beffd5d9fa760cecb2e61a3291c3392ffa6777cee8c8 SHA512 3aecc004ccc34f1974a9d0d471add0424b3663fefa12a2a47b7312a73eb5ad6dba28cf075e73243c5740ee4a403b1e37f2a2cbe62c6c15cd3ea8e0b840e72021 WHIRLPOOL 9293ca254ffd8c7468962a71aea76a3600a956b42793cca992a82ca8e69a8e719018bb8f1f55cf8e61b9613726c535473e658883df63eddfab29142d57a90c58 +DIST qmail-spp-0.42.tar.gz 18689 SHA256 1518e7e82d10fbbb8ecc520f51daf503edeb9c3a9fb935be65a8185e7b53808d SHA512 03449862886a0ca20fbadab4c94b34b55d185f8df3261bd68aea99e9ded9edfab4477c6b38a8e0295e9b38b0045615da8b1a906a458f28745eadd3c4d882bcbf WHIRLPOOL 2f8525bb264fbec4b057bad6d92968e29085fdf10b8538b8e572d81ea8793e74c07c6093d0cc2a34de00b629e797b048007b30e3845dce76829037fdb44f527c +EBUILD qmail-ldap-1.03-r8.ebuild 5681 SHA256 50e3f5eaa254c82010d2f7f2b4394378ed97f5a631aee58be7db0ee5a55f4bd0 SHA512 9f4e475e46be7755e341e520c0699e8286860000ffebdc9e12bbf2eaf578d3672d3bc232f557f5c50e8c106d00b89fc70820455d5df10c68e6553580d7f1cd26 WHIRLPOOL 0930e357465085ece7942d150c6a198d369492274cc195bcb3e00bd9b3c5ed18ff45953176f118603c69cb9a9fe405df63c3d9ee5ddfdc9bc44d061ee4954939 +MISC ChangeLog 2520 SHA256 3e6d325342fc438d24d5fa9b27fc445d3766c78b6add9d8b1a66c1d522bbf010 SHA512 d94b8560753a2d4883b1d47155170b4d361d3fe618e06ac76caf3c5af0f1eedc035a89570690483d88bee4df9148d97fc88bc88d1405aea6fb43e56364e549c9 WHIRLPOOL 87b81826b13a3a510541b7e4cc181d86ba08a6f68678ecd01899815823b6d06870e9931f8fa66107992dec4b37b1b49128df6797b7a1a640bf1f97114de65c8e +MISC ChangeLog-2015 11499 SHA256 fbc00aada9042f8b5d6b93282d48fa5fcff5890211f591596a5593dfe5878479 SHA512 40138426e782e5fc19540da2171b9e0de630d07f46f67268fff85a55e21d266143233ee235654db18f95f8537081b07c7ceda13298feebc8f9b59fdfe7199849 WHIRLPOOL 6b977151146f7cea7e2330e72da11f475530782d19f563023909aef8811f86bb17fde609e88621d0bc57977c5816e06d6e9f324233b4bdcc36456d3caea45466 +MISC metadata.xml 759 SHA256 8e85b9b21556df13e0ae14a40900c46e03820919750617647b466941890d2946 SHA512 97caf06c635b1f639406cac7b9ff84910b8c7ad1147e2ab2b052d10d8841ace90fd3c978534d1203788a481b5763497dd1bf1155ae48053f57ab7ad0981b08c1 WHIRLPOOL d2431d9a66779e720a9866a8225582401ddd6c88045719482449ffd6cf9b90462dad0d55d92f9edabbf5e979bb91444d3bd9a3491a0ba2f4b46952f140186f37 diff --git a/mail-mta/qmail-ldap/files/1.03-warnings.patch b/mail-mta/qmail-ldap/files/1.03-warnings.patch new file mode 100644 index 000000000000..324d4b35730b --- /dev/null +++ b/mail-mta/qmail-ldap/files/1.03-warnings.patch @@ -0,0 +1,55 @@ +Files qmail-1.03.orig/auth_imap and qmail-1.03/auth_imap differ +Files qmail-1.03.orig/auth_pop and qmail-1.03/auth_pop differ +Files qmail-1.03.orig/auth_smtp and qmail-1.03/auth_smtp differ +diff -NurpP qmail-1.03.orig/control.c qmail-1.03/control.c +--- qmail-1.03.orig/control.c 2008-04-06 19:06:15.683511000 +0000 ++++ qmail-1.03/control.c 2008-04-06 19:15:47.923622781 +0000 +@@ -1,3 +1,6 @@ ++#define _GNU_SOURCE 1 ++#include <string.h> ++ + #include <unistd.h> + #include "readwrite.h" + #include "open.h" +@@ -10,10 +13,6 @@ + #include "scan.h" + #include "limit.h" + +-#if defined(USE_CONTROLDB) || defined(SECUREBIND_SASL) || defined(SECUREBIND_SSL) || defined(SECUREBIND_TLS) || defined(SECUREBIND_ALL) +-#include <string.h> +-#endif +- + #ifdef USE_CONTROLDB + #include <syslog.h> + +@@ -48,7 +47,6 @@ int control_ldap_search(const char *fn, + + #if defined(SECUREBIND_SASL) || defined(SECUREBIND_SSL) || defined(SECUREBIND_TLS) || defined(SECUREBIND_ALL) + #include <malloc.h> +-#include <string.h> + #include <malloc.h> + + #include "subfd.h" +Files qmail-1.03.orig/control.o and qmail-1.03/control.o differ +Files qmail-1.03.orig/pbsadd and qmail-1.03/pbsadd differ +Files qmail-1.03.orig/pbscheck and qmail-1.03/pbscheck differ +Files qmail-1.03.orig/pbsdbd and qmail-1.03/pbsdbd differ +Files qmail-1.03.orig/qmail-forward and qmail-1.03/qmail-forward differ +Files qmail-1.03.orig/qmail-group and qmail-1.03/qmail-group differ +Files qmail-1.03.orig/qmail-inject and qmail-1.03/qmail-inject differ +Files qmail-1.03.orig/qmail-ldaplookup and qmail-1.03/qmail-ldaplookup differ +Files qmail-1.03.orig/qmail-lspawn and qmail-1.03/qmail-lspawn differ +Files qmail-1.03.orig/qmail-newmrh and qmail-1.03/qmail-newmrh differ +Files qmail-1.03.orig/qmail-pw2u and qmail-1.03/qmail-pw2u differ +Files qmail-1.03.orig/qmail-qmqpc and qmail-1.03/qmail-qmqpc differ +Files qmail-1.03.orig/qmail-qmtpd and qmail-1.03/qmail-qmtpd differ +Files qmail-1.03.orig/qmail-queue and qmail-1.03/qmail-queue differ +Files qmail-1.03.orig/qmail-quotawarn and qmail-1.03/qmail-quotawarn differ +Files qmail-1.03.orig/qmail-remote and qmail-1.03/qmail-remote differ +Files qmail-1.03.orig/qmail-reply and qmail-1.03/qmail-reply differ +Files qmail-1.03.orig/qmail-secretary and qmail-1.03/qmail-secretary differ +Files qmail-1.03.orig/qmail-send and qmail-1.03/qmail-send differ +Files qmail-1.03.orig/qmail-showctl and qmail-1.03/qmail-showctl differ +Files qmail-1.03.orig/qmail-smtpd and qmail-1.03/qmail-smtpd differ +Files qmail-1.03.orig/qmail-todo and qmail-1.03/qmail-todo differ +Files qmail-1.03.orig/qmail-verify and qmail-1.03/qmail-verify differ diff --git a/mail-mta/qmail-ldap/files/samples.ldif b/mail-mta/qmail-ldap/files/samples.ldif new file mode 100644 index 000000000000..c1a77c4d97ca --- /dev/null +++ b/mail-mta/qmail-ldap/files/samples.ldif @@ -0,0 +1,32 @@ +#ldapauth, better to use this than your rootdn for security reasons +dn: uid=ldapauth,ou=People,dc=yhourhost,dc=net +uid: ldapauth +cn: ldapuath +objectClass: account +objectClass: posixAccount +objectClass: top +objectClass: shadowAccount +shadowLastChange: 12116 +loginShell: /bin/true +uidNumber: 11184 +gidNumber: 2110 +homeDirectory: /var/qmail/maildirs/ +gecos: ldap authorization,,, +userPassword: libcrypt_format + +#sample user dn +dn: uid=denverj ,ou=people,dc=yourhost,dc=net +objectClass: top +objectClass: inetOrgPerson +objectClass: qmailUser +objectClass: person +cn: John Denver +givenName: denverj +sn: denverj +uid: denverj +mail: denverj@yourhost.net +mailMessageStore: /var/qmail/maildirs/denverj/Maildir/ +nohomeDirectory: /var/qmail/maildirs/denverj/ +mailAlternateAddress: denverj@alias.host.net +userPassword: libcrypt_format + diff --git a/mail-mta/qmail-ldap/metadata.xml b/mail-mta/qmail-ldap/metadata.xml new file mode 100644 index 000000000000..1186ed7cef3d --- /dev/null +++ b/mail-mta/qmail-ldap/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>net-mail@gentoo.org</email> + <name>Net-Mail</name> + </maintainer> + <use> + <flag name="cluster">Enable this if you want to have cluster support in + qmail-ldap</flag> + <flag name="gencertdaily">Generate SSL certificates daily instead of + hourly</flag> + <flag name="highvolume">Prepare qmail for high volume servers</flag> + <flag name="rfc2307">Add support for RFC2307 compliant uid/gid + attributes</flag> + <flag name="rfc822">Add support for RFC822 compliant mail + attributes</flag> + </use> + <upstream> + <remote-id type="sourceforge">qmail-spp</remote-id> + </upstream> +</pkgmetadata> diff --git a/mail-mta/qmail-ldap/qmail-ldap-1.03-r8.ebuild b/mail-mta/qmail-ldap/qmail-ldap-1.03-r8.ebuild new file mode 100644 index 000000000000..a9126133a775 --- /dev/null +++ b/mail-mta/qmail-ldap/qmail-ldap-1.03-r8.ebuild @@ -0,0 +1,225 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +GENQMAIL_PV=20080406 +QMAIL_SPP_PV=0.42 + +QMAIL_LDAP_PV=20060201 +QMAIL_LDAP_F=${P}-${QMAIL_LDAP_PV}.patch.gz + +QMAIL_LDAP_SPP_F=${P}-spp-${QMAIL_SPP_PV}.patch + +QMAIL_LDAP_CONTROLS_PV=20060401d +QMAIL_LDAP_CONTROLS_F=${P}-${QMAIL_LDAP_PV}-controls${QMAIL_LDAP_CONTROLS_PV}.patch + +inherit eutils qmail + +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 + https://dev.gentoo.org/~hollow/distfiles/${GENQMAIL_F} + http://www.nrg4u.com/qmail/${QMAIL_LDAP_F} + mirror://gentoo/${QMAIL_LDAP_CONTROLS_F} + mirror://gentoo/${P}-queue-custom-error.patch + !vanilla? ( + qmail-spp? ( + mirror://sourceforge/qmail-spp/${QMAIL_SPP_F} + mirror://gentoo/${QMAIL_LDAP_SPP_F} + ) + ) +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="cluster debug gencertdaily highvolume qmail-spp rfc2307 rfc822 ssl vanilla zlib" +RESTRICT="test" + +DEPEND=" + !mail-mta/qmail + net-nds/openldap + net-mail/queue-repair + ssl? ( dev-libs/openssl ) +" +RDEPEND=" + !mail-mta/courier + !mail-mta/esmtp + !mail-mta/exim + !mail-mta/mini-qmail + !mail-mta/msmtp + !mail-mta/netqmail + !mail-mta/nullmailer + !mail-mta/postfix + !mail-mta/sendmail + !mail-mta/opensmtpd + !mail-mta/ssmtp + >=sys-apps/ucspi-tcp-0.88-r17 + ssl? ( >=sys-apps/ucspi-ssl-0.70-r1 ) + virtual/daemontools + >=net-mail/dot-forward-0.71-r3 + ${DEPEND} +" + +S="${WORKDIR}"/qmail-${PV} + +pkg_setup() { + if [[ -n "${QMAIL_PATCH_DIR}" ]]; then + eerror + eerror "The QMAIL_PATCH_DIR variable for custom patches" + eerror "has been removed from ${PN}. If you need custom patches" + eerror "you should create a copy of this ebuild in an overlay." + eerror + die "QMAIL_PATCH_DIR is not supported anymore" + fi + + qmail_create_users +} + +src_unpack() { + genqmail_src_unpack + use qmail-spp && qmail_spp_src_unpack + + unpack qmail-${PV}.tar.gz + + cd "${S}" + + # main ldap patch + # includes: netqmail-1.05, EXTTODO, BIGTODO, TLS/SMTPAUTH, 0.0.0.0 fix + epatch "${DISTDIR}"/${QMAIL_LDAP_F} + + # QmailLDAP/Controls patch + # includes: RFC2307/822 fixes + epatch "${DISTDIR}"/${QMAIL_LDAP_CONTROLS_F} + epatch "${FILESDIR}"/${PV}-warnings.patch + + # fix libraries for controls patch + sed -i -e 's|NEWLDAPPROGLIBS=.*|& str.a|' Makefile + + ht_fix_file Makefile* + + if ! use vanilla; then + # Add custom bounce messages to qmail-queue + epatch "${DISTDIR}"/${P}-queue-custom-error.patch + + # qmail-spp patch + use qmail-spp && epatch "${DISTDIR}"/${QMAIL_LDAP_SPP_F} + fi + + # makefile options + local INCLUDES="-I/usr/include" + local LDAPLIBS="-L/usr/lib -lldap -llber" + local LDAPFLAGS="-DALTQUEUE -DEXTERNAL_TODO -DDASH_EXT -DSMTPEXECCHECK" + local CONTROLDB="-DUSE_CONTROLDB -DQLDAP_BAILOUT" + local SECUREBIND= RFCFLAGS= + + use cluster && LDAPFLAGS="${LDAPFLAGS} -DQLDAP_CLUSTER" + use highvolume && LDAPFLAGS="${LDAPFLAGS} -DBIGTODO" + use zlib && LDAPFLAGS="${LDAPFLAGS} -DDATA_COMPRESS -D QMQP_COMPRESS" + + use rfc2307 && RFCFLAGS="${RFCFLAGS} -DUSE_RFC2307" + use rfc822 && RFCFLAGS="${RFCFLAGS} -DUSE_RFC822" + + use ssl && SECUREBIND="-DSECUREBIND_TLS -DSECUREBIND_SSL" + + # a lot of sed magic to get Makefile right + local EXP= + + EXP="${EXP} s|^#LDAPINCLUDES=.*|LDAPINCLUDES=${INCLUDES}|;" + EXP="${EXP} s|^#LDAPLIBS=.*|LDAPLIBS=${LDAPLIBS}|;" + EXP="${EXP} s|^#LDAPFLAGS=.*|LDAPFLAGS=${LDAPFLAGS}|;" + + EXP="${EXP} s|^#CONTROLDB=.*|CONTROLDB=${CONTROLDB}|;" + EXP="${EXP} s|^#RFCFLAGS=.*|RFCFLAGS=${RFCFLAGS}|;" + EXP="${EXP} s|^#SECUREBIND=.*|SECUREBIND=${SECUREBIND}|;" + + # TODO: do we even need this with LDAP? + EXP="${EXP} s|^#SHADOWLIBS=.*|SHADOWLIBS=-lcrypt|;" + + # automagic maildir creation + EXP="${EXP} s|^#\(MDIRMAKE=.*\)|\1|;" + EXP="${EXP} s|^#\(HDIRMAKE=.*\)|\1|;" + + use debug && EXP="${EXP} s|^#\(DEBUG=.*\)|\1|;" + use zlib && EXP="${EXP} s|^#ZLIB=.*|ZLIB=-lz|;" + + if use ssl; then + EXP="${EXP} s|^#\(TLS=.*\)|\1|;" + EXP="${EXP} s|^#TLSINCLUDES=.*|TLSINCLUDES=${INCLUDES}|;" + EXP="${EXP} s|^#TLSLIBS=.*|TLSLIBS=-L/usr/lib -lssl -lcrypto|;" + EXP="${EXP} s|^#OPENSSLBIN=.*|OPENSSLBIN=/usr/bin/openssl|;" + fi + + qmail_src_postunpack + + sed -i -e "${EXP}" Makefile || die "could not patch Makefile" +} + +src_compile() { + qmail_src_compile ldap + use qmail-spp && qmail_spp_src_compile +} + +qmail_full_install_hook() { + insinto ${QMAIL_HOME}/bin + insopts -o root -g qmail -m 0755 + doins auth_smtp condwrite digest dirmaker pbs{add,check,dbd} \ + qmail-{forward,group,quotawarn,reply,secretary,verify} + + insopts -o root -g root -m 0750 + doins qmail-ldaplookup + + insopts -o root -g qmail -m 0711 + doins qmail-todo + + insopts -o root -g qmail -m 0700 + doins auth_{imap,pop} qmail-cdb +} + +qmail_man_install_hook() { + dodoc EXTTODO POPBEFORESMTP QLDAP* "${FILESDIR}"/samples.ldif +} + +qmail_config_install_hook() { + einfo "Installing OpenLDAP schema" + insinto /etc/openldap/schema + doins qmail.schema qmail-ldap-control/qmailControl.schema +} + +src_install() { + qmail_src_install +} + +pkg_postinst() { + qmail_queue_setup + qmail_rootmail_fixup + qmail_tcprules_build + + qmail_config_notice + qmail_supervise_config_notice + 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 /usr/share/doc/${PF}/" + elog +} + +pkg_preinst() { + qmail_tcprules_fixup +} + +pkg_config() { + # avoid some weird locale problems + export LC_ALL=C + + qmail_config_fast + qmail_tcprules_config + qmail_tcprules_build + + use ssl && qmail_ssl_generate +} |