# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit subversion DESCRIPTION="USB Authentication Module" HOMEPAGE="http://usbng.delta-xi.net" ESVN_REPO_URI="svn://delta-xi.net/svn/pam_usbng" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" #RESTRICT="strip" DEPEND=">=dev-util/subversion-1.5.4" RDEPEND="${DEPEND} >=sys-libs/pam-1.0.2 >=sys-fs/udev-133 >=dev-libs/openssl-0.9.8i >=sys-apps/parted-1.8.8 >=sys-auth/pambase-20081028-r1" S="${WORKDIR}/${PN}" src_unpack() { subversion_src_unpack cd ${S} use amd64 && sed -i "/^SHARED =/ s,$, -fPIC," Makefile } src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" } pkg_postinst() { ewarn "You may want to start uaconf.pl or uawritedev now" ewarn "and make sure that your main authentication USB device is plugged in." ewarn "Also _all_ data on the selected device will be _lost_!" echo ewarn "Copy the new config to /etc/pamauth-ng.conf" ebeep 5 epause 10 }