blob: 82adfeb0a31af9fe8655fd78b7bbe3b13a3e0e54 [file] [log] [blame]
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit pam autotools multilib
DESCRIPTION="Linux PAM module providing ability to authenticate via a bluetooth compatible device"
HOMEPAGE="http://pam.0xdef.net/"
SRC_URI="http://pam.0xdef.net/source/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/pam
net-wireless/bluez"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${P}-char-locales.patch #412941
epatch "${FILESDIR}"/${P}-bad-log.patch
mv configure.{in,ac} || die
eautoreconf
}
src_configure() {
econf --libdir="$(getpam_mod_dir)"
}
src_install() {
# manual install to avoid sandbox violation and installing useless .la file
dopammod src/.libs/pam_blue.so
newpamsecurity . data/sample.conf bluesscan.conf.sample
dodoc AUTHORS NEWS README ChangeLog
doman doc/${PN}.7
}
pkg_postinst() {
elog "For configuration info, see /etc/security/bluesscan.conf.sample"
elog "http://pam.0xdef.net/doc.html and http://pam.0xdef.net/faq.html"
elog "Edit the file as required and copy/rename to bluesscan.conf when done."
}