diff options
author | Scott W Taylor <swtaylor@gentoo.org> | 2004-11-20 00:28:36 +0000 |
---|---|---|
committer | Scott W Taylor <swtaylor@gentoo.org> | 2004-11-20 00:28:36 +0000 |
commit | 59ba1d04d9209edebd0af23d7982dc8f72274bf3 (patch) | |
tree | 05f6fc5e64d74356345112d4a58d414ab77a5f55 /net-libs/courier-authlib | |
parent | Keyworded ~amd64, bug #71231 (diff) | |
download | historical-59ba1d04d9209edebd0af23d7982dc8f72274bf3.tar.gz historical-59ba1d04d9209edebd0af23d7982dc8f72274bf3.tar.bz2 historical-59ba1d04d9209edebd0af23d7982dc8f72274bf3.zip |
work in progress
Diffstat (limited to 'net-libs/courier-authlib')
-rw-r--r-- | net-libs/courier-authlib/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/courier-authlib/Manifest | 5 | ||||
-rw-r--r-- | net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild | 77 | ||||
-rw-r--r-- | net-libs/courier-authlib/files/courier-authlib-initd | 43 | ||||
-rw-r--r-- | net-libs/courier-authlib/files/digest-courier-authlib-0.50.20041116 | 1 | ||||
-rw-r--r-- | net-libs/courier-authlib/metadata.xml | 12 |
6 files changed, 148 insertions, 0 deletions
diff --git a/net-libs/courier-authlib/ChangeLog b/net-libs/courier-authlib/ChangeLog new file mode 100644 index 000000000000..d51e9bf055e5 --- /dev/null +++ b/net-libs/courier-authlib/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/courier-authlib +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/ChangeLog,v 1.1 2004/11/20 00:28:36 swtaylor Exp $ + +*courier-authlib-0.50.20041116 (19 Nov 2004) + + 19 Nov 2004; Scott W Taylor <swtaylor@gentoo.org> +metadata.xml, + +courier-authlib-0.50.20041116.ebuild: + work in progress + diff --git a/net-libs/courier-authlib/Manifest b/net-libs/courier-authlib/Manifest new file mode 100644 index 000000000000..7a2800b1a4e8 --- /dev/null +++ b/net-libs/courier-authlib/Manifest @@ -0,0 +1,5 @@ +MD5 95642252a81221315841805de2bfbaea courier-authlib-0.50.20041116.ebuild 2598 +MD5 4624fb83698b2d2026136b1d4d582a05 ChangeLog 397 +MD5 1639b87658242c2406f7f7f8deda7388 metadata.xml 334 +MD5 824b9be2b58f8e751fe74ff68bcc6ef1 files/courier-authlib-initd 1106 +MD5 ee0f85c1e7a26c660ce65b08a89fcfbb files/digest-courier-authlib-0.50.20041116 83 diff --git a/net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild b/net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild new file mode 100644 index 000000000000..cf550265fcc7 --- /dev/null +++ b/net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild,v 1.1 2004/11/20 00:28:36 swtaylor Exp $ + +inherit eutils + +DESCRIPTION="courier authentication library" +[ -z "${PV/?.??/}" ] && SRC_URI="mirror://sourceforge/courier-authlib/${P}.tar.bz2" || SRC_URI="http://www.courier-mta.org/beta/courier-authlib/${P}.tar.bz2" +HOMEPAGE="http://www.courier-mta.org/" + +SLOT="0" +LICENSE="GPL-2" +#KEYWORDS="~x86 ~alpha ~ppc ~sparc ~amd64" +KEYWORDS="-*" +IUSE="postgres ldap mysql gdbm pam crypt uclibc debug" + +DEPEND="virtual/libc" + +RDEPEND="${DEPEND}" + +src_unpack() { + if ! has_version 'dev-tcltk/expect' ; then + einfo 'The dev-tcltk/expect package is not installed.' + fi + unpack ${A} + cd ${S} + sed -e"s|^chk_file .* |&\${DESTDIR}|g" -i.orig authmigrate.in + use uclibc && sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub +} + +src_compile() { + local myconf + myconf="`use_with pam authpam` `use_with ldap authldap`" + use gdbm && myconf="${myconf} --with-db=gdbm" + + if [ -f /var/vpopmail/etc/lib_deps ]; then + myconf="${myconf} --with-authvchkpw --without-authmysql --without-authpgsql" + use mysql && ewarn "vpopmail found. authmysql will not be built." + use postgres && ewarn "vpopmail found. authpgsql will not be built." + else + myconf="${myconf} --without-authvchkpw `use_with mysql authmysql` `use_with postgres authpostgres`" + fi + + use debug && myconf="${myconf} debug=true" + +ewarn "${myconf}" + + ./configure \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --sysconfdir=/etc/courier \ + --libexecdir=/usr/lib/courier \ + --datadir=/usr/share/courier \ + --sharedstatedir=/var/lib/courier/com \ + --localstatedir=/var/lib/courier \ + --with-authdaemonvar=/var/lib/courier/authdaemon \ + --with-mailuser=mail \ + --with-mailgroup=mail \ + --cache-file=${S}/configuring.cache \ + --host=${CHOST} ${myconf} || die "bad ./configure" + emake || die "Compile problem" +} + +src_install() { + dodir /etc/courier/authlib + dodir /var/lib/courier + emake install DESTDIR="${D}" || die "install" + emake install-migrate DESTDIR="${D}" || die "migrate" + emake install-configure DESTDIR="${D}" || die "configure" + rm ${D}/etc/courier/authlib/*.bak + dodoc AUTHORS COPYING ChangeLog* INSTALL NEWS README + dohtml README.html README_authlib.html NEWS.html INSTALL.html README.authdebug.html + use ldap && dodoc authldap.schema + use mysql && ( dodoc README.authmysql.myownquery ; dohtml README.authmysql.html ) + use postgres && dohtml README.authpostgres.html +} + diff --git a/net-libs/courier-authlib/files/courier-authlib-initd b/net-libs/courier-authlib/files/courier-authlib-initd new file mode 100644 index 000000000000..176489039d28 --- /dev/null +++ b/net-libs/courier-authlib/files/courier-authlib-initd @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/files/courier-authlib-initd,v 1.1 2004/11/20 00:28:36 swtaylor Exp $ +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/courier/authlib/authdaemonrc ] ; then + eerror "You need an /etc/courier/authlib/authdaemonrc file to run authdaemon" + return 1 + fi +} + +setauth() { + source /etc/courier/authlib/authdaemonrc + AUTHLIB="/usr/lib/courier/courier-authlib" + AUTHDAEMOND="authdaemond" + #source /etc/courier/authlib/authdaemond.conf + #[ -z "$version" ] && version="${AUTHDAEMOND}" + pidfile="/var/run/authdaemon.pid" + logger="/usr/lib/courier/courierlogger" +} + +start() { + checkconfig || return 1 + setauth + + ebegin "Starting ${AUTHDAEMOND}" + start-stop-daemon --quiet --start --pidfile "$pidfile" --exec \ + /usr/bin/env -- - $logger -pid="$pidfile" -start "${AUTHLIB}/${AUTHDAEMOND}" + eend $? +} + +stop() { + setauth + + ebegin "Stopping ${AUTHDAEMOND}" + start-stop-daemon --quiet --stop \ + --pidfile "$pidfile" + eend $? +} diff --git a/net-libs/courier-authlib/files/digest-courier-authlib-0.50.20041116 b/net-libs/courier-authlib/files/digest-courier-authlib-0.50.20041116 new file mode 100644 index 000000000000..5cd974166f26 --- /dev/null +++ b/net-libs/courier-authlib/files/digest-courier-authlib-0.50.20041116 @@ -0,0 +1 @@ +MD5 d6afed924f2195f55e17082336d679a7 courier-authlib-0.50.20041116.tar.bz2 1969809 diff --git a/net-libs/courier-authlib/metadata.xml b/net-libs/courier-authlib/metadata.xml new file mode 100644 index 000000000000..a84a607d2e81 --- /dev/null +++ b/net-libs/courier-authlib/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>swtaylor@gentoo.org</email> + </maintainer> + <longdescription> + authentication library common to all courier packages + </longdescription> +</pkgmetadata> |