From e2db47eaae00ec33f8971db44b68645c5d3b9590 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 17 Aug 2021 11:36:49 +0100 Subject: gentoo resync : 17.08.2021 --- net-libs/courier-authlib/Manifest | 12 +- .../courier-authlib-0.69.0-r3.ebuild | 149 --------------------- .../courier-authlib-0.69.0-r4.ebuild | 149 +++++++++++++++++++++ .../courier-authlib-0.70.0-r2.ebuild | 149 --------------------- .../courier-authlib-0.70.0-r3.ebuild | 149 +++++++++++++++++++++ .../courier-authlib-0.71.0-r2.ebuild | 149 --------------------- .../courier-authlib-0.71.0-r3.ebuild | 149 +++++++++++++++++++++ .../courier-authlib-0.71.1-r2.ebuild | 149 --------------------- .../courier-authlib-0.71.1-r3.ebuild | 149 +++++++++++++++++++++ .../courier-authlib-0.71.2-r2.ebuild | 149 --------------------- .../courier-authlib-0.71.2-r3.ebuild | 149 +++++++++++++++++++++ .../courier-authlib-0.71.3-r1.ebuild | 149 +++++++++++++++++++++ .../courier-authlib/courier-authlib-0.71.3.ebuild | 149 --------------------- 13 files changed, 900 insertions(+), 900 deletions(-) delete mode 100644 net-libs/courier-authlib/courier-authlib-0.69.0-r3.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.69.0-r4.ebuild delete mode 100644 net-libs/courier-authlib/courier-authlib-0.70.0-r2.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.70.0-r3.ebuild delete mode 100644 net-libs/courier-authlib/courier-authlib-0.71.0-r2.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.71.0-r3.ebuild delete mode 100644 net-libs/courier-authlib/courier-authlib-0.71.1-r2.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.71.1-r3.ebuild delete mode 100644 net-libs/courier-authlib/courier-authlib-0.71.2-r2.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.71.2-r3.ebuild create mode 100644 net-libs/courier-authlib/courier-authlib-0.71.3-r1.ebuild delete mode 100644 net-libs/courier-authlib/courier-authlib-0.71.3.ebuild (limited to 'net-libs/courier-authlib') diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest index 177fe788d408..e0d7dca81573 100644 --- a/net-libs/courier-authlib/Manifest +++ b/net-libs/courier-authlib/Manifest @@ -5,10 +5,10 @@ DIST courier-authlib-0.71.0.tar.bz2 2207895 BLAKE2B 8eb92b2c07acfb662b34a2234759 DIST courier-authlib-0.71.1.tar.bz2 2208870 BLAKE2B 5058a5d3182c53020c3be0a693908bd90e6e2397f03124df3efd7c3bd39ebdc794166d49c6153880bbf93518afbf4388160680cd701236b075b6e59624fb6882 SHA512 a1b36f4f3b0f11fb34e5dab197b3a0471bc6a99528fe77836b3b2d12f9dac292be4c181aeba5afa3410685dd6882ed00ff6692e74cd0132ba591de1294d0f2d7 DIST courier-authlib-0.71.2.tar.bz2 2208460 BLAKE2B 49aaea85032166ba4867e7834bb2f6c8d3eccb0ebe24b94bac3033a3da2154e3162d06892354b37eb0c38db092ce0096b050246db341b18a32065c19f322238a SHA512 b0bd2356013d48a998908d4825901e8e730ec276699005696948781e8af4014e25eded3116fa5a8a38b6236e9713f454170628b51aedab7b7d2ebec082643a47 DIST courier-authlib-0.71.3.tar.bz2 2208794 BLAKE2B 4b0f56f066368383d471dd8f46941f7b652a87be939ba6319cf99115991c03dd117d6bc246cc802fa7066ce5c75aaa102c59ae397948dd31ddbbb024059566ef SHA512 02c55ff1a91aac581942f8a4a01edd2bb8e2e1a07faf551d40a97583ce2f6eab12e850e3170df255c1e7680a34e418784ec14bb033825d6bac21192ae37ce55d -EBUILD courier-authlib-0.69.0-r3.ebuild 4462 BLAKE2B 9d4820ae42e6c5f89f74a2a38c75358b7bea3ff5ce1abb658edfe7b6f8167fa0392b4fc6da69efb2a06f602f20bc434deccce93a837839cb725e29a2913931a2 SHA512 e1da10fd1729f371d37116ef3d59ebf32c401fa3aefcea4e46b117321ed9fd46f16226ff10bc8ffb6ce96e3fae4b2f2fc2b9c7ec3b2675ad7405aa750b3f3f29 -EBUILD courier-authlib-0.70.0-r2.ebuild 4470 BLAKE2B 1c1dcbde260e5b444297ed285da434310f860d9244a81d707fc9cd4c1909beea24bdc9ef58976ea39a6cbeb9b21204355bed0f3a0c9e2b7c08f05d1970c5c21f SHA512 0fd647c724cadf384242261bc14f7a2d1286ca9bed7fd4d433c32e536488736076a34609371cc597423c03680c3109da6667dbbae9e9d0eaa4be7dc0443d8ae8 -EBUILD courier-authlib-0.71.0-r2.ebuild 4462 BLAKE2B 9d4820ae42e6c5f89f74a2a38c75358b7bea3ff5ce1abb658edfe7b6f8167fa0392b4fc6da69efb2a06f602f20bc434deccce93a837839cb725e29a2913931a2 SHA512 e1da10fd1729f371d37116ef3d59ebf32c401fa3aefcea4e46b117321ed9fd46f16226ff10bc8ffb6ce96e3fae4b2f2fc2b9c7ec3b2675ad7405aa750b3f3f29 -EBUILD courier-authlib-0.71.1-r2.ebuild 4472 BLAKE2B 6b0fcf845187e296e305d7c09f6e5cc29ad0447f04af56313a866dfe5a7d94b9b86e6f2804be1d31c913004eb0fe6053fb0528377e49aba71583d1a8a58f9353 SHA512 c4e46181e82bfaa7a6b24e53675d04d6615324ecc348ba018200f44bff9f0c085a9e8ac0f70fdf9b432cf7eec58e9b6076518d6337019b4e5d08907694821a37 -EBUILD courier-authlib-0.71.2-r2.ebuild 4479 BLAKE2B cee2dff7871ce782ce545270dfeb56c38d6246156ae618aeb356622711808ec3e3e0ec832305cd4dea1658b302def0f07e30639093bf42378823f7b6aec04f03 SHA512 3186622faab364d72b893b39b7e5c6fa1dc76aa5c4b70a3ef45eb5ae4be6b84692827a0ecabb7bd42824c2e760009a7764300306e957e8500882633171a85ccf -EBUILD courier-authlib-0.71.3.ebuild 4473 BLAKE2B a948b70c63b88083b677920948a5c5535d95d4c39630f652a425752f4c63f011b53dea0a976b2d786ab8decfd637687eafd546bd97370543729417db6fb3e7bf SHA512 1bd1908cdd7c8078e57827881aedb649eb05f03d3539d98837fadfa208227e1e40fee66c64ac1a943313134736ec7e450d3ebfc920a02ab0c4f6f39d13d80d07 +EBUILD courier-authlib-0.69.0-r4.ebuild 4464 BLAKE2B 017f911bd68b7c6784e71729b77afa4011926a6f577a4760d8ef193f788bd6c4dab2dd431ea4d72080610d6140871f44f5a8931c96f5e9c828063e4178ed5754 SHA512 cfd37a3416352ec2f1f9e8fb5684cfe9dd83ad73a5d0de9006c06b54ff61b2df674a3411d45ae5a38c89ff83bd00594080906a24426cb0451f2122a00cdc6e45 +EBUILD courier-authlib-0.70.0-r3.ebuild 4472 BLAKE2B 4098c1c73bb5487a4687cf23745722b553997c2d7e952679114b181e7cd251ed291779000ff4ec1c99dd0ba9efc2ef9bb771fee6b2b7d90ca8c742a0822ccaf9 SHA512 99fdf96d8b6f9fb6e755eac37f68498a6528eb6439be9dbb89e07913d6e1f6e79d15f142cfcb23a5df16831588981022bc401a95b15d29632872323024c64b67 +EBUILD courier-authlib-0.71.0-r3.ebuild 4464 BLAKE2B 017f911bd68b7c6784e71729b77afa4011926a6f577a4760d8ef193f788bd6c4dab2dd431ea4d72080610d6140871f44f5a8931c96f5e9c828063e4178ed5754 SHA512 cfd37a3416352ec2f1f9e8fb5684cfe9dd83ad73a5d0de9006c06b54ff61b2df674a3411d45ae5a38c89ff83bd00594080906a24426cb0451f2122a00cdc6e45 +EBUILD courier-authlib-0.71.1-r3.ebuild 4474 BLAKE2B 78a21747454a43acdb69c288ceeadcb6608f0354f3f1ad3087d49c5981665679831c3cd8708468e323c2af1b41e5da67e1352ba1deb787f6e60213fbd79dcd34 SHA512 c65339439affe89b5b0585bf332e1c84b520993e9e2e71904138022ffe9b192ebfdfe708dc435ee2ecd3069a5626534e428aa9fcdfa8a1b46a0c4b0a920d1184 +EBUILD courier-authlib-0.71.2-r3.ebuild 4481 BLAKE2B 553372031c47ebea9b10ca7ffd6fd9bab03c9479df3451765cbac075f7ba653e389e3ffe5d88f3d20f1ee4a3271cf707579eaaa83436fc02e6d73df025f633b2 SHA512 883f9455c340312975008e25a67791ece5166d0e0d5aeb6d719575bb181993fe006ccfc9b025e3f17f1d9f0dc9ba7a5141a673b670dd6adaa6e9bdc8fdd8a144 +EBUILD courier-authlib-0.71.3-r1.ebuild 4475 BLAKE2B 2ab5573d5a349e8606643c530dd8b2856041aeeeed092257244cfca3a2dd4115eb23b42806a435a67dbf6a91e3e8839c2f24ec5ea79c8ad31c415c8bb804ebdf SHA512 9b66fd2773e398a7cc2101a2189796bbe2a84e9bb75e87642d7ddd4687121576da50824c166e96fe3c060a29e8344c659f502cc01c2aa8c05ea6d8a1e9110c8a MISC metadata.xml 301 BLAKE2B e5d19d103b9de3e5b34a1b466b3d1fa4fa170fbaa4e81b99eb970ad73b89d7fe3e7b64ea1e60f978f15c17a5058c38ee5324677886efc36e71004c749d909260 SHA512 f0811e6512fca5f760e4b2c745e9245dee529801cf1897d38c4fc817995f5a1edd56f58227f2e8a1fe93c78b1d97fa5f84c6db27e6c3feaa36c8901015d3cd25 diff --git a/net-libs/courier-authlib/courier-authlib-0.69.0-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.69.0-r3.ebuild deleted file mode 100644 index cfb9546ced48..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.69.0-r3.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.1 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} diff --git a/net-libs/courier-authlib/courier-authlib-0.69.0-r4.ebuild b/net-libs/courier-authlib/courier-authlib-0.69.0-r4.ebuild new file mode 100644 index 000000000000..14023d2a01b0 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.69.0-r4.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.1:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.70.0-r2.ebuild b/net-libs/courier-authlib/courier-authlib-0.70.0-r2.ebuild deleted file mode 100644 index 550f95917095..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.70.0-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.1 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} diff --git a/net-libs/courier-authlib/courier-authlib-0.70.0-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.70.0-r3.ebuild new file mode 100644 index 000000000000..c2e8c3099c6e --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.70.0-r3.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.1:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.0-r2.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.0-r2.ebuild deleted file mode 100644 index cfb9546ced48..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.71.0-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.1 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.0-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.0-r3.ebuild new file mode 100644 index 000000000000..14023d2a01b0 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.71.0-r3.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.1:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.1-r2.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.1-r2.ebuild deleted file mode 100644 index 60d2a698741f..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.71.1-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.1.2 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.1-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.1-r3.ebuild new file mode 100644 index 000000000000..a72659a6479f --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.71.1-r3.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.1.2:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.2-r2.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.2-r2.ebuild deleted file mode 100644 index 8246a09277cf..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.71.2-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.2.3 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.2-r3.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.2-r3.ebuild new file mode 100644 index 000000000000..50ad7474ac45 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.71.2-r3.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.2.3:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.3-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.3-r1.ebuild new file mode 100644 index 000000000000..c96a75a26e05 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.71.3-r1.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit flag-o-matic + +DESCRIPTION="Courier authentication library" +SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" +HOMEPAGE="https://www.courier-mta.org/authlib/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" +IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" + +RESTRICT="!berkdb? ( test )" + +DEPEND="net-mail/mailbase + >=net-libs/courier-unicode-2.2.3:= + virtual/libcrypt:= + gdbm? ( sys-libs/gdbm:= ) + !gdbm? ( sys-libs/db:= ) + dev-libs/openssl:0= + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( dev-db/mysql-connector-c:= ) + pam? ( sys-libs/pam ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 )" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if ! has_version 'dev-tcltk/expect' ; then + ewarn 'The dev-tcltk/expect package is not installed.' + ewarn 'Without it, you will not be able to change system login passwords.' + ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' + ewarn 'and others) will work just fine.' + fi +} + +src_configure() { + filter-flags -fomit-frame-pointer + local myconf + if use berkdb ; then + if use gdbm ; then + ewarn "Both gdbm and berkdb selected. Using gdbm." + else + myconf="--with-db=db" + fi + fi + use gdbm && myconf="--with-db=gdbm" + use debug && myconf+=" debug=true" + use sqlite && myconf+=" --with-sqlite-libs" + + econf \ + --sysconfdir=/etc/courier \ + --datadir=/usr/share/courier \ + --localstatedir=/var/lib/courier \ + --sharedstatedir=/var/lib/courier/com \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-authshadow \ + --without-redhat \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file="${S}/configuring.cache" \ + $(use_with pam authpam) \ + $(use_with ldap authldap) \ + $(use_with mysql authmysql) \ + $(use_with postgres authpgsql) \ + $(use_with sqlite authsqlite) \ + ${myconf} +} + +orderfirst() { + file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" + if [[ -e "${file}" ]] ; then + orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" + new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" + sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die + fi +} + +finduserdb() { + for dir in \ + /etc/courier/authlib /etc/courier /etc/courier-imap \ + /usr/lib/courier/etc /usr/lib/courier-imap/etc \ + /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ + /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ + /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do + if [[ -e "${dir}/userdb" ]] ; then + einfo "Found userdb at: ${dir}/userdb" + cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die + chmod go-rwx "${D}/etc/courier/authlib/userdb" || die + continue + fi + done +} + +src_install() { + diropts -o mail -g mail + dodir /etc/courier + keepdir /var/lib/courier/authdaemon + keepdir /etc/courier/authlib + emake DESTDIR="${D}" install + [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb + emake DESTDIR="${D}" install-configure + rm -f "${D}"/etc/courier/authlib/*.bak + chown mail:mail "${D}"/etc/courier/authlib/* || die + for y in "${D}"/etc/courier/authlib/*.dist ; do + [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" + done + use pam && orderfirst authdaemonrc authmodulelist authpam + use ldap && orderfirst authdaemonrc authmodulelist authldap + use sqlite && orderfirst authdaemonrc authmodulelist authsqlite + use postgres && orderfirst authdaemonrc authmodulelist authpgsql + use mysql && orderfirst authdaemonrc authmodulelist authmysql + + DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) + HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) + if use mysql ; then + DOCS+=( README.authmysql.myownquery ) + HTML_DOCS+=( README.authmysql.html ) + fi + if use postgres ; then + HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) + fi + if use ldap ; then + DOCS+=( README.ldap ) + dodir /etc/openldap/schema + cp -f authldap.schema "${D}/etc/openldap/schema/" || die + fi + if use sqlite ; then + HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) + fi + einstalldocs + + newinitd "${FILESDIR}/${PN}-r2" "${PN}" + + use static-libs || find "${D}" -name "*.a" -delete +} + +pkg_postinst() { + if [[ -e /etc/courier/authlib/userdb ]] ; then + einfo "Running makeuserdb ..." + chmod go-rwx /etc/courier/authlib/userdb || die + makeuserdb + fi +} diff --git a/net-libs/courier-authlib/courier-authlib-0.71.3.ebuild b/net-libs/courier-authlib/courier-authlib-0.71.3.ebuild deleted file mode 100644 index 208ab35e3610..000000000000 --- a/net-libs/courier-authlib/courier-authlib-0.71.3.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic - -DESCRIPTION="Courier authentication library" -SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2" -HOMEPAGE="https://www.courier-mta.org/authlib/" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="berkdb debug gdbm ldap mysql pam postgres sqlite static-libs" - -RESTRICT="!berkdb? ( test )" - -DEPEND="net-mail/mailbase - >=net-libs/courier-unicode-2.2.3 - virtual/libcrypt:= - gdbm? ( sys-libs/gdbm:= ) - !gdbm? ( sys-libs/db:= ) - dev-libs/openssl:0= - ldap? ( >=net-nds/openldap-1.2.11 ) - mysql? ( dev-db/mysql-connector-c:= ) - pam? ( sys-libs/pam ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite:3 )" - -RDEPEND="${DEPEND}" - -pkg_setup() { - if ! has_version 'dev-tcltk/expect' ; then - ewarn 'The dev-tcltk/expect package is not installed.' - ewarn 'Without it, you will not be able to change system login passwords.' - ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,' - ewarn 'and others) will work just fine.' - fi -} - -src_configure() { - filter-flags -fomit-frame-pointer - local myconf - if use berkdb ; then - if use gdbm ; then - ewarn "Both gdbm and berkdb selected. Using gdbm." - else - myconf="--with-db=db" - fi - fi - use gdbm && myconf="--with-db=gdbm" - use debug && myconf+=" debug=true" - use sqlite && myconf+=" --with-sqlite-libs" - - econf \ - --sysconfdir=/etc/courier \ - --datadir=/usr/share/courier \ - --localstatedir=/var/lib/courier \ - --sharedstatedir=/var/lib/courier/com \ - --with-authdaemonvar=/var/lib/courier/authdaemon \ - --with-authshadow \ - --without-redhat \ - --with-mailuser=mail \ - --with-mailgroup=mail \ - --cache-file="${S}/configuring.cache" \ - $(use_with pam authpam) \ - $(use_with ldap authldap) \ - $(use_with mysql authmysql) \ - $(use_with postgres authpgsql) \ - $(use_with sqlite authsqlite) \ - ${myconf} -} - -orderfirst() { - file="${D}/etc/courier/authlib/${1}" ; option="${2}" ; param="${3}" - if [[ -e "${file}" ]] ; then - orig="$(grep ^${option}= ${file} | cut -d\" -f 2)" - new="${option}=\"${param} `echo ${orig} | sed -e\"s/${param}//g\" -e\"s/ / /g\"`\"" - sed -i -e "s/^${option}=.*$/${new}/" "${file}" || die - fi -} - -finduserdb() { - for dir in \ - /etc/courier/authlib /etc/courier /etc/courier-imap \ - /usr/lib/courier/etc /usr/lib/courier-imap/etc \ - /usr/local/etc /usr/local/etc/courier /usr/local/courier/etc \ - /usr/local/lib/courier/etc /usr/local/lib/courier-imap/etc \ - /usr/local/share/sqwebmail /usr/local/etc/courier-imap ; do - if [[ -e "${dir}/userdb" ]] ; then - einfo "Found userdb at: ${dir}/userdb" - cp -fR "${dir}/userdb" "${D}/etc/courier/authlib/" || die - chmod go-rwx "${D}/etc/courier/authlib/userdb" || die - continue - fi - done -} - -src_install() { - diropts -o mail -g mail - dodir /etc/courier - keepdir /var/lib/courier/authdaemon - keepdir /etc/courier/authlib - emake DESTDIR="${D}" install - [[ ! -e "${D}/etc/courier/authlib/userdb" ]] && finduserdb - emake DESTDIR="${D}" install-configure - rm -f "${D}"/etc/courier/authlib/*.bak - chown mail:mail "${D}"/etc/courier/authlib/* || die - for y in "${D}"/etc/courier/authlib/*.dist ; do - [[ ! -e "${y%%.dist}" ]] && cp -f "${y}" "${y%%.dist}" - done - use pam && orderfirst authdaemonrc authmodulelist authpam - use ldap && orderfirst authdaemonrc authmodulelist authldap - use sqlite && orderfirst authdaemonrc authmodulelist authsqlite - use postgres && orderfirst authdaemonrc authmodulelist authpgsql - use mysql && orderfirst authdaemonrc authmodulelist authmysql - - DOCS=( AUTHORS ChangeLog* INSTALL NEWS README ) - HTML_DOCS=( README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html ) - if use mysql ; then - DOCS+=( README.authmysql.myownquery ) - HTML_DOCS+=( README.authmysql.html ) - fi - if use postgres ; then - HTML_DOCS+=( README.authpostgres.html README.authmysql.html ) - fi - if use ldap ; then - DOCS+=( README.ldap ) - dodir /etc/openldap/schema - cp -f authldap.schema "${D}/etc/openldap/schema/" || die - fi - if use sqlite ; then - HTML_DOCS+=( README.authsqlite.html README.authmysql.html ) - fi - einstalldocs - - newinitd "${FILESDIR}/${PN}-r2" "${PN}" - - use static-libs || find "${D}" -name "*.a" -delete -} - -pkg_postinst() { - if [[ -e /etc/courier/authlib/userdb ]] ; then - einfo "Running makeuserdb ..." - chmod go-rwx /etc/courier/authlib/userdb || die - makeuserdb - fi -} -- cgit v1.2.3