Portage is a package management system used by Gentoo Linux
# ChangeLog for net-mail/checkpw
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/checkpw/ChangeLog,v 1.6 2007/05/08 23:09:27 genone Exp $
08 May 2007; Marius Mauch
Replacing einfo with elog
09 Feb 2007; Diego Pettenò
Regenerate digest in Manifest2 format.
16 May 2005; MATSUU Takuto
Fixed inheriting gcc, Bug 92745.
01 Jul 2004; Jeremy Huddleston
virtual/glibc -> virtual/libc
*checkpw-1.01 (12 Mar 2004)
12 Mar 2004;
Initial import.
DIST checkpw-1.01.tar.gz 28498 RMD160 096e922d3ce024ce7603584f63984a08bdb71b8d SHA1 f2f8138c749e67607ff55bafa7a56ad190be6044 SHA256 76732a1a95c1ea7191a10244e442b8fe84692993e532826fc1e43a277798c48b
EBUILD checkpw-1.01.ebuild 1699 RMD160 d07ded85ca301f06ecaa3ac3d154cbe192c028a6 SHA1 af3b651284c29f5777ec00e0894f2efac7d38dc5 SHA256 f8363fdb89f6edb7a2cb15485aac617fdc8f69c9293fd7bd039d6913f55acebd
MISC ChangeLog 730 RMD160 6b1c61f39defb3c481f23bbedc3a697a1bed8803 SHA1 ec8c84de53fb8341f29041eb6ba1c9d08cb0ee44 SHA256 9bd27540ff03978b3ec8501afd4431337bcbaa48c57929e54097136569e5f3ff
MISC metadata.xml 512 RMD160 631dcace95160b3010c5791167038a7c9477c444 SHA1 64e55c7eb74ea7e0dd77bfc07287bfb2dd0ebf9d SHA256 b09b4f1123724db5df8249b58031bfb8c632819d808d62ef8f9acda716115613
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/checkpw/checkpw-1.01.ebuild,v 1.5 2007/05/08 23:09:27 genone Exp $
inherit toolchain-funcs
DESCRIPTION="an implementation of the checkpassword interface that checks a password"
HOMEPAGE="http://checkpw.sourceforge.net/checkpw/"
SRC_URI="mirror://sourceforge/checkpw/${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
IUSE="static"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~amd64 ~ia64"
DEPEND="virtual/libc"
src_unpack() {
unpack ${A}
cd ${S}
# the -s is from the original build
LDFLAGS="${LDFLAGS} -s"
use static && LDFLAGS="${LDFLAGS} -static"
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
echo ".maildir" > conf-maildir || die
if [ -z "$QMAIL_HOME" ]; then
QMAIL_HOME="/var/qmail"
ewarn "QMAIL_HOME is null! Using default."
ewarn "Create the qmail user and set the homedir to your desired location."
fi
einfo "Using $QMAIL_HOME as qmail's default home directory."
echo ${QMAIL_HOME} > conf-qmail || die
sed -i -e 's/head -1/head -n 1/g' Makefile auto_*.do default.do || die
}
src_compile() {
emake || die
}
src_install() {
into /
dobin checkpw checkapoppw selectcheckpw loginlog
fperms 0700 /bin/checkpw /bin/checkapoppw /bin/selectcheckpw
dodoc CHANGES INSTALL README
docinto samples
dodoc run-{apop,both,multidir,multipw,pop,rules}
}
pkg_postinst() {
elog
elog "How to set password:"
elog
elog " % echo 'YOURPASSWORD' > ~/.maildir/.password"
elog " % chmod 600 ~/.maildir/.password"
elog
elog "Replace YOURPASSWORD with your plain password."
elog
}
The file has read and write permissions to the user only.
checkpw checks real user's password. For virtual users, vucheckpw is available
http://checkpw.sourceforge.net/vucheckpw/