Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 588606
Collapse All | Expand All

(-)/usr/portage/sys-auth/pam_radius/pam_radius-1.3.17-r1.ebuild (-10 / +7 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
Lines 15-27 Link Here
15
KEYWORDS="~amd64 ~x86"
15
KEYWORDS="~amd64 ~x86"
16
IUSE=""
16
IUSE=""
17
17
18
DEPEND="virtual/pam"
18
DEPEND="virtual/pam
19
	net-dialup/freeradius"
19
RDEPEND="${DEPEND}"
20
RDEPEND="${DEPEND}"
20
21
21
src_prepare() {
22
	epatch "${FILESDIR}"/${P}-gentoo.patch
23
}
24
25
doecho() {
22
doecho() {
26
	echo "$@"
23
	echo "$@"
27
	"$@" || die
24
	"$@" || die
Lines 32-38 Link Here
32
	# rather simply re-create it here.
29
	# rather simply re-create it here.
33
30
34
	pammod_hide_symbols
31
	pammod_hide_symbols
35
	doecho $(tc-getCC) ${CFLAGS} -shared -fPIC ${LDFLAGS} *.c -lpam -o pam_radius_auth.so
32
	doecho $(tc-getCC) ${CFLAGS} -shared -fPIC ${LDFLAGS} src/*.c -lpam -o pam_radius_auth.so
36
}
33
}
37
34
38
src_install() {
35
src_install() {
Lines 40-51 Link Here
40
37
41
	insopts -m600
38
	insopts -m600
42
	insinto /etc/raddb
39
	insinto /etc/raddb
43
	doins "${FILESDIR}"/server
40
	doins pam_radius_auth.conf
44
41
45
	dodoc README Changelog USAGE
42
	dodoc README.rst Changelog USAGE INSTALL
46
}
43
}
47
44
48
pkg_postinst() {
45
pkg_postinst() {
49
	elog "Before you can use this you'll have to add RADIUS servers to /etc/raddb/server."
46
	elog "Before you can use this you'll have to add RADIUS servers to /etc/raddb/pam_radius_auth.conf."
50
	elog "The usage of pam_radius_auth module is explained in /usr/share/doc/${PF}/USAGE."
47
	elog "The usage of pam_radius_auth module is explained in /usr/share/doc/${PF}/USAGE."
51
}
48
}

Return to bug 588606