diff options
author | Tim Harder <radhermit@gentoo.org> | 2013-09-05 23:10:16 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2013-09-05 23:10:16 +0000 |
commit | da0207f10ddb57a0eda52ae89fee78f28ee0ed5d (patch) | |
tree | 962975e9636727837d16708cdaf47a7beb4e9128 /dev-libs | |
parent | Automated update. (diff) | |
download | historical-da0207f10ddb57a0eda52ae89fee78f28ee0ed5d.tar.gz historical-da0207f10ddb57a0eda52ae89fee78f28ee0ed5d.tar.bz2 historical-da0207f10ddb57a0eda52ae89fee78f28ee0ed5d.zip |
Remove old.
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/cyrus-sasl/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/cyrus-sasl/Manifest | 31 | ||||
-rw-r--r-- | dev-libs/cyrus-sasl/cyrus-sasl-2.1.23-r6.ebuild | 252 | ||||
-rw-r--r-- | dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r4.ebuild | 229 | ||||
-rw-r--r-- | dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r1.ebuild | 223 | ||||
-rw-r--r-- | dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r2.ebuild | 229 |
6 files changed, 16 insertions, 955 deletions
diff --git a/dev-libs/cyrus-sasl/ChangeLog b/dev-libs/cyrus-sasl/ChangeLog index bf3417993b90..f16ea7ca0dc1 100644 --- a/dev-libs/cyrus-sasl/ChangeLog +++ b/dev-libs/cyrus-sasl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/cyrus-sasl # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog,v 1.294 2013/08/06 12:36:08 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/ChangeLog,v 1.295 2013/09/05 23:10:12 radhermit Exp $ + + 05 Sep 2013; Tim Harder <radhermit@gentoo.org> -cyrus-sasl-2.1.23-r6.ebuild, + -cyrus-sasl-2.1.25-r4.ebuild, -cyrus-sasl-2.1.26-r1.ebuild, + -cyrus-sasl-2.1.26-r2.ebuild: + Remove old. 06 Aug 2013; Agostino Sarubbo <ago@gentoo.org> cyrus-sasl-2.1.23-r7.ebuild, cyrus-sasl-2.1.26-r3.ebuild: diff --git a/dev-libs/cyrus-sasl/Manifest b/dev-libs/cyrus-sasl/Manifest index 39c161dc6751..e803ae2669f7 100644 --- a/dev-libs/cyrus-sasl/Manifest +++ b/dev-libs/cyrus-sasl/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 AUX cyrus-sasl-0001_versioned_symbols.patch 914 SHA256 d64669070f4d19d884eaeb7d2b3b66987a714c2dda462bbbc4bcf452b705c3e0 SHA512 83329417818f1a33fb013090024e15786dadfc0fc865e2c6f09addbf8ba51519f171f8d583cd558b2ec98c2ece112a5427f8a6b02b74246cc948fe196a38681c WHIRLPOOL acb76440be9cbbb671d686080ec9478c70773c7a84526f2f1ea8bf4b994b51bb8c32830ba12c4e8c8dcfc973e17a00b847e7f67c39f639c1b1ad825612c989bc AUX cyrus-sasl-0002_testsuite.patch 1055 SHA256 d7fff57482c2a9b148296ec680327d0cbd5254ed0a0bc99f46e2dc73758a6abc SHA512 a7ea09cfb76b4c99ca8b1316c547e6168108e11495368453fbc4e4842306727c2e1aafe9d959d195d6eb5262b5e1f91668fc7ac1d24dc6b15149ae162288994e WHIRLPOOL 5b71f60005aeeea61ad403f8a7c8c8379348f22a16780a2ef35fb092ed265191638e859c9faf576e7e06dafe8357960db0b8ba8ff8d8a940731eb8de41f81a2e @@ -52,30 +52,19 @@ AUX saslauthd2.rc6 525 SHA256 329fb67382e307ab6d37aa789667b04a91ba3f69e9c1023b09 AUX saslauthd2.rc7 524 SHA256 a095def10c3b7e6894a6d782c70cbe176c7b53f36386dcc4b1e5bc75424e29f0 SHA512 7d677bf482bb675fe1f31960fd1c0ae9f11c699a81ba16ee6bb427264ff38dd2216f72faf2ffa8015095ab92fb1c8abf7fd1d4530a4421c7e11f89ff0618643a WHIRLPOOL c91661649dc4c411e36c49576fa87ac327466f5344656bb4e964c96585dcd34431ed92b5d69dc8baa64ee700a57e4d6fe31b64a7b08f39d399d76ca1d9ee2f79 DIST cyrus-sasl-2.1.23-ntlm_impl-spnego.patch.gz 7462 SHA256 9514a7436b11184cfd7e8a9ccd3590ce9f89cf2dc272ffbbdeeab16f9ae4fe6f SHA512 a0a00d78019a5bce1456aebb7a8f9c740f9c0f8340916e977249f1b766f503e8e33ab81cbc6e0cdafe4a8c806e5631395431107ff578f75cb89fc9cca1a57fca WHIRLPOOL aac154414f6ae4aa7db9e4eed8dc698c16a0aefdb2b7fe3aa34be5d24aa1b07d04f8f6aa0300f8365911d10e5552b6b978757f951a75af958745b8a5f547ea9f DIST cyrus-sasl-2.1.23.tar.gz 1613642 SHA256 20efcc4040cbab6e89a636a07dcf5720ee07b5c62359a4e7bf2500ef6020b136 SHA512 bf72db55fefe9eccfe4a12caf1160efc80aba98f8acc2743af360fda96659a3ee1fc3a5af6104b3dfc8fc4571f4e98526b9719a6cdf0948980cf76a9cb1a2b0e WHIRLPOOL 36e0b85228105186160ac8f8751137a067bca0cf6e219dda527808cb04ae597273c97b9d8cd3c1e3b900787a70ad67e5395127ab5107ef0e8ac0100b04612673 -DIST cyrus-sasl-2.1.25.tar.gz 5209240 SHA256 418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe SHA512 cab89deb025cb29b316990f29e7456be4fd1303553032df35c50331e5608c27ade16fd9b48578a294153493a12cd82af1db2f8a2ce7e385b03a9ebfc82085289 WHIRLPOOL eef119539e5c71af9c3505956ca20a8ae12e58f1d91e2c0fcc5af7679cda9e4f0d44beb3d45f03e24d604ff1b9f4b9850ed494c41a4c7a237b22f4b91e3fa79c DIST cyrus-sasl-2.1.26.tar.gz 5220231 SHA256 8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3 SHA512 78819cb9bb38bea4537d6770d309deeeef09ff44a67526177609d3e1257ff4334d2b5e5131d5a1e4dea7430d8db1918ea9d171f0dee38b5e8337f4b72ed068f0 WHIRLPOOL bcba17705d5d7ef9a03802d6a0c3a887bba0473605a3a48d2672aeac187193f2488f28ab01bdf659d7a68b94b4c74e36428ca4b5be840fbed2968f1592534b33 -EBUILD cyrus-sasl-2.1.23-r6.ebuild 8954 SHA256 18ab7153c4303c16c995007406fe99a997e80fda0dd89a5821eff3ae4e0a435b SHA512 a0583520a67d0abf2a5d74340765933f4a2e999c0e69204a3b79666099d3c29d3338d82f6f6caa3d521ec44eea2647809cd083513aed435e671cfa3f9f579ae7 WHIRLPOOL 35640bc5a5d027fb6c16f0e7a07221aea6aad07b2fbb0100e5627b036ddf25fcd7dee43243239dd8a5e4b3266d27118eac381df69ccb7aac74c66d00a068d58f EBUILD cyrus-sasl-2.1.23-r7.ebuild 9001 SHA256 0a72df720dd7450c4cec523338a91e7787f7d27e8dae2b2faf7b2425373dd0c5 SHA512 6ddeb8986fc82a212aca18d7240a3e56e8851215a3bdc881c27b2c7d326ac9d59d6f0c7ab47f3194680631b045e6556e385f451d3ca52baa7a8b7092d59fb3eb WHIRLPOOL abf06239c823a9a085105003e78cd6e1cdfa915f2808c773d25e8dc2e6bcf2790d31bc2fcb3c93f8bc20cc56f491e18e4db8411e617313d1a73c766f64343c5f -EBUILD cyrus-sasl-2.1.25-r4.ebuild 6998 SHA256 b386a1bb54a29e9846698cc3c2face8386ac8e59719f16fde3b0159e9554b277 SHA512 82b02fead6c6cfc2ad0587d2618f675a2e41e2d8ee2ea6c6a4134ddf4ed672c555160150295402fcd361fea6b3761a7a8e005be38f4fc301f865066de0b599d3 WHIRLPOOL 795ad6fa7d834c7cad8bdc8afcdfd06524eef428e0043316d7191eb9fc2747c8c8c875a03ad2bcb8e1c3c49e5739296566654dd213eda9beba4f0a0bf7b1abb0 -EBUILD cyrus-sasl-2.1.26-r1.ebuild 6823 SHA256 71e833686273bbcf8c0506ec7bb1c06e15620b97163f2c50e0e1ffdbd655254f SHA512 34f4a0e2067c88715758a742dd136d090c9635d0bb8049d8c270912d0b52f3d52e4f39e6770032148b9299ad3dcdebe85a427a0d8d59706f2bd34cf565e92935 WHIRLPOOL e14e86567c56994efcd26d5375ec68c5c54149d11a4cf1139e25559a4ead6177d268cc754974134bf4f60faae770c1208f262a3158abd2d3f3a87241f79914bc -EBUILD cyrus-sasl-2.1.26-r2.ebuild 7063 SHA256 a3d9c875b6301fd57edea782e358e691fd1bf2595410cb30d63e4365aaf03d92 SHA512 9ed5c7ae3b732c4046a2a21bda9dd0e2515a88a8ee8757a047babe879cc957100b70f20078bf9f1f82763e31c10402b92b1752eb027043b900e4b715c2a3ff27 WHIRLPOOL 2c3f4f2132cad6a44f4b6f73c02c568512df545df5a1da82e195c34bbd47e01de8737d78ad2675e662446a195d1faf3c7b9e8a2d9e81a889499ed9ecea4dd364 EBUILD cyrus-sasl-2.1.26-r3.ebuild 7244 SHA256 f4d4a688a48092cd723490c1064d6f45d47300b615ba18019552a198f05cbfd7 SHA512 e6b2149ac6f78886a9e6f97e9bd8d13b18d79ab7b07a2fa05933d9b6a172fe6ecaad5e3ba837f84e310a2ed45c52cf659f923184b400f4232480fec9c1e27dac WHIRLPOOL 60a34f2bc44da24cd136835eef4009328449074a2f7ec90ce2bcc54f49640fd31662b033d84ba4bb56c8a65105fab32b77c8f102f04fe7c6b2ca317e78419e90 -MISC ChangeLog 48127 SHA256 adc0de4145eb173b35d71b63f325d2d4a5540c8052c6064eb63f23731dca9075 SHA512 043de1d37aefeabf54fe6cefd6341deb7c8c4080df3942805016170e7fc9a07ac7f0a0942966fbde6f2addf867456a9325be44bb6afb9f6452afa6bbeb83e66e WHIRLPOOL b2e34fb860421ccfee15d861605325ce1d8024f832d195dba2fd4b54a937f97d1245d7aabd1b3982b399b403344c162372c1b8c64fd1f5a580e0a4f1a7731e44 +MISC ChangeLog 48321 SHA256 ff87b2be755d75345091afc7f71c961cf7b7ca331203ab187a66bfe7aab5ccd9 SHA512 09d80418d5a385705bdc2383b088767ad51318385ff2531fb6593c12a59631facf9903b9a2eaad6eb57b77f31277fd917aec4407d6cfc3ef245f67d7288b0b4a WHIRLPOOL eea0193bfce4e5df09746c714e7f6b65b1c9523a4d12ab78d391e866c1225db1161705ed1c3c6cb3590a4c90f4f8234b7edd70acfeb5205496fa9fb541f9196a MISC metadata.xml 727 SHA256 6b9f368b484972e833084dba4aedf70c09767b816b57cb43a7c0945b8b11b497 SHA512 8b6c6556dd9adff73a6f0bc40fd8064cae8ce8b45734ab0a30b7611be9f226144403fa0dbcf6d3965bd03e12b7c36848c91937bd8133a5581bd296d741a013c7 WHIRLPOOL 5e24419ac72d0ef8591de06c7ab4d95435234e8d894ee31b2015e6465d15a777919c714aae4e3293e194ccfcb505cf0d77f2565959d5e9ecf41c1cbb7b9ff1c5 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.20 (GNU/Linux) +Version: GnuPG v2.0.21 (GNU/Linux) -iQIcBAEBCgAGBQJSAOz4AAoJELp701BxlEWfedwQALVybNpMVcoAIw2s2Cx4mOlw -9VoN5LL1UIUpUqKhWMt2dHzGEs67aIW4CFKU2sPlYto7ERvzVCaNZbWYqt4BCcOe -rtTmJ5KS6Q73AZMxovcFmp26OH1Mv7YxwoiU8+QMTkvf34NGhSmqwOLoLnnPV2Tp -eGlAPgi41+vO4bGiDPLzH/OqadjBPMeLhcSfrRzTxluOgy+/1HftFL6Eew5K+vm7 -LlE7Uoqiy4U1YVuiQf8/Wt0EEFJU8ULIcgg9+gi5u0altbpnWuiDL8V0cau1ocxc -3RQ+hnDduGlaIooN69dhR4FwTb0SGpXAyRDrDr5WHoWrGKTn/kXxvelGrkWoG8l/ -38BeZZ9J7149cIcAXz8wRkGC6adaTuBmoUQa7Y4CSKHkZH+tUMQO4DX2dNZwomZl -8yBQdRD+F73M9BElJB2FKw/2ELEMYoqha6Zn46BrX8SlbOG48hMZUF5uuMGmeHS6 -rrFt2G+Cn3Hxd2ScD2QIRMygm2pjzSsyfOj1mKjEeYOQur41Md7YVeaGcbtaQ+/W -/pNigOdskAS0380IeQ6IHsKqq/lPxEVNCGyikoFggG+/k+lcSCEr+w7NyEaIsRAn -TnWVeeUoDZGzO7zitN07mC3uOb2aYAAxT5swMx0eEI04VceXOp06Er8BX/gP6dOL -bxjOpBoCEH6WxHppWNrP -=4wu9 +iQEcBAEBCAAGBQJSKQ9XAAoJEEqz6FtPBkyjQKUH+gP5KEhJXBVaExIujImyXknE +EEjyIsf1CnW/SQ0VLCW77j6l6PARC4V37bF2v9rJwWfZ2hw3MZvXtvUhFxjPXdYp +SiO+rxlhykr+6mOOJ3BoX5YZcXjRSDwcUCK/YEGM/vP13dwGr1+e6MZJWTTcAd+9 +IAjID9BPGEHUNEEC9c90ULQEXL/ivYrFuupoZ9NspBivhTJVmDfasRkDpRMs+mGQ +7E+Fywm7mUxIxWGqVDkGgfPkm8IkAsJpcV9g9obMySO5AN2gFM7xKsEyPQjp5P/e +HiCqMIn+c+hR/4fH7jBZW2ZlOxyvZkpZ62870M0bnoUsI4Kwf8faHdv39MArgcE= +=qmfA -----END PGP SIGNATURE----- diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.23-r6.ebuild b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.23-r6.ebuild deleted file mode 100644 index 392c19269e04..000000000000 --- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.23-r6.ebuild +++ /dev/null @@ -1,252 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.23-r6.ebuild,v 1.10 2012/12/21 13:27:37 eras Exp $ - -EAPI=2 - -inherit eutils flag-o-matic multilib autotools pam java-pkg-opt-2 db-use - -ntlm_patch="${P}-ntlm_impl-spnego.patch.gz" -SASLAUTHD_CONF_VER="2.1.21" - -DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)." -HOMEPAGE="http://asg.web.cmu.edu/sasl/" -SRC_URI="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${P}.tar.gz - ntlm_unsupported_patch? ( mirror://gentoo/${ntlm_patch} )" - -LICENSE="BSD-with-attribution" -SLOT="2" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" -IUSE="authdaemond berkdb crypt gdbm kerberos openldap mysql ntlm_unsupported_patch pam postgres sample srp ssl urandom" - -DEPEND="authdaemond? ( || ( >=net-mail/courier-imap-3.0.7 >=mail-mta/courier-0.46 ) ) - berkdb? ( >=sys-libs/db-3.2 ) - gdbm? ( >=sys-libs/gdbm-1.8.0 ) - kerberos? ( virtual/krb5 ) - openldap? ( >=net-nds/openldap-2.0.25 ) - mysql? ( virtual/mysql ) - ntlm_unsupported_patch? ( >=net-fs/samba-3.0.9 ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - ssl? ( >=dev-libs/openssl-0.9.6d ) - java? ( >=virtual/jdk-1.4 )" -RDEPEND="${DEPEND}" - -pkg_setup() { - if use gdbm && use berkdb ; then - echo - elog "You have both 'gdbm' and 'berkdb' USE flags enabled." - elog "gdbm will be selected." - echo - fi - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - # Fix default port name for rimap auth mechanism. - sed -e '/define DEFAULT_REMOTE_SERVICE/s:imap:imap2:' \ - -i saslauthd/auth_rimap.c || die "sed failed" - - # UNSUPPORTED ntlm patch #81342 - use ntlm_unsupported_patch && epatch "${DISTDIR}/${ntlm_patch}" - epatch "${FILESDIR}"/${PN}-2.1.17-pgsql-include.patch - use crypt && epatch "${FILESDIR}"/${PN}-2.1.19-checkpw.c.patch #45181 - epatch "${FILESDIR}"/${PN}-2.1.22-as-needed.patch - epatch "${FILESDIR}/${PN}-2.1.21-keytab.patch" - epatch "${FILESDIR}"/${PN}-2.1.22-crypt.patch #152544 - epatch "${FILESDIR}"/${PN}-2.1.22-qa.patch - epatch "${FILESDIR}/${PN}-2.1.22-gcc44.patch" #248738 - epatch "${FILESDIR}"/${P}-authd-fix.patch - epatch "${FILESDIR}"/${P}+db-5.0.patch - epatch "${FILESDIR}/${PN}-0001_versioned_symbols.patch" - epatch "${FILESDIR}/${PN}-0002_testsuite.patch" - epatch "${FILESDIR}/${PN}-0006_library_mutexes.patch" - epatch "${FILESDIR}/${PN}-0008_one_time_sasl_set_alloc.patch" - epatch "${FILESDIR}/${PN}-0010_maintainer_mode.patch" - epatch "${FILESDIR}/${PN}-0011_saslauthd_ac_prog_libtool.patch" - epatch "${FILESDIR}/${PN}-0012_xopen_crypt_prototype.patch" - epatch "${FILESDIR}/${PN}-0014_avoid_pic_overwrite.patch" - epatch "${FILESDIR}/${PN}-0016_pid_file_lock_creation_mask.patch" - epatch "${FILESDIR}/${PN}-0026_drop_krb5support_dependency.patch" - epatch "${FILESDIR}"/${P}-rimap-loop.patch #381427 - epatch "${FILESDIR}"/${P}-gss_c_nt_hostbased_service.patch #389349 - - sed -i -e '/for dbname in/s:db-4.* db:'$(db_libname)':' \ - "${S}"/cmulocal/berkdb.m4 - - # Upstream doesn't even honor their own configure options... grumble - sed -i '/^sasldir =/s:=.*:= $(plugindir):' \ - "${S}"/plugins/Makefile.{am,in} || die "sed failed" - - # make sure to use common plugin ldflags - sed -i '/_la_LDFLAGS = /s:=:= $(AM_LDFLAGS) :' plugins/Makefile.am || die - - # Recreate configure. - rm -f "${S}/config/libtool.m4" || die "rm libtool.m4 failed" - AT_M4DIR="${S}/cmulocal ${S}/config" eautoreconf -} - -src_configure() { - # Fix QA issues. - append-flags -fno-strict-aliasing - append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED - - # Java support. - use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" - - local myconf - - # Add authdaemond support (bug #56523). - if use authdaemond ; then - myconf="${myconf} --with-authdaemond=/var/lib/courier/authdaemon/socket" - fi - - # Fix for bug #59634. - if ! use ssl ; then - myconf="${myconf} --without-des" - fi - - if use mysql || use postgres ; then - myconf="${myconf} --enable-sql" - else - myconf="${myconf} --disable-sql" - fi - - # Default to GDBM if both 'gdbm' and 'berkdb' are present. - if use gdbm ; then - einfo "Building with GNU DB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=gdbm" - elif use berkdb ; then - einfo "Building with BerkeleyDB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=berkeley --with-bdb-incdir=$(db_includedir)" - else - einfo "Building without SASLdb support" - myconf="${myconf} --with-dblib=none" - fi - - # Use /dev/urandom instead of /dev/random (bug #46038). - use urandom && myconf="${myconf} --with-devrandom=/dev/urandom" - - econf \ - --enable-login \ - --enable-ntlm \ - --enable-auth-sasldb \ - --disable-krb4 \ - --disable-otp \ - --without-sqlite \ - --with-saslauthd=/var/lib/sasl2 \ - --with-pwcheck=/var/lib/sasl2 \ - --with-configdir=/etc/sasl2 \ - --with-plugindir=/usr/$(get_libdir)/sasl2 \ - --with-dbpath=/etc/sasl2/sasldb2 \ - $(use_with ssl openssl) \ - $(use_with pam) \ - $(use_with openldap ldap) \ - $(use_enable openldap ldapdb) \ - $(use_enable sample) \ - $(use_enable kerberos gssapi) \ - $(use_enable java) \ - $(use_with java javahome ${JAVA_HOME}) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_enable srp) \ - ${myconf} -} - -src_compile() { - # We force -j1 for bug #110066. - emake -j1 || die "emake failed" - - # Default location for java classes breaks OpenOffice (bug #60769). - # Thanks to axxo@gentoo.org for the solution. - cd "${S}" - if use java ; then - jar -cvf ${PN}.jar -C java $(find java -name "*.class") - fi - - # Add testsaslauthd (bug #58768). - cd "${S}/saslauthd" - emake testsaslauthd || die "emake testsaslauthd failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - keepdir /var/lib/sasl2 /etc/sasl2 - - # Install everything necessary so users can build sample - # client/server (bug #64733). - if use sample ; then - insinto /usr/share/${PN}-2/examples - doins aclocal.m4 config.h config.status configure.in - dosym /usr/include/sasl /usr/share/${PN}-2/examples/include - exeinto /usr/share/${PN}-2/examples - doexe libtool - insinto /usr/share/${PN}-2/examples/sample - doins sample/*.{c,h} sample/*Makefile* - insinto /usr/share/${PN}-2/examples/sample/.deps - doins sample/.deps/* - dodir /usr/share/${PN}-2/examples/lib - dosym /usr/$(get_libdir)/libsasl2.la /usr/share/${PN}-2/examples/lib/libsasl2.la - dodir /usr/share/${PN}-2/examples/lib/.libs - dosym /usr/$(get_libdir)/libsasl2.so /usr/share/${PN}-2/examples/lib/.libs/libsasl2.so - fi - - # Default location for java classes breaks OpenOffice (bug #60769). - if use java ; then - java-pkg_dojar ${PN}.jar - java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so" - # hackish, don't wanna dig through makefile - rm -Rf "${D}/usr/$(get_libdir)/java" - docinto "java" - dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/* - dodir "/usr/share/doc/${PF}/java/Test" - insinto "/usr/share/doc/${PF}/java/Test" - doins "${S}"/java/Test/*.java || die "Failed to copy java files to /usr/share/doc/${PF}/java/Test" - fi - - docinto "" - dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt - newdoc pwcheck/README README.pwcheck - dohtml doc/*.html - - docinto "saslauthd" - dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README} - - newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd || die "Failed to install saslauthd to /etc/pam.d" - - newinitd "${FILESDIR}/pwcheck.rc6" pwcheck || die "Failed to install pwcheck to /etc/init.d" - - newinitd "${FILESDIR}/saslauthd2.rc6" saslauthd || die "Failed to install saslauthd to /etc/init.d" - newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd || die "Failed to install saslauthd to /etc/conf.d" - - exeinto /usr/sbin - newexe "${S}/saslauthd/testsaslauthd" testsaslauthd || die "Failed to install testsaslauthd" -} - -pkg_postinst () { - # Generate an empty sasldb2 with correct permissions. - if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then - einfo "Generating an empty sasldb2 with correct permissions ..." - echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \ - || die "Failed to generate sasldb2" - "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \ - || die "Failed to delete temp user" - chown root:mail "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chown ${ROOT}/etc/sasl2/sasldb2" - chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2" - fi - - if use sample ; then - elog "You have chosen to install sources for the example client and server." - elog "To build these, please type:" - elog "\tcd /usr/share/${PN}-2/examples/sample && make" - fi - - if use authdaemond ; then - elog "You need to add a user running a service using Courier's" - elog "authdaemon to the 'mail' group. For example, do:" - elog " gpasswd -a postfix mail" - elog "to add the 'postfix' user to the 'mail' group." - fi -} diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r4.ebuild b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r4.ebuild deleted file mode 100644 index d3d479904b8e..000000000000 --- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r4.ebuild +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.25-r4.ebuild,v 1.15 2013/04/24 08:48:34 eras Exp $ - -EAPI=4 - -# should be fixed in automake-1.13.2(?). Please test and remove if appropriate. -# See automake bug #13514 -WANT_AUTOMAKE="1.12" - -inherit eutils flag-o-matic multilib autotools pam java-pkg-opt-2 db-use - -SASLAUTHD_CONF_VER="2.1.21" - -DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)." -HOMEPAGE="http://cyrusimap.web.cmu.edu/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="2" -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres sample sqlite -srp ssl static-libs urandom" - -DEPEND="net-mail/mailbase - authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) ) - berkdb? ( >=sys-libs/db-3.2 ) - gdbm? ( >=sys-libs/gdbm-1.8.0 ) - kerberos? ( virtual/krb5 ) - openldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( dev-libs/openssl ) - java? ( >=virtual/jdk-1.4 )" -RDEPEND="${DEPEND}" - -pkg_setup() { - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${P}-sasldb_al.patch - epatch "${FILESDIR}"/${P}-saslauthd_libtool.patch - epatch "${FILESDIR}"/${P}-avoid_pic_overwrite.patch - epatch "${FILESDIR}"/${P}-autotools_fixes.patch - epatch "${FILESDIR}"/${P}-as_needed.patch - epatch "${FILESDIR}"/${P}-missing_header.patch - epatch "${FILESDIR}"/${P}-gssapi.patch - epatch "${FILESDIR}"/${P}-lib_before_plugin.patch - epatch "${FILESDIR}"/${P}-fix_heimdal.patch - epatch "${FILESDIR}"/${P}-auxprop.patch - epatch "${FILESDIR}"/${PN}-2.1.23-gss_c_nt_hostbased_service.patch - epatch "${FILESDIR}"/${PN}-2.1.23+db-5.0.patch - epatch "${FILESDIR}"/${P}-get_fqhostname.patch - epatch "${FILESDIR}"/${P}-service_keytabs.patch - - # Get rid of the -R switch (runpath_switch for Sun) - # >=gcc-4.6 errors out with unknown option - sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' configure.in - - # Use plugindir for sasldir - sed -i '/^sasldir =/s:=.*:= $(plugindir):' \ - "${S}"/plugins/Makefile.{am,in} || die "sed failed" - - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \ - configure.in || die - - AT_M4DIR="${S}/cmulocal ${S}/config" eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED - - # Java support. - use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" - - local myconf - - # Add authdaemond support (bug #56523). - if use authdaemond ; then - myconf="${myconf} --with-authdaemond=/var/lib/courier/authdaemon/socket" - fi - - # Fix for bug #59634. - if ! use ssl ; then - myconf="${myconf} --without-des" - fi - - if use mysql || use postgres || use sqlite ; then - myconf="${myconf} --enable-sql" - else - myconf="${myconf} --disable-sql" - fi - - # Default to GDBM if both 'gdbm' and 'berkdb' are present. - if use gdbm ; then - einfo "Building with GNU DB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=gdbm" - elif use berkdb ; then - einfo "Building with BerkeleyDB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=berkeley --with-bdb-incdir=$(db_includedir)" - else - einfo "Building without SASLdb support" - myconf="${myconf} --with-dblib=none" - fi - - # Use /dev/urandom instead of /dev/random (bug #46038). - if use urandom ; then - myconf="${myconf} --with-devrandom=/dev/urandom" - fi - - econf \ - --enable-login \ - --enable-ntlm \ - --enable-auth-sasldb \ - --disable-cmulocal \ - --disable-krb4 \ - --enable-otp \ - --without-sqlite \ - --with-saslauthd=/var/lib/sasl2 \ - --with-pwcheck=/var/lib/sasl2 \ - --with-configdir=/etc/sasl2 \ - --with-plugindir=/usr/$(get_libdir)/sasl2 \ - --with-dbpath=/etc/sasl2/sasldb2 \ - $(use_with ssl openssl) \ - $(use_with pam) \ - $(use_with openldap ldap) \ - $(use_enable ldapdb) \ - $(use_enable sample) \ - $(use_enable kerberos gssapi) \ - $(use_enable java) \ - $(use_with java javahome ${JAVA_HOME}) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with sqlite sqlite3 /usr/$(get_libdir)) \ - $(use_enable srp) \ - $(use_enable static-libs static) \ - ${myconf} -} - -src_compile() { - emake - - # Default location for java classes breaks OpenOffice (bug #60769). - # Thanks to axxo@gentoo.org for the solution. - cd "${S}" - if use java ; then - jar -cvf ${PN}.jar -C java $(find java -name "*.class") - fi - - # Add testsaslauthd (bug #58768). - cd "${S}/saslauthd" - emake testsaslauthd -} - -src_install() { - emake DESTDIR="${D}" install - keepdir /var/lib/sasl2 /etc/sasl2 - - if use sample ; then - docinto sample - dodoc sample/*.c - exeinto /usr/share/doc/${P}/sample - doexe sample/client sample/server - fi - - # Default location for java classes breaks OpenOffice (bug #60769). - if use java ; then - java-pkg_dojar ${PN}.jar - java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so" - # hackish, don't wanna dig through makefile - rm -Rf "${D}/usr/$(get_libdir)/java" - docinto "java" - dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/* - dodir "/usr/share/doc/${PF}/java/Test" - insinto "/usr/share/doc/${PF}/java/Test" - doins "${S}"/java/Test/*.java - fi - - docinto "" - dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt - newdoc pwcheck/README README.pwcheck - dohtml doc/*.html - - docinto "saslauthd" - dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README} - - newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd - - newinitd "${FILESDIR}/pwcheck.rc6" pwcheck - - newinitd "${FILESDIR}/saslauthd2.rc6" saslauthd - newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd - - newsbin "${S}/saslauthd/testsaslauthd" testsaslauthd - - use static-libs || find "${D}"/usr/lib*/sasl2 -name 'lib*.la' -delete -} - -pkg_preinst() { - preserve_old_lib /usr/$(get_libdir)/libsasl2.so.2.0.23 -} - -pkg_postinst () { - # Generate an empty sasldb2 with correct permissions. - if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then - einfo "Generating an empty sasldb2 with correct permissions ..." - echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \ - || die "Failed to generate sasldb2" - "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \ - || die "Failed to delete temp user" - chown root:mail "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chown ${ROOT}/etc/sasl2/sasldb2" - chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2" - fi - - if use authdaemond ; then - elog "You need to add a user running a service using Courier's" - elog "authdaemon to the 'mail' group. For example, do:" - elog " gpasswd -a postfix mail" - elog "to add the 'postfix' user to the 'mail' group." - fi - - preserve_old_lib_notify /usr/$(get_libdir)/libsasl2.so.2.0.23 -} diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r1.ebuild b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r1.ebuild deleted file mode 100644 index b0905815cde1..000000000000 --- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r1.ebuild +++ /dev/null @@ -1,223 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r1.ebuild,v 1.3 2013/04/24 08:48:34 eras Exp $ - -EAPI=5 - -# should be fixed in automake-1.13.2(?). Please test when released. -# See automake bug #13514 -WANT_AUTOMAKE="1.12" - -inherit eutils flag-o-matic multilib autotools pam java-pkg-opt-2 db-use - -SASLAUTHD_CONF_VER="2.1.21" - -DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)." -HOMEPAGE="http://cyrusimap.web.cmu.edu/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres sample sqlite -srp ssl static-libs urandom" - -DEPEND="net-mail/mailbase - authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) ) - berkdb? ( >=sys-libs/db-3.2 ) - gdbm? ( >=sys-libs/gdbm-1.8.0 ) - kerberos? ( virtual/krb5 ) - openldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( dev-libs/openssl ) - java? ( >=virtual/jdk-1.4 )" -RDEPEND="${DEPEND}" - -pkg_setup() { - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-2.1.25-sasldb_al.patch - epatch "${FILESDIR}"/${PN}-2.1.25-saslauthd_libtool.patch - epatch "${FILESDIR}"/${PN}-2.1.25-avoid_pic_overwrite.patch - epatch "${FILESDIR}"/${PN}-2.1.25-autotools_fixes.patch - epatch "${FILESDIR}"/${PN}-2.1.25-as_needed.patch - epatch "${FILESDIR}"/${PN}-2.1.25-missing_header.patch - epatch "${FILESDIR}"/${PN}-2.1.25-fix_heimdal.patch - epatch "${FILESDIR}"/${PN}-2.1.25-auxprop.patch - epatch "${FILESDIR}"/${PN}-2.1.23-gss_c_nt_hostbased_service.patch - epatch "${FILESDIR}"/${PN}-2.1.25-service_keytabs.patch - epatch "${FILESDIR}"/${PN}-2.1.26-missing-size_t.patch - - # Get rid of the -R switch (runpath_switch for Sun) - # >=gcc-4.6 errors out with unknown option - sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \ - configure.in || die - - # Use plugindir for sasldir - sed -i '/^sasldir =/s:=.*:= $(plugindir):' \ - "${S}"/plugins/Makefile.{am,in} || die "sed failed" - - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \ - configure.in || die - - eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED - - # Java support. - use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" - - local myconf - - # Add authdaemond support (bug #56523). - if use authdaemond ; then - myconf="${myconf} --with-authdaemond=/var/lib/courier/authdaemon/socket" - fi - - # Fix for bug #59634. - if ! use ssl ; then - myconf="${myconf} --without-des" - fi - - if use mysql || use postgres || use sqlite ; then - myconf="${myconf} --enable-sql" - else - myconf="${myconf} --disable-sql" - fi - - # Default to GDBM if both 'gdbm' and 'berkdb' are present. - if use gdbm ; then - einfo "Building with GNU DB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=gdbm" - elif use berkdb ; then - einfo "Building with BerkeleyDB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=berkeley --with-bdb-incdir=$(db_includedir)" - else - einfo "Building without SASLdb support" - myconf="${myconf} --with-dblib=none" - fi - - # Use /dev/urandom instead of /dev/random (bug #46038). - if use urandom ; then - myconf="${myconf} --with-devrandom=/dev/urandom" - fi - - econf \ - --enable-login \ - --enable-ntlm \ - --enable-auth-sasldb \ - --disable-cmulocal \ - --disable-krb4 \ - --enable-otp \ - --without-sqlite \ - --with-saslauthd=/var/lib/sasl2 \ - --with-pwcheck=/var/lib/sasl2 \ - --with-configdir=/etc/sasl2 \ - --with-plugindir=/usr/$(get_libdir)/sasl2 \ - --with-dbpath=/etc/sasl2/sasldb2 \ - $(use_with ssl openssl) \ - $(use_with pam) \ - $(use_with openldap ldap) \ - $(use_enable ldapdb) \ - $(use_enable sample) \ - $(use_enable kerberos gssapi) \ - $(use_enable java) \ - $(use_with java javahome ${JAVA_HOME}) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with sqlite sqlite3 /usr/$(get_libdir)) \ - $(use_enable srp) \ - $(use_enable static-libs static) \ - ${myconf} -} - -src_compile() { - emake - - # Default location for java classes breaks OpenOffice (bug #60769). - # Thanks to axxo@gentoo.org for the solution. - cd "${S}" - if use java ; then - jar -cvf ${PN}.jar -C java $(find java -name "*.class") - fi -} - -src_install() { - emake DESTDIR="${D}" install - keepdir /var/lib/sasl2 /etc/sasl2 - - if use sample ; then - docinto sample - dodoc sample/*.c - exeinto /usr/share/doc/${P}/sample - doexe sample/client sample/server - fi - - # Default location for java classes breaks OpenOffice (bug #60769). - if use java ; then - java-pkg_dojar ${PN}.jar - java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so" - # hackish, don't wanna dig through makefile - rm -Rf "${D}/usr/$(get_libdir)/java" - docinto "java" - dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/* - dodir "/usr/share/doc/${PF}/java/Test" - insinto "/usr/share/doc/${PF}/java/Test" - doins "${S}"/java/Test/*.java - fi - - docinto "" - dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt - newdoc pwcheck/README README.pwcheck - dohtml doc/*.html - - docinto "saslauthd" - dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README} - - newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd - - newinitd "${FILESDIR}/pwcheck.rc6" pwcheck - - newinitd "${FILESDIR}/saslauthd2.rc6" saslauthd - newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd - - newsbin "${S}/saslauthd/testsaslauthd" testsaslauthd - - use static-libs || find "${D}"/usr/lib*/sasl2 -name 'lib*.la' -delete -} - -pkg_preinst() { - preserve_old_lib /usr/$(get_libdir)/libsasl2.so.2 -} - -pkg_postinst () { - # Generate an empty sasldb2 with correct permissions. - if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then - einfo "Generating an empty sasldb2 with correct permissions ..." - echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \ - || die "Failed to generate sasldb2" - "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \ - || die "Failed to delete temp user" - chown root:mail "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chown ${ROOT}/etc/sasl2/sasldb2" - chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2" - fi - - if use authdaemond ; then - elog "You need to add a user running a service using Courier's" - elog "authdaemon to the 'mail' group. For example, do:" - elog " gpasswd -a postfix mail" - elog "to add the 'postfix' user to the 'mail' group." - fi - - preserve_old_lib_notify /usr/$(get_libdir)/libsasl2.so.2 -} diff --git a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r2.ebuild b/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r2.ebuild deleted file mode 100644 index dbb99525c574..000000000000 --- a/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r2.ebuild +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/cyrus-sasl-2.1.26-r2.ebuild,v 1.1 2013/07/13 12:01:10 pacho Exp $ - -EAPI=5 - -# should be fixed in automake-1.13.2(?). Please test when released. -# See automake bug #13514 -WANT_AUTOMAKE="1.12" - -inherit eutils flag-o-matic multilib autotools pam java-pkg-opt-2 db-use systemd - -SASLAUTHD_CONF_VER="2.1.26" - -DESCRIPTION="The Cyrus SASL (Simple Authentication and Security Layer)." -HOMEPAGE="http://cyrusimap.web.cmu.edu/" -SRC_URI="ftp://ftp.cyrusimap.org/cyrus-sasl/${P}.tar.gz" - -LICENSE="BSD-with-attribution" -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" -IUSE="authdaemond berkdb gdbm kerberos ldapdb openldap mysql pam postgres sample sqlite -srp ssl static-libs urandom" - -DEPEND="net-mail/mailbase - authdaemond? ( || ( net-mail/courier-imap mail-mta/courier ) ) - berkdb? ( >=sys-libs/db-3.2 ) - gdbm? ( >=sys-libs/gdbm-1.8.0 ) - kerberos? ( virtual/krb5 ) - openldap? ( net-nds/openldap ) - mysql? ( virtual/mysql ) - pam? ( virtual/pam ) - postgres? ( dev-db/postgresql-base ) - sqlite? ( dev-db/sqlite:3 ) - ssl? ( dev-libs/openssl ) - java? ( >=virtual/jdk-1.4 )" -RDEPEND="${DEPEND}" - -pkg_setup() { - java-pkg-opt-2_pkg_setup -} - -src_prepare() { - epatch "${FILESDIR}"/${PN}-2.1.25-sasldb_al.patch - epatch "${FILESDIR}"/${PN}-2.1.25-saslauthd_libtool.patch - epatch "${FILESDIR}"/${PN}-2.1.25-avoid_pic_overwrite.patch - epatch "${FILESDIR}"/${PN}-2.1.25-autotools_fixes.patch - epatch "${FILESDIR}"/${PN}-2.1.25-as_needed.patch - epatch "${FILESDIR}"/${PN}-2.1.25-missing_header.patch - epatch "${FILESDIR}"/${PN}-2.1.25-fix_heimdal.patch - epatch "${FILESDIR}"/${PN}-2.1.25-auxprop.patch - epatch "${FILESDIR}"/${PN}-2.1.23-gss_c_nt_hostbased_service.patch - epatch "${FILESDIR}"/${PN}-2.1.25-service_keytabs.patch - epatch "${FILESDIR}"/${PN}-2.1.26-missing-size_t.patch - - # Get rid of the -R switch (runpath_switch for Sun) - # >=gcc-4.6 errors out with unknown option - sed -i -e '/LIB_SQLITE.*-R/s/ -R[^"]*//' \ - configure.in || die - - # Use plugindir for sasldir - sed -i '/^sasldir =/s:=.*:= $(plugindir):' \ - "${S}"/plugins/Makefile.{am,in} || die "sed failed" - - sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g' \ - configure.in || die - - eautoreconf -} - -src_configure() { - append-flags -fno-strict-aliasing - append-cppflags -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -DLDAP_DEPRECATED - - # Java support. - use java && export JAVAC="${JAVAC} ${JAVACFLAGS}" - - local myconf - - # Add authdaemond support (bug #56523). - if use authdaemond ; then - myconf="${myconf} --with-authdaemond=/var/lib/courier/authdaemon/socket" - fi - - # Fix for bug #59634. - if ! use ssl ; then - myconf="${myconf} --without-des" - fi - - if use mysql || use postgres || use sqlite ; then - myconf="${myconf} --enable-sql" - else - myconf="${myconf} --disable-sql" - fi - - # Default to GDBM if both 'gdbm' and 'berkdb' are present. - if use gdbm ; then - einfo "Building with GNU DB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=gdbm" - elif use berkdb ; then - einfo "Building with BerkeleyDB as database backend for your SASLdb" - myconf="${myconf} --with-dblib=berkeley --with-bdb-incdir=$(db_includedir)" - else - einfo "Building without SASLdb support" - myconf="${myconf} --with-dblib=none" - fi - - # Use /dev/urandom instead of /dev/random (bug #46038). - if use urandom ; then - myconf="${myconf} --with-devrandom=/dev/urandom" - fi - - econf \ - --enable-login \ - --enable-ntlm \ - --enable-auth-sasldb \ - --disable-cmulocal \ - --disable-krb4 \ - --enable-otp \ - --without-sqlite \ - --with-saslauthd=/run/saslauthd \ - --with-pwcheck=/run/saslauthd \ - --with-configdir=/etc/sasl2 \ - --with-plugindir=/usr/$(get_libdir)/sasl2 \ - --with-dbpath=/etc/sasl2/sasldb2 \ - $(use_with ssl openssl) \ - $(use_with pam) \ - $(use_with openldap ldap) \ - $(use_enable ldapdb) \ - $(use_enable sample) \ - $(use_enable kerberos gssapi) \ - $(use_enable java) \ - $(use_with java javahome ${JAVA_HOME}) \ - $(use_with mysql) \ - $(use_with postgres pgsql) \ - $(use_with sqlite sqlite3 /usr/$(get_libdir)) \ - $(use_enable srp) \ - $(use_enable static-libs static) \ - ${myconf} -} - -src_compile() { - emake - - # Default location for java classes breaks OpenOffice (bug #60769). - # Thanks to axxo@gentoo.org for the solution. - cd "${S}" - if use java ; then - jar -cvf ${PN}.jar -C java $(find java -name "*.class") - fi -} - -src_install() { - emake DESTDIR="${D}" install - keepdir /etc/sasl2 - - if use sample ; then - docinto sample - dodoc sample/*.c - exeinto /usr/share/doc/${P}/sample - doexe sample/client sample/server - fi - - # Default location for java classes breaks OpenOffice (bug #60769). - if use java ; then - java-pkg_dojar ${PN}.jar - java-pkg_regso "${D}/usr/$(get_libdir)/libjavasasl.so" - # hackish, don't wanna dig through makefile - rm -Rf "${D}/usr/$(get_libdir)/java" - docinto "java" - dodoc "${S}/java/README" "${FILESDIR}/java.README.gentoo" "${S}"/java/doc/* - dodir "/usr/share/doc/${PF}/java/Test" - insinto "/usr/share/doc/${PF}/java/Test" - doins "${S}"/java/Test/*.java - fi - - docinto "" - dodoc AUTHORS ChangeLog NEWS README doc/TODO doc/*.txt - newdoc pwcheck/README README.pwcheck - dohtml doc/*.html - - docinto "saslauthd" - dodoc saslauthd/{AUTHORS,ChangeLog,LDAP_SASLAUTHD,NEWS,README} - - newpamd "${FILESDIR}/saslauthd.pam-include" saslauthd - - newinitd "${FILESDIR}/pwcheck.rc6" pwcheck - systemd_dounit "${FILESDIR}/pwcheck.service" - - newinitd "${FILESDIR}/saslauthd2.rc7" saslauthd - newconfd "${FILESDIR}/saslauthd-${SASLAUTHD_CONF_VER}.conf" saslauthd - systemd_dounit "${FILESDIR}/saslauthd.service" - systemd_dotmpfilesd "${FILESDIR}/${PN}.conf" - - newsbin "${S}/saslauthd/testsaslauthd" testsaslauthd - - use static-libs || find "${D}"/usr/lib*/sasl2 -name 'lib*.la' -delete -} - -pkg_preinst() { - preserve_old_lib /usr/$(get_libdir)/libsasl2.so.2 -} - -pkg_postinst () { - # Generate an empty sasldb2 with correct permissions. - if ( use berkdb || use gdbm ) && [[ ! -f "${ROOT}/etc/sasl2/sasldb2" ]] ; then - einfo "Generating an empty sasldb2 with correct permissions ..." - echo "p" | "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -p login \ - || die "Failed to generate sasldb2" - "${ROOT}/usr/sbin/saslpasswd2" -f "${ROOT}/etc/sasl2/sasldb2" -d login \ - || die "Failed to delete temp user" - chown root:mail "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chown ${ROOT}/etc/sasl2/sasldb2" - chmod 0640 "${ROOT}/etc/sasl2/sasldb2" \ - || die "Failed to chmod ${ROOT}/etc/sasl2/sasldb2" - fi - - if use authdaemond ; then - elog "You need to add a user running a service using Courier's" - elog "authdaemon to the 'mail' group. For example, do:" - elog " gpasswd -a postfix mail" - elog "to add the 'postfix' user to the 'mail' group." - fi - - elog "pwcheck and saslauthd home directories have moved to:" - elog " /run/saslauthd, using tmpfiles.d" - - preserve_old_lib_notify /usr/$(get_libdir)/libsasl2.so.2 -} |