inherit eutils MY_P="${P/_rc/-RC}" DESCRIPTION="A password checking interface that works with the courier-imap authdaemon" HOMEPAGE="http://www.arda.homeunix.net/store/" SRC_URI="http://www.arda.homeunix.net/store/${MY_P}.tar.gz" S="${WORKDIR}/${MY_P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="" DEPEND=">=net-libs/courier-authlib-0.57" src_unpack() { unpack ${A} cd ${S} } src_compile() { CFLAGS="$CFLAGS -Wl,-z,now" econf || die "Error in configure" emake || die "Error in make" } src_install() { into / einfo Installing courierpasswd setuid root. dosbin courierpasswd || die "Cannot install courierpasswd" # chown root $(sbindir)/courierpasswd fperms 4511 /sbin/courierpasswd dobin ${FILESDIR}/mailpasswd doman courierpasswd.8 dodoc AUTHORS INSTALL COPYING NEWS README ChangeLog } warning() { ewarn "courierpasswd has been installed setuid root. Otherwise the authdeamon" ewarn "wouldn't allow courierpasswd to connect." einfo "To use courierpasswd for qmail AUTH you have to modify einfo "/var/qmail/control/conf-smtpd and set "QMAIL_SMTP_CHECKPASSWORD=\"/sbin/courierpasswd\"." einfo "You can use courierpasswd to change you e-mail password by executing" einfo "mailpasswd or courierpasswd directly (see manpage). There is a" einfo "courierchange_pass is a courierchange_pass available for Squirrelmail" einfo "as well." ewarn "The courierpasswd binary moved from /bin/ to /sbin/. Please check" ewarn "all programs that might have hard linked the binary (eg. squirrelmail" ewarn "plugin, qmail-smtp, ...)" }