blob: 4af838c082b558fa3e4e85114a968fb9241eaa8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/poppassd_ceti/poppassd_ceti-1.8.5-r1.ebuild,v 1.2 2005/07/26 23:18:20 cryos Exp $
inherit eutils toolchain-funcs pam
MY_PN="poppassd"
MY_P="${MY_PN}-${PV}"
S=${WORKDIR}/${MY_P}
DESCRIPTION="Password change daemon with PAM support"
HOMEPAGE="http://echelon.pl/pubs/poppassd.html"
SRC_URI="http://echelon.pl/pubs/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="cracklib"
DEPEND="virtual/pam"
RDEPEND="${DEPEND}
sys-apps/xinetd
cracklib? ( sys-libs/cracklib )"
src_compile() {
$(tc-getCC) -c ${CFLAGS} ${MY_PN}.c || die "Compile failed."
$(tc-getCC) -o poppassd ${MY_PN}.o -lpam -ldl || die "Linking failed."
}
src_install() {
dodoc README
pamd_mimic_system poppassd auth account password
if use cracklib; then
echo -e "password\trequired\tpam_cracklib.so retry=3" >> \
${D}/etc/pam.d/poppassd
fi
insinto /etc/xinetd.d
newins ${FILESDIR}/poppassd.xinetd poppassd
insinto /usr/sbin
insopts -o root -g bin -m 500
doins poppassd || die "Install failed."
}
|