6fe3dd00e6f6c90eeae99b8366afed3cb604647e
Bernd Wurst Version bump to current ver...

Bernd Wurst authored 16 years ago

1) # Copyright 1999-2007 Gentoo Foundation
2) # Distributed under the terms of the GNU General Public License v2
3) # $Header: /var/cvsroot/gentoo-x86/net-libs/courier-authlib/courier-authlib-0.59.2.ebuild,v 1.2 2007/05/08 22:50:40 genone Exp $
4) 
5) WANT_AUTOCONF="latest"
6) WANT_AUTOMAKE="latest"
7) 
8) inherit eutils flag-o-matic autotools
9) 
10) KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
11) 
12) DESCRIPTION="Courier authentication library."
13) SRC_URI="mirror://sourceforge/courier/${P}.tar.bz2"
14) HOMEPAGE="http://www.courier-mta.org/"
15) LICENSE="GPL-2"
16) SLOT="0"
17) IUSE="berkdb crypt debug gdbm ldap mysql pam postgres vpopmail"
18) 
19) RESTRICT="userpriv"
20) 
21) RDEPEND="gdbm? ( sys-libs/gdbm )
22) 		!gdbm? ( sys-libs/db )"
23) 
24) DEPEND="${RDEPEND}
25) 		>=dev-libs/openssl-0.9.6
26) 		ldap? ( >=net-nds/openldap-1.2.11 )
27) 		mysql? ( virtual/mysql )
28) 		pam? ( virtual/pam )
29) 		postgres? ( >=dev-db/postgresql-7.2 )"
30) 
31) pkg_setup() {
32) 	enewuser mail -1 -1 /var/spool/mail
33) 
34) 	if ! has_version 'dev-tcltk/expect' ; then
35) 		ewarn 'The dev-tcltk/expect package is not installed.'
36) 		ewarn 'Without it, you will not be able to change system login passwords.'
37) 		ewarn 'However non-system authentication modules (LDAP, MySQL, PostgreSQL,'
38) 		ewarn 'and others) will work just fine.'
39) 	fi
40) }
41) 
42) src_unpack() {
43) 	unpack ${A}
44) 	cd "${S}"
45) 
46) 	if use elibc_uclibc ; then
47) 		sed -i -e 's:linux-gnu\*:linux-gnu\*\ \|\ linux-uclibc:' config.sub || die "sed failed"
48) 	fi
49) 
50) 	if ! use gdbm ; then
51) 		epatch "${FILESDIR}/${PV}-configure-db4.patch"
52) 	else
53) 		epatch "${FILESDIR}/${PV}-remove-obsolete-macro.patch"
54) 	fi
55) 
Bernd Wurst clean up

Bernd Wurst authored 16 years ago

56) 	sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
Bernd Wurst Version bump to current ver...

Bernd Wurst authored 16 years ago

57) 	sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed"
58) 	sed -i -e'/for dir in/a@@INDENT@@/etc/courier/authlib \\' authmigrate.in || die "sed failed"
59) 	sed -i -e"s|@@INDENT@@|		|g" authmigrate.in || die "sed failed"
60) 	sed -i -e"s|\$sbindir/makeuserdb||g" authmigrate.in || die "sed failed"
61) 
Hanno Böck only run necessary _elibtoo...

Hanno Böck authored 16 years ago

62) 	_elibtoolize --copy --force || die "error while running libtoolize"