summaryrefslogtreecommitdiff
path: root/net-libs/courier-authlib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-03 13:42:34 +0000
commit066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (patch)
tree3cb05783d73b2c33589ba305144a31c718e123cd /net-libs/courier-authlib
parent16449a80e28af2209916cc66d19c9a44ca2b90d9 (diff)
gentoo resync : 03.03.2019
Diffstat (limited to 'net-libs/courier-authlib')
-rw-r--r--net-libs/courier-authlib/Manifest3
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.69.0-r1.ebuild2
-rw-r--r--net-libs/courier-authlib/courier-authlib-0.69.0.ebuild150
3 files changed, 2 insertions, 153 deletions
diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest
index c55512efc50b..5df2384bb81b 100644
--- a/net-libs/courier-authlib/Manifest
+++ b/net-libs/courier-authlib/Manifest
@@ -10,6 +10,5 @@ EBUILD courier-authlib-0.65.0-r3.ebuild 5172 BLAKE2B 2bc31ffdfa5284c3d7054ef698b
EBUILD courier-authlib-0.66.4.ebuild 4512 BLAKE2B c348788f85b636efe9d19d3d2e2b4b7155865a546898a099db5f20c40c996dec5cf841086060760d13b9064f226a87c5b8e71e35103b59b8d7c201255da40d40 SHA512 e46992d601717a0d5d3c5f52c345c61646e317bad878fe2ffaab57ae3e0c4339232bcbe87422ce8626de9807ec38bfe12b770a0be10edd4523d4b6261d388dcb
EBUILD courier-authlib-0.67.0.ebuild 4565 BLAKE2B 421bdda6b5a0db98de2359ff6bca26da3675b16c833db575f98b8013d3fdb84e81d7b84f01f08e36f306213657e3db02dc08d9bf0e8762806aaa09a4309e95a7 SHA512 c1458bf707a9d03985351c0e25a648ced09a4545a5928a2a718efd4f15b9a0fceaf02e4634a56a7eb79604fea98f4531e093f73b96e6fe6a140ee4f1f38b2e8d
EBUILD courier-authlib-0.68.0-r1.ebuild 4569 BLAKE2B 87a0fab1111584bdf4ae3c4e81b52d71074f1e1ecc7f5682ea83b35e20a941a86f033e0a50cbc0da4260627128b1357c55e5ab1c35b17a53241468a872c81deb SHA512 8e0a63aa39d46896e0c5ad90125867b552adcfaa8ea3d35175062abbb43bbff4c73da794f6cc2c5a547eeb4e1f5cc3ae2e1eba2aa81868c89f3daa9c11de6bb8
-EBUILD courier-authlib-0.69.0-r1.ebuild 4533 BLAKE2B 310ea514141f522997b5a1070b1f94f6bea44704a02f96dcca3aff86df8e88437bafdb5c2f47332993cf9606ed175519adcc282a7855228f0c6b959328e7e0be SHA512 0ca906dae872b34cb0a9462d3882fac6a0c89fd807d3076819eb81876042344f00bf2a1730d946acd4acc22a6ac7027d26e3b1f8ed7200ed184e636e5e9fcce7
-EBUILD courier-authlib-0.69.0.ebuild 4575 BLAKE2B de7957af47985b84e9c08dc493d6ff069e2eda684d77f8113eab0cb7bde8f3a215bf6bd4663559fa3b67efbd6462ed945b326f26b8f37720bcacac08c9af40c9 SHA512 3b5054b13721bca8e302741f28ca9e2f6eb7a42489f2ca138cb61bbe878703c34e66bff3883bcfc06e43656a90b96c8233a95c47dcf17f0e591223a31d29a2f2
+EBUILD courier-authlib-0.69.0-r1.ebuild 4527 BLAKE2B fb5cb251a18e95c531d93b595e21122e0fd3afce534de6d33792b7752e022224ffb0219cd37e734ba9792d9ecfffb7dcbd945912e8c8882367cec8b0b9dca933 SHA512 1b4a36b012d429913d0ad8aacae2a8aa30d44220d58eb787adc91180027cf0fbd04d5d09178190b8980a454e9c89a35270d776e3cb5f1ec38a75cfbf1c575c82
MISC metadata.xml 486 BLAKE2B 160b9ab143eb206d225343dfac08321684250eae48ee0ea26023c2b36c008b8f8b17933e6044beab79415ee7a27d1658226f84f1553ba106f5298e6f487423a7 SHA512 5ccb8e2df98ea00c3a0825ea738d7cfa4045e24612e18b7e62994c8ad94271debce6c90a7813ca054cc1d7ea5cb0c11cc9fd71a3bf59f803375ae8583338c2e6
diff --git a/net-libs/courier-authlib/courier-authlib-0.69.0-r1.ebuild b/net-libs/courier-authlib/courier-authlib-0.69.0-r1.ebuild
index f21eda86de49..47dbe6cda303 100644
--- a/net-libs/courier-authlib/courier-authlib-0.69.0-r1.ebuild
+++ b/net-libs/courier-authlib/courier-authlib-0.69.0-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=7
inherit flag-o-matic
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ~ppc64 ~s390 ~sh sparc x86 ~x86-fbsd"
DESCRIPTION="Courier authentication library"
SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
diff --git a/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild b/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild
deleted file mode 100644
index 9aee2b60eda7..000000000000
--- a/net-libs/courier-authlib/courier-authlib-0.69.0.ebuild
+++ /dev/null
@@ -1,150 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit flag-o-matic
-
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-
-DESCRIPTION="Courier authentication library"
-SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
-HOMEPAGE="https://www.courier-mta.org/authlib/"
-LICENSE="GPL-3"
-SLOT="0"
-IUSE="berkdb crypt debug gdbm ldap libressl mysql pam postgres sqlite static-libs"
-
-RESTRICT="!berkdb? ( test )"
-
-DEPEND="net-mail/mailbase
- >=net-libs/courier-unicode-2.1
- gdbm? ( sys-libs/gdbm )
- !gdbm? ( sys-libs/db:= )
- !libressl? ( dev-libs/openssl:0= )
- libressl? ( dev-libs/libressl:= )
- ldap? ( >=net-nds/openldap-1.2.11 )
- mysql? ( dev-db/mysql-connector-c )
- pam? ( virtual/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
-
- find "${D}" -name '*.la' -delete || die
-}
-
-pkg_postinst() {
- if [[ -e /etc/courier/authlib/userdb ]] ; then
- einfo "Running makeuserdb ..."
- chmod go-rwx /etc/courier/authlib/userdb || die
- makeuserdb
- fi
-}