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_usb/pam_usb-0.5.0.ebuild

54 lines
1012 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils pam python-single-r1 toolchain-funcs
DESCRIPTION="A pam module to provide authentication using USB device"
HOMEPAGE="http://pamusb.org/"
SRC_URI="mirror://sourceforge/pamusb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEPEND="dev-libs/libxml2
sys-apps/dbus
virtual/pam"
RDEPEND="${COMMON_DEPEND}
${PYTHON_DEPS}
dev-python/dbus-python
dev-python/pygobject:2
sys-apps/pmount
sys-fs/udisks:0"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig"
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${P}-openpam.patch
python_fix_shebang tools/pamusb-{conf,agent} #413025
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
emake \
DESTDIR="${D}" \
DOCS_DEST="${D}/usr/share/doc/${PF}" \
PAM_USB_DEST="${D}/$(getpam_mod_dir)" \
install
dodoc ChangeLog README.md
}