From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QruFH-0008HP-1i for garchives@archives.gentoo.org; Fri, 12 Aug 2011 16:06:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 666BE21C36B; Fri, 12 Aug 2011 16:04:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 118E721C36B for ; Fri, 12 Aug 2011 16:04:19 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 52AC11B407D for ; Fri, 12 Aug 2011 16:04:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EB9648004F for ; Fri, 12 Aug 2011 16:04:17 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <57d0709f605a13345ef49d5d1479d1f3a4d60a96.dilfridge@gentoo> Subject: [gentoo-commits] dev/dilfridge:master commit in: sci-libs/linux-gpib/ X-VCS-Repository: dev/dilfridge X-VCS-Files: sci-libs/linux-gpib/ChangeLog sci-libs/linux-gpib/Manifest sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild X-VCS-Directories: sci-libs/linux-gpib/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 57d0709f605a13345ef49d5d1479d1f3a4d60a96 Date: Fri, 12 Aug 2011 16:04:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: cc854871332c83e16950bbebae6db680 commit: 57d0709f605a13345ef49d5d1479d1f3a4d60a96 Author: Andreas K. Huettel physik uni-r <= DOT> de> AuthorDate: Fri Aug 12 15:27:35 2011 +0000 Commit: Andreas H=C3=BCttel gentoo org> CommitDate: Fri Aug 12 15:27:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/dilfridge.git;= a=3Dcommit;h=3D57d0709f Work in progress (Portage version: 2.1.10.3/git/Linux i686, unsigned Manifest commit) --- sci-libs/linux-gpib/ChangeLog | 5 + sci-libs/linux-gpib/Manifest | 3 +- sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild | 170 +++++++++++++++++= ++++++ 3 files changed, 177 insertions(+), 1 deletions(-) diff --git a/sci-libs/linux-gpib/ChangeLog b/sci-libs/linux-gpib/ChangeLo= g index a37d24a..946818b 100644 --- a/sci-libs/linux-gpib/ChangeLog +++ b/sci-libs/linux-gpib/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ =20 +*linux-gpib-3.2.16-r1 (12 Aug 2011) + + 12 Aug 2011; +linux-gpib-3.2.16-r1.ebuild: + Work in progress + *linux-gpib-3.2.16 (12 Aug 2011) =20 12 Aug 2011; +linux-gpib-3.2.16.ebuild: diff --git a/sci-libs/linux-gpib/Manifest b/sci-libs/linux-gpib/Manifest index 0c59046..d63d4dd 100644 --- a/sci-libs/linux-gpib/Manifest +++ b/sci-libs/linux-gpib/Manifest @@ -3,7 +3,8 @@ DIST gpib_firmware-2006-11-12.tar.gz 169357 RMD160 9784b0= 26ef41ce75439c635610ec5 DIST linux-gpib-3.2.15.tar.gz 1150433 RMD160 010d88374c8c6b243f4cffa292c= 70983c59c989a SHA1 405deb45972fd4e9a0648fca1182260dc7caa84f SHA256 0489ef= 5ce337a8a5b0d6ca702aee8b0218c3d5c07dc92b50330e80d50e769682 DIST linux-gpib-3.2.16.tar.gz 1189792 RMD160 943f6c09ec54b03c7179bace50d= 2a3b9e0e413a0 SHA1 1f6e501a4f84da39ffccf9f2fd45d390f5d96f75 SHA256 a1d158= 679a41ae48f826c5cbcb08d39839c65606dcdffb6a6f680554c6286c5e EBUILD linux-gpib-3.2.15.ebuild 5096 RMD160 bd7f937f4e6c0390cf22a006a635= dd6b7cdcc9d1 SHA1 599fb05ca34775f7f09eb61e2f50c3e8e3042eee SHA256 b78eebd= 993cc358b8b0421ab7ea53fcb0fb2b36ffbd0cdacfe78d8f0e8e746bc +EBUILD linux-gpib-3.2.16-r1.ebuild 5065 RMD160 771744e7a028a4172d2263238= 6e7c85c1f55837f SHA1 15508805090332142e53829f7c9a24224c6a387b SHA256 a4f0= e05227b56245f3d84821a6d67ce988ab7863fd908d76e73e2bc9f7de29f0 EBUILD linux-gpib-3.2.16.ebuild 4983 RMD160 bb17a163e19ed8f9d8ca366b212a= ea16196c81d6 SHA1 5c3c85ed0167786bbdb8ffcabeea21a5679fbe45 SHA256 3b00b49= f896832b934136a9553b0a060c0f47407491c520d2fc30a3b67cf8fb3 -MISC ChangeLog 1421 RMD160 77ac29db7bb6a8ca2c043dd53c4a3a6a6ce430c5 SHA1= 9336c69da180d5478eaf4c14040d7ed8544a3ab3 SHA256 bf36e422bec47feb3217ceb2= e12135d646b864cce77b09c31f505e8b60ee0545 +MISC ChangeLog 1544 RMD160 015bc5151fbae59668c5710d0dbc7711b38c11ab SHA1= da9237debaa5bb79a24b3109dee1b0bba6edb1d8 SHA256 87558eace63f2129ff2f125b= 72ddd7bf2a2ea1112f4ebbd0f86ee69f6b3b903a MISC metadata.xml 333 RMD160 53cc452da426b779f6231218f7700176efaa1418 SH= A1 8041c003a5532b89964cd8b3deba4bf97a3a3b3f SHA256 94def6ae5ea540aab89b20= 4a106ac9a1ffd7f6e07d537e445bb7373e3670d367 MISC notes.txt 953 RMD160 841091fe3ca13eb445c491dd939002f93d68f2c1 SHA1 = 342345998d98760ec62cd865eb27a36d7f9acabc SHA256 ac285c8b8fc201521a1cc4e40= e8fdd8530f0456a08cb0362bb22dccdd88ccc44 diff --git a/sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild b/sci-libs/l= inux-gpib/linux-gpib-3.2.16-r1.ebuild new file mode 100644 index 0000000..b43ed3b --- /dev/null +++ b/sci-libs/linux-gpib/linux-gpib-3.2.16-r1.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/linux-gpib/linux-gpib-3.2.16= .ebuild,v 1.1 2011/05/14 17:05:08 dilfridge Exp $ + +EAPI=3D4 + +PERL_EXPORT_PHASE_FUNCTIONS=3Dno + +inherit base linux-mod autotools perl-module + +DESCRIPTION=3D"Kernel module and driver library for GPIB (IEEE 488.2) ha= rdware" +HOMEPAGE=3D"http://linux-gpib.sourceforge.net/" +SRC_URI=3D"mirror://sourceforge/linux-gpib/${P}.tar.gz + firmware? ( http://linux-gpib.sourceforge.net/firmware/gpib_firmware-20= 06-11-12.tar.gz )" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"" +IUSE=3D"pcmcia static debug guile perl php python tcl doc firmware" + +RDEPEND=3D" + tcl? ( dev-lang/tcl ) + guile? ( dev-scheme/guile ) + perl? ( dev-lang/perl ) + php? ( dev-lang/php ) + python? ( dev-lang/python ) + firmware? ( sys-apps/fxload ) +" + +DEPEND=3D"${RDEPEND} + sys-kernel/module-rebuild + doc? ( app-text/docbook-sgml-utils ) +" + +PATCHES=3D( "${FILESDIR}/${PN}-3.2.15-build.patch" ) + +pkg_setup () { + perl-module_pkg_setup + linux-mod_pkg_setup + + case ${KV_MINOR} in + 4) die "This version of Linux-GPIB requires a version 2.6.x of the Lin= ux kernel. 2.4.x kernels are supported by Linux-GPIB versions 3.1.x." ;; + 6) ;; + *) die "Unsupported kernel version '${KV_FULL}'." ;; + esac + + if [ ${KV_PATCH} -lt 8 ] ; then + die "Kernel versions older than 2.6.8 are not supported." + fi +} + +src_prepare () { + base_src_prepare + eautoreconf +} + +src_configure() { + set_arch_to_kernel + econf \ + $(use_enable pcmcia) \ + $(use_enable static) \ + $(use_enable debug driver-debug) \ + $(use_enable guile guile-binding) \ + $(use_enable perl perl-binding) \ + $(use_enable php php-binding) \ + $(use_enable python python-binding) \ + $(use_enable tcl tcl-binding) \ + $(use_enable doc documentation) \ + --with-linux-srcdir=3D${KV_DIR} \ + || die +} + +src_compile() { + emake +} + +src_install () { + set_arch_to_kernel + + FIRM_DIR=3D/usr/share/usb + + # Here I changed the sbindir in order to install the gpib_config to /sb= in, + # not /usr/sbin. This is done to enable running gpib_config from + # the modprobe.conf file: if /usr is not in the root file system, + # but a mounted partition then gpib_congig cannot be found in the momen= t when + # modprobe is run. + make \ + DESTDIR=3D${D} \ + INSTALL_MOD_PATH=3D${D} \ + HOTPLUG_USB_CONF_DIR=3D${D}/etc/hotplug/usb \ + USB_FIRMWARE_DIR=3D${D}${FIRM_DIR} \ + docdir=3D/usr/share/doc/${PF}/html \ + install || die "install problem" + + echo "KERNEL=3D=3D\"gpib[0-9]*\", MODE=3D\"0660\", GROUP=3D\"gpib\"" >>= 99-gpib.rules + insinto /etc/udev/rules.d/ + doins 99-gpib.rules + + dodoc doc/linux-gpib.pdf ChangeLog AUTHORS README* NEWS + + insinto /etc + newins util/templates/gpib.conf gpib.conf + newins util/templates/gpib.conf gpib.conf.example + + if use pcmcia ; then + dodir /etc/pcmcia + insinto /etc/pcmcia + doins "${S}"/etc/pcmcia/* + fi + + if use firmware ; then + + insinto "${FIRM_DIR}/agilent_8237a" + doins "${WORKDIR}"/gpib_firmware-2006-11-12/agilent_8237a/* + + insinto "${FIRM_DIR}/ni_gpib_usb_b" + doins "${WORKDIR}"/gpib_firmware-2006-11-12/ni_gpib_usb_b/* + + insinto "/usr/share/linux-gpib/hp_82341" + doins "${WORKDIR}"/gpib_firmware-2006-11-12/hp_82341/* + + fi +} + +pkg_preinst () { + linux-mod_pkg_preinst + enewgroup gpib +} + +pkg_postinst () { + linux-mod_pkg_postinst + + einfo "You need to run the 'gpib_config' utility to setup the driver be= fore" + einfo "you can use it. In order to do it automatically you can add to y= our" + einfo "start script something like this (supposing the appropriate driv= er" + einfo "is loaded on the startup):" + einfo " gpib_config --minor 0" + einfo "" + einfo "To give a user access to the computer's gpib board you will have= to add" + einfo "them to the group 'gpib' or, you could change the permissions on= the device" + einfo "files /dev/gpib[0-15] to something you like better, using 'chmod= '." + einfo "" + einfo "Edit /etc/gpib.conf to match your interface board, and any devic= es you wish" + einfo "to open via ibfind(). See the documentation in /usr/share/linux= -gpib/html for" + einfo "more information." + einfo "" + + if use pcmcia ; then + einfo "For PCMCIA cards:" + einfo "All files needed for a PCMCIA board were copied to /etc/pcmcia.= " + einfo "You may wish to edit the options passed to the gpib_config call= in the" + einfo "/etc/pcmcia/linux-gpib-pcmcia script." + einfo "You may need to send a SIGHUP signal to the cardmgr daemon to f= orce it" + einfo "to reload the files in /etc/pcmcia (alternatively you could use= your" + einfo "pcmcia init.d script to restart the cardmgr, or you could just = reboot)." + einfo "The driver module will be loaded as needed by the cardmgr." + einfo "" + fi + + if use firmware ; then + einfo "For Agilent (HP) 82341C and 82341D cards:" + einfo "The firmware for these boards is uploaded by passing the approp= riate" + einfo "firmware file from /usr/share/linux-gpib/hp_82341 directory to" + einfo "gpib_config using the -I or --init-data command line option. Ex= ample:" + einfo "gpib_config --minor 0 --init-data \\" + einfo "/usr/share/linux-gpib/hp_82341/hp_82341c_fw.bin" + einfo "" + fi + +}