/[gentoo-x86]/sys-auth/pam_usb/pam_usb-0.5.0.ebuild
Gentoo

Contents of /sys-auth/pam_usb/pam_usb-0.5.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Mon May 28 19:43:38 2012 UTC (2 years, 2 months ago) by johu
Branch: MAIN
Changes since 1.8: +2 -2 lines
Stable for x86, wrt bug #407355

(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_usb/pam_usb-0.5.0.ebuild,v 1.8 2012/05/25 14:01:07 ago Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit eutils pam python toolchain-funcs
10
11 DESCRIPTION="A pam module to provide authentication using USB device"
12 HOMEPAGE="http://pamusb.org/"
13 SRC_URI="mirror://sourceforge/pamusb/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19
20 COMMON_DEPEND="dev-libs/libxml2
21 sys-apps/dbus
22 virtual/pam"
23 RDEPEND="${COMMON_DEPEND}
24 dev-python/celementtree
25 dev-python/dbus-python
26 dev-python/pygobject:2
27 sys-apps/pmount
28 sys-fs/udisks:0"
29 DEPEND="${COMMON_DEPEND}
30 virtual/pkgconfig"
31
32 pkg_setup() {
33 python_set_active_version 2
34 python_pkg_setup
35 }
36
37 src_prepare() {
38 epatch "${FILESDIR}"/${P}-openpam.patch
39 python_convert_shebangs 2 tools/pamusb-{conf,agent} #413025
40 }
41
42 src_compile() {
43 emake CC="$(tc-getCC)"
44 }
45
46 src_install() {
47 emake \
48 DESTDIR="${D}" \
49 DOCS_DEST="${D}/usr/share/doc/${PF}" \
50 PAM_USB_DEST="${D}/$(getpam_mod_dir)" \
51 install
52
53 dodoc ChangeLog README.md
54 }

  ViewVC Help
Powered by ViewVC 1.1.20