blob: be2990b766030f5afe32f747d653cbb3faa76323 (
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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/poppassd_pam/poppassd_pam-1.0.ebuild,v 1.5 2004/07/01 22:33:39 eradicator Exp $
inherit eutils gcc
DESCRIPTION="POP Password Changer w/PAM support"
HOMEPAGE="http://freshmeat.net/projects/poppassd_pam/ http://netwinsite.com/poppassd/"
SRC_URI="http://scholar.uws.edu.au/~97074683/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="virtual/libc
>=sys-libs/pam-0.75-r8"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/missing-stdio.patch
}
src_compile() {
$(gcc-getCC) -c ${CFLAGS} ${PN}.c || die "compile failed"
$(gcc-getCC) -o poppassd ${PN}.o -lpam || die "linking failed"
}
src_install() {
dodoc README
insinto /etc/pam.d
newins ${FILESDIR}/poppassd.pam poppassd
insinto /etc/xinetd.d
newins ${FILESDIR}/poppassd.xinetd poppassd
insinto /usr/bin
insopts -o root -g bin -m 500
doins poppassd || die
}
pkg_postinst() {
einfo "Make sure to modify /etc/services and add..."
einfo "poppassd 106/tcp"
}
|