diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-04-12 20:40:52 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-04-12 20:40:52 +0000 |
commit | fca21c09657c428b21eab8d688ca95b994e2a780 (patch) | |
tree | 16e3baed87fadc03391445a536943c3bb0d97c75 /sys-apps | |
parent | Stable on sparc, bug #260063 (diff) | |
download | gentoo-2-fca21c09657c428b21eab8d688ca95b994e2a780.tar.gz gentoo-2-fca21c09657c428b21eab8d688ca95b994e2a780.tar.bz2 gentoo-2-fca21c09657c428b21eab8d688ca95b994e2a780.zip |
Version bump.
(Portage version: 13339-svn/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/ifd-gempc/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/ifd-gempc/ifd-gempc-1.0.5.ebuild | 52 |
2 files changed, 59 insertions, 1 deletions
diff --git a/sys-apps/ifd-gempc/ChangeLog b/sys-apps/ifd-gempc/ChangeLog index 3f6c6703ff51..2aa11db73bf2 100644 --- a/sys-apps/ifd-gempc/ChangeLog +++ b/sys-apps/ifd-gempc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/ifd-gempc # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifd-gempc/ChangeLog,v 1.13 2009/04/10 00:39:41 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifd-gempc/ChangeLog,v 1.14 2009/04/12 20:40:52 arfrever Exp $ + +*ifd-gempc-1.0.5 (12 Apr 2009) + + 12 Apr 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +ifd-gempc-1.0.5.ebuild: + Version bump. *ifd-gempc-1.0.4 (10 Apr 2009) diff --git a/sys-apps/ifd-gempc/ifd-gempc-1.0.5.ebuild b/sys-apps/ifd-gempc/ifd-gempc-1.0.5.ebuild new file mode 100644 index 000000000000..1bae84765f51 --- /dev/null +++ b/sys-apps/ifd-gempc/ifd-gempc-1.0.5.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ifd-gempc/ifd-gempc-1.0.5.ebuild,v 1.1 2009/04/12 20:40:52 arfrever Exp $ + +inherit toolchain-funcs + +DESCRIPTION="GemCore based PC/SC reader drivers for pcsc-lite" +HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC" +LICENSE="GPL-2 BSD" +KEYWORDS="~amd64 ~ppc ~x86" +SLOT="0" +SRC_URI="http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/${P}.tar.gz" +IUSE="" +RDEPEND=">=sys-apps/pcsc-lite-1.2.9_beta7 + >=dev-libs/libusb-0.1.10a" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install () { + local pcscdir="$(pkg-config --variable=usbdropdir libpcsclite)" + local conf="/etc/reader.conf.d/${PN}.conf" + emake CC="$(tc-getCC)" DESTDIR="${D}" install || die "emake install failed" + dodoc README* + dodir "$(dirname "${conf}")" + insinto "$(dirname "${conf}")" + newins "${FILESDIR}/reader.conf" "$(basename "${conf}")" + sed -e "s:%PCSC_DRIVERS_DIR%:${pcscdir}:g" -e "s:%libGemPC410%:libGemPC410.so.${PV}:g" -i "${D}${conf}" +} + +pkg_postinst() { + elog "NOTICE:" + elog "1. If you are using GemPC410, modify ${conf}" + elog "2. Run update-reader.conf, yes this is a command..." + elog "3. Restart pcscd" +} + +pkg_postrm() { + # + # Without this, pcscd will not start next time. + # + local conf="/etc/reader.conf.d/${PN}.conf" + if ! [[ -f "${conf}" && -f "$(grep LIBPATH "${conf}" | sed 's/LIBPATH *//' | sed 's/ *$//g' | head -n 1)" ]]; then + [[ -f "${conf}" ]] && rm "${conf}" + update-reader.conf + elog "NOTICE:" + elog "You need to restart pcscd" + fi +} |