You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-auth/pam_mktemp/pam_mktemp-1.0.3.ebuild

39 lines
1.0 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mktemp/pam_mktemp-1.0.3.ebuild,v 1.18 2011/04/30 20:28:32 ulm Exp $
inherit toolchain-funcs pam
DESCRIPTION="Create per-user private temporary directories during login"
HOMEPAGE="http://www.openwall.com/pam/"
SRC_URI="http://www.openwall.com/pam/modules/${PN}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
IUSE=""
DEPEND="virtual/pam"
RDEPEND="${DEPEND}"
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} -fPIC" \
LDFLAGS="${LDFLAGS} --shared -Wl,--version-script,\$(MAP)" \
|| die "emake failed"
}
src_install() {
dopammod pam_mktemp.so
dodoc README
}
pkg_postinst() {
elog "To enable pam_mktemp put something like"
elog
elog "session optional pam_mktemp.so"
elog
elog "into /etc/pam.d/system-auth!"
}