diff options
author | Marcelo Góes <vanquirius@gentoo.org> | 2008-07-16 00:56:51 +0000 |
---|---|---|
committer | Marcelo Góes <vanquirius@gentoo.org> | 2008-07-16 00:56:51 +0000 |
commit | bc91e65fe8fdeed3bb8eacb846bb905aa1d02967 (patch) | |
tree | 11ecd6a627acd1979bdca42e35bcbace8b2105b1 /sys-fs/vhba | |
parent | Stable on amd64 (bug #231884) (diff) | |
download | gentoo-2-bc91e65fe8fdeed3bb8eacb846bb905aa1d02967.tar.gz gentoo-2-bc91e65fe8fdeed3bb8eacb846bb905aa1d02967.tar.bz2 gentoo-2-bc91e65fe8fdeed3bb8eacb846bb905aa1d02967.zip |
1.1.0 version bump. Thanks to Pham Ngoc Hai <pngochai at yahoo dot com> in bug
198672.
(Portage version: 2.1.4.4)
Diffstat (limited to 'sys-fs/vhba')
-rw-r--r-- | sys-fs/vhba/ChangeLog | 8 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-1.1.0.ebuild | 56 |
2 files changed, 63 insertions, 1 deletions
diff --git a/sys-fs/vhba/ChangeLog b/sys-fs/vhba/ChangeLog index b45962b29f2b..e09eb7c6c0f3 100644 --- a/sys-fs/vhba/ChangeLog +++ b/sys-fs/vhba/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-fs/vhba # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/ChangeLog,v 1.4 2008/06/26 13:27:30 coldwind Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/ChangeLog,v 1.5 2008/07/16 00:56:51 vanquirius Exp $ + +*vhba-1.1.0 (16 Jul 2008) + + 16 Jul 2008; Marcelo Goes <vanquirius@gentoo.org> +vhba-1.1.0.ebuild: + 1.1.0 version bump. Thanks to Pham Ngoc Hai <pngochai at yahoo dot com> in + bug 198672. 26 Jun 2008; Santiago M. Mola <coldwind@gentoo.org> vhba-1.0.0.ebuild: Add ~amd64 keyword wrt bug #198672 diff --git a/sys-fs/vhba/vhba-1.1.0.ebuild b/sys-fs/vhba/vhba-1.1.0.ebuild new file mode 100644 index 000000000000..ef4106b7bb7d --- /dev/null +++ b/sys-fs/vhba/vhba-1.1.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/vhba/vhba-1.1.0.ebuild,v 1.1 2008/07/16 00:56:51 vanquirius Exp $ + +inherit linux-info linux-mod eutils + +DESCRIPTION="VHBA module provides Virtual (SCSI) Host Bus Adapter for the cdemu suite" +HOMEPAGE="http://cdemu.org" +SRC_URI="mirror://sourceforge/cdemu/vhba-module-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/linux-sources-2.6.19" +RDEPEND="" + +S="${WORKDIR}/vhba-module-${PV}" +MODULE_NAMES="vhba(block:${S})" +BUILD_TARGETS="clean all" + +pkg_setup() { + CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG" + check_extra_config + BUILD_PARAMS="KERNELDIR=${KV_DIR}" + linux-mod_pkg_setup +} + +src_compile() { + linux-mod_src_compile || die "Error: building module failed!" +} + +src_install() { + KV_OBJ="ko" + linux-mod_src_install || die "Error: installing module failed!" + UDEV_RULES="/etc/udev/rules.d/70-vhba.rules" + einfo "Generating UDEV-rules ..." + mkdir -p "${D}"/${UDEV_RULES%/*} + echo -e "# do not edit this file, it will be overwritten on update\n#" \ + > "${D}"/${UDEV_RULES} + echo -e "KERNEL==\"vhba_ctl\", NAME=\"%k\", MODE=\"0660\", OWNER=\"root\",GROUP=\"cdemu\"" >> "${D}"/${UDEV_RULES} +} + +pkg_postinst() { + einfo "Generating cdemu group ..." + enewgroup cdemu + + elog "Don't forget to add your user to the cdemu group " + elog "if you want to be able to use virtual cdemu devices." + linux-mod_pkg_postinst +} + +pkg_postrm() { + linux-mod_pkg_postrm +} |