1995b15e9c06076f9f281019ee1867003930fb9c
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

1) # Copyright 1999-2007 Gentoo Foundation
2) # Distributed under the terms of the GNU General Public License v2
3) # $Header: $
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

4) 
5) inherit eutils
6) 
7) DESCRIPTION="A password checking interface that works with the courier-imap authdaemon"
8) HOMEPAGE="http://www.arda.homeunix.net/store/"
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

9) SRC_URI="http://www.arda.homeunix.net/store/${P}.tar.gz"
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

10) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

11) S="${WORKDIR}/${P}"
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

12) 
13) LICENSE="GPL-2"
14) SLOT="0"
15) KEYWORDS="x86 amd64"
16) IUSE=""
17) 
18) DEPEND=">=net-libs/courier-authlib-0.57"
19) 
20) src_compile() {
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

21) 	CFLAGS="$CFLAGS -Wl,-z,now"
22) 	econf || die "Error in configure"
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

23) 	emake || die "Error in make"
24) }
25) 
26) src_install() {
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

27) 	einfo Installing courierpasswd setuid root.
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

28) 	dosbin courierpasswd || die "Cannot install courierpasswd"
29) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

30) 	# chown root $(sbindir)/courierpasswd
31) 	fperms 4511 /sbin/courierpasswd
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

32) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

33) 	dobin ${FILESDIR}/mailpasswd
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

34) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

35) 	doman courierpasswd.8
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

36) 	dodoc AUTHORS INSTALL COPYING NEWS README ChangeLog
37) }
38) 
39) warning() {
40) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

41) 	ewarn "courierpasswd has been installed setuid root. Otherwise the authdeamon"
42) 	ewarn "wouldn't allow courierpasswd to connect."
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

43) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

44) 	einfo "To use courierpasswd for qmail AUTH you have to modify
45) 	einfo "/var/qmail/control/conf-smtpd and set "QMAIL_SMTP_CHECKPASSWORD=\"/sbin/courierpasswd\"."
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

46) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

47) 	einfo "You can use courierpasswd to change you e-mail password by executing"
48) 	einfo "mailpasswd or courierpasswd directly (see manpage). There is a"
49) 	einfo "courierchange_pass is a courierchange_pass available for Squirrelmail"
50) 	einfo "as well."
Lars Strojny A keks * initial commit

Lars Strojny authored 17 years ago

51) 
Bernd Wurst Fix minor qa/format issues,...

Bernd Wurst authored 17 years ago

52) 	ewarn "The courierpasswd binary moved from /bin/ to /sbin/. Please check"
53) 	ewarn "all programs that might have hard linked the binary (eg. squirrelmail"
54) 	ewarn "plugin, qmail-smtp, ...)"