Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mhvtl 1.4-7

  • Loading branch information...
commit 2fa65d46049ae8c1993fd18b84095fed198a9449 1 parent 0093f8c
@adessemond authored
View
2  sys-block/mhvtl-modules/Manifest
@@ -1,3 +1,5 @@
AUX 0001_make-gentoo-friendly-Makefiles.patch 661 SHA256 26e1a642dfe525ab68cca9e1c3e60de99a69b4c69bbca2ff42f70e9a351c7557 SHA512 299c3227e1cf751dcb4c6ebc629fc82d30ed488be012f01ec8799d013ee001fd5f1b598b23b7450077858edfa89b24d7f4783b0321e70e72dbac800171d11d24 WHIRLPOOL 390c3f1300f63de446da43adb8ce2f0ac43e231f7f791e8bddb4c3bcb5bb37440025bd47682be720a3252f353d5828f4df438c00842d495cefdc7066db26eb1d
DIST mhvtl-1.4-4.tgz 208545 SHA256 4f27524e987c0cb9bf3dfc12b47a132bd3ef5339b1fff551452fdfc24d2be26f SHA512 f57f059ee53611951d12598ca2affa197fcd25020b75cefe53799c6a73c82bbc21f8b83666a53a9742c495a5571b7fac7ea7461c44a32daa191553dc2f9b6d8e WHIRLPOOL 400a7066e3c25a64f41d3714a25b23134d30837e904e0cd11b649ed124e0e7e29b1196956933f598bafc842467f6a2f35f520111c0b38b6e8bb4bc62e049c1da
+DIST mhvtl-1.4-6.tgz 221036 SHA256 f3a0974bcd6f564eae6f1932c555bebd0b708e1a3db2dae344f4e0975f55ba02 SHA512 2be6f88931d139f7c693b8a19b27032b9ba6b9937733ed145717d04da21af755ecb96a24e8a59c267e5fb0da233aecb05023e2b9fd665cf0b00491ddbb0dddc6 WHIRLPOOL 53e5e97839fc9d28a26e64d2e44264adc1155669460ddde2acdad96689f5ad926dabb1df69d3f0bb6cbc8d3c32c0e6434d628bf156c5f77b53c18c2e6f099761
EBUILD mhvtl-modules-1.4_p4.ebuild 1102 SHA256 a1504b217276e04f2fe4808d46a2d8976be24ed41c210d4f5ca16174df34ed7a SHA512 e3ed3eceb38a686c4fe564e785b9905b7c84cb8eae3da8fd00dc6b768ec9557f778926c6c447ef0b0216033e2d690c1a11feb593fdb946b18c51122e08c410fe WHIRLPOOL fdd0df9bf42588abc808ddfacf11217e5aae78aa4e3ca4335fdb1e54d1b1a1644d99e307d4a2981ab09654d55b28f4a346e272cee5d83fc13464abf324e13148
+EBUILD mhvtl-modules-1.4_p7.ebuild 1102 SHA256 4ed5e0a79d4f40077705933fc3da66449c12e222d9f0a4c5c2a7057fd456e27f SHA512 1bb6964a6446554b2060065bbc4e5963f3680191a0635391ee17afa64e91d3e8a9aa3a0dceaa822dc4205915c080c35e87a00c3776c0410eac98245e8f323f50 WHIRLPOOL 3a3be79694a7eb8a060d06b7f3f7a34c69401f8e0e81e97a0acc17d76c0c3e2b4658f004bf3f6711edfd221c30983f286c49cc44ed6c67e2a21c9f362f9a32ef
View
47 sys-block/mhvtl-modules/mhvtl-modules-1.4_p7.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Copyright 2012 Adrien Dessemond <adrien.dessemond@funtoo.org>
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+EAPI="4"
+
+inherit linux-mod eutils
+
+DESCRIPTION="mhvtl kernel modules required for sys-block/mhvtl-utils (Virtual Tape Library)"
+HOMEPAGE="http://sites.google.com/site/linuxvtl2"
+SRC_URI="http://sites.google.com/site/linuxvtl2/mhvtl-2013-03-22.tgz -> mhvtl-1.4-6.tgz"
+S=${WORKDIR}/mhvtl-1.4
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~sparc"
+
+MODULE_NAMES="mhvtl(block:${S}/kernel:${S}/kernel)"
+
+pkg_setup() {
+
+ # MHVTL 1.x requires a kernel >= 2.6.19
+ kernel_is ge 2 6 19 || die "Linux kernel >= 2.6.19 required"
+
+ CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG"
+ check_extra_config
+ BUILD_PARAMS="KDIR=${KV_DIR}"
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/0001_make-gentoo-friendly-Makefiles.patch
+}
+
+src_compile() {
+
+ linux-mod_src_compile || die "linux-mod_src_compile"
+}
+
+src_install() {
+ linux-mod_src_install || die "Error: installing module failed!"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+}
View
1  sys-block/mhvtl-utils/Manifest
@@ -3,3 +3,4 @@ AUX 0002_make-vtl-media-not-failling-with-nologin.patch 334 SHA256 e86743d59c595
AUX mhvtl.init.d 12074 SHA256 6c51778220af06d14aa1d11ccd09065bfdde9454b11c966e96e4151b6a058a82 SHA512 5c311a58d4d986d22b70a3d53a139691842ff3dff915c14f7cc2aa0284c1d9c30e23b6613d5cb44d61f4f6544b93dbefadcb2e2963186fd1f370e280f6bc211c WHIRLPOOL c987ea1a0b0237c023c68876825679b40347705673af220d6b0cd1b21b3db2c6b5e1ace45b7ca8c91b4c59c523492a2d044e2a5f4ff9dac0b72c0c3a1b66d3b7
DIST mhvtl-1.4-4.tgz 208545 SHA256 4f27524e987c0cb9bf3dfc12b47a132bd3ef5339b1fff551452fdfc24d2be26f SHA512 f57f059ee53611951d12598ca2affa197fcd25020b75cefe53799c6a73c82bbc21f8b83666a53a9742c495a5571b7fac7ea7461c44a32daa191553dc2f9b6d8e WHIRLPOOL 400a7066e3c25a64f41d3714a25b23134d30837e904e0cd11b649ed124e0e7e29b1196956933f598bafc842467f6a2f35f520111c0b38b6e8bb4bc62e049c1da
EBUILD mhvtl-utils-1.4_p4.ebuild 1621 SHA256 f0bde4372a1c74ad58f993c7709b8f9dabcb2f9b53b33d6fc1f610b43ecd3d45 SHA512 2f64806a8c19ce4239c1f7fc8689188178c8b10942dabd6e20889494b5cd887cadf4fb711cfc09571bfb441aadd8b0c658d9301ae3816ab3b0d0934bf47cface WHIRLPOOL 6ab1cbc01f119316f74924d004dcbe7e87e07415a9e2910877d87a7a6ab8c81873f0de4f19feb4ba36ca251c4dd2f02777147d405b4aff5e0377dfa5866aa56c
+EBUILD mhvtl-utils-1.4_p7.ebuild 1621 SHA256 f0bde4372a1c74ad58f993c7709b8f9dabcb2f9b53b33d6fc1f610b43ecd3d45 SHA512 2f64806a8c19ce4239c1f7fc8689188178c8b10942dabd6e20889494b5cd887cadf4fb711cfc09571bfb441aadd8b0c658d9301ae3816ab3b0d0934bf47cface WHIRLPOOL 6ab1cbc01f119316f74924d004dcbe7e87e07415a9e2910877d87a7a6ab8c81873f0de4f19feb4ba36ca251c4dd2f02777147d405b4aff5e0377dfa5866aa56c
View
70 sys-block/mhvtl-utils/mhvtl-utils-1.4_p7.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Copyright 2012 Adrien Dessemond <adrien.dessemond@funtoo.org>
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="SCSI Virtual Tape Library (VTL)"
+HOMEPAGE="http://sites.google.com/site/linuxvtl2"
+SRC_URI="http://sites.google.com/site/linuxvtl2/mhvtl-2012-09-13.tgz -> mhvtl-1.4-4.tgz"
+S=${WORKDIR}/mhvtl-1.4
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~sparc"
+
+DEPEND=" sys-fs/lsscsi
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-apps/sg3_utils
+ >=sys-block/mhvtl-modules-1.4
+"
+RDEPEND=""
+IUSE="doc"
+
+BUILD_TARGETS="clean default"
+MHVTL_HOME_PATH=/var/spool/media/vtl
+LUSER='vtl'
+LGROUP='vtl'
+
+pkg_setup() {
+
+ enewgroup ${LGROUP}
+ enewuser ${LUSER} -1 -1 ${MHVTL_HOME_PATH} "${LGROUP},tape"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/0001_make-gentoo-friendly-Makefiles.patch"
+ epatch "${FILESDIR}/0002_make-vtl-media-not-failling-with-nologin.patch"
+}
+
+src_compile() {
+ emake clean || die
+ emake -j1 USR=${LUSER} GROUP=${LGROUP} MHVTL_HOME_PATH=${MHVTL_HOME_PATH} || die "emake failed"
+}
+
+src_install() {
+
+ emake USR=${LUSER} GROUP=${LGROUP} MHVTL_HOME_PATH=${MHVTL_HOME_PATH} DESTDIR=${D} install || die "emake failed"
+
+ einfo "Generating udev rules ..."
+ dodir /lib/udev/rules.d/
+ cat > "${D}"/lib/udev/rules.d/70-mhvtl.rules <<-EOF || die
+ # do not edit this file, it will be overwritten on update
+ #
+ KERNEL=="mhvtl[0-9]*", MODE="0660", OWNER="vtl", GROUP="vtl"
+ EOF
+
+ newinitd "${FILESDIR}"/mhvtl.init.d mhvtl || die
+
+ if use doc; then
+ dohtml -r doc/* || die
+ fi
+
+ doman man/*.1 || die
+ dodoc README INSTALL
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.