# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.5.0.ebuild,v 1.11 2013/05/05 01:27:02 ssuominen Exp $ 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 }