From baedab806a30ad0663e2e066ee74a573d84fcc70 Mon Sep 17 00:00:00 2001 From: Scott W Taylor Date: Sat, 20 Nov 2004 00:28:36 +0000 Subject: work in progress --- net-libs/courier-authlib/ChangeLog | 10 +++ net-libs/courier-authlib/Manifest | 3 + .../courier-authlib-0.50.20041116.ebuild | 77 ++++++++++++++++++++++ .../courier-authlib/files/courier-authlib-initd | 43 ++++++++++++ .../files/digest-courier-authlib-0.50.20041116 | 1 + net-libs/courier-authlib/metadata.xml | 12 ++++ 6 files changed, 146 insertions(+) create mode 100644 net-libs/courier-authlib/ChangeLog create mode 100644 net-libs/courier-authlib/Manifest create mode 100644 net-libs/courier-authlib/courier-authlib-0.50.20041116.ebuild create mode 100644 net-libs/courier-authlib/files/courier-authlib-initd create mode 100644 net-libs/courier-authlib/files/digest-courier-authlib-0.50.20041116 create mode 100644 net-libs/courier-authlib/metadata.xml (limited to 'net-libs/courier-authlib') 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 +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..d62545baf9a8 --- /dev/null +++ b/net-libs/courier-authlib/Manifest @@ -0,0 +1,3 @@ +MD5 a82bd1f77f821ce3b41422ed28327f4e courier-authlib-0.50.20041116.ebuild 2598 +MD5 1639b87658242c2406f7f7f8deda7388 metadata.xml 334 +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 @@ + + + + + no-herd + + swtaylor@gentoo.org + + + authentication library common to all courier packages + + -- cgit v1.2.3-65-gdbad