summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2005-09-05 22:10:58 +0000
committerDaniel Drake <dsd@gentoo.org>2005-09-05 22:10:58 +0000
commit37108874bfbdd3d3e71b6bccaf9b3576a34e57fc (patch)
treee3ea5a309fb7fe7705322e6b92dbbd1a18bcb92e /sys-fs/udftools
parentUpdate the x509 patches. (diff)
downloadgentoo-2-37108874bfbdd3d3e71b6bccaf9b3576a34e57fc.tar.gz
gentoo-2-37108874bfbdd3d3e71b6bccaf9b3576a34e57fc.tar.bz2
gentoo-2-37108874bfbdd3d3e71b6bccaf9b3576a34e57fc.zip
Add pktcdvd init script, based off work by John Ross Hunt and Eugeny in bug #77726
(Portage version: 1.589-cvs)
Diffstat (limited to 'sys-fs/udftools')
-rw-r--r--sys-fs/udftools/ChangeLog9
-rw-r--r--sys-fs/udftools/Manifest15
-rw-r--r--sys-fs/udftools/files/digest-udftools-1.0.0b-r52
-rw-r--r--sys-fs/udftools/files/pktcdvd.init58
-rw-r--r--sys-fs/udftools/udftools-1.0.0b-r5.ebuild38
5 files changed, 110 insertions, 12 deletions
diff --git a/sys-fs/udftools/ChangeLog b/sys-fs/udftools/ChangeLog
index 71a4cf67a9cf..8ce05f472c36 100644
--- a/sys-fs/udftools/ChangeLog
+++ b/sys-fs/udftools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/udftools
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udftools/ChangeLog,v 1.9 2005/01/02 13:19:50 dsd Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udftools/ChangeLog,v 1.10 2005/09/05 22:10:58 dsd Exp $
+
+*udftools-1.0.0b-r5 (05 Sep 2005)
+
+ 05 Sep 2005; Daniel Drake <dsd@gentoo.org> +files/pktcdvd.init,
+ +udftools-1.0.0b-r5.ebuild:
+ Add pktcdvd init script, based off work by John Ross Hunt and Eugeny in bug
+ #77726
02 Jan 2005; Daniel Drake <dsd@gentoo.org> -udftools-1.0.0b.ebuild:
Remove old versions
diff --git a/sys-fs/udftools/Manifest b/sys-fs/udftools/Manifest
index 6beca18abc45..927ed29a9f72 100644
--- a/sys-fs/udftools/Manifest
+++ b/sys-fs/udftools/Manifest
@@ -1,15 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 d90910c444ef17ee07008500de534636 udftools-1.0.0b-r5.ebuild 834
MD5 5985be441863596e59cc8b64f5fa6855 udftools-1.0.0b-r4.ebuild 892
-MD5 1e6b953a6b6844d30e71d399146ec8d4 ChangeLog 1848
+MD5 27028a7b796596c90aabd1217966bb48 ChangeLog 2067
MD5 0cf47a30a6ac05387d56c265d786ade1 metadata.xml 249
+MD5 a0de64ad528afbcc1703497c2c4d0d02 files/pktcdvd.init 1220
MD5 3e4db84bced51283c2de39869e96e554 files/cdrwtool-linux2.6-fix-v2.patch 876
MD5 d52ea5d393bd61a45f983ebc01703d93 files/digest-udftools-1.0.0b-r4 137
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFB1/uQiJcSIUGNthERAgpkAJ9Uh0MGYrMJ+ledhrhpcGSnNiGQSQCdErJF
-Zao3G27paJvQS2utsj4kMig=
-=42d1
------END PGP SIGNATURE-----
+MD5 d52ea5d393bd61a45f983ebc01703d93 files/digest-udftools-1.0.0b-r5 137
diff --git a/sys-fs/udftools/files/digest-udftools-1.0.0b-r5 b/sys-fs/udftools/files/digest-udftools-1.0.0b-r5
new file mode 100644
index 000000000000..55f8b9eb6f1d
--- /dev/null
+++ b/sys-fs/udftools/files/digest-udftools-1.0.0b-r5
@@ -0,0 +1,2 @@
+MD5 2f491ddd63f31040797236fe18db9e60 udftools-1.0.0b3.tar.gz 293257
+MD5 4fe44166cf7c636ec41758ae763d79be udftools-1.0.0b3.patch.bz2 3372
diff --git a/sys-fs/udftools/files/pktcdvd.init b/sys-fs/udftools/files/pktcdvd.init
new file mode 100644
index 000000000000..c4055e99344c
--- /dev/null
+++ b/sys-fs/udftools/files/pktcdvd.init
@@ -0,0 +1,58 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udftools/files/pktcdvd.init,v 1.1 2005/09/05 22:10:58 dsd Exp $
+
+depend() {
+ need localmount modules
+}
+
+checkconfig() {
+ if [[ ! -e /dev/pktcdvd/control ]]; then
+ eerror "Could not find packet-writing control device at /dev/pktcdvd/control"
+ eerror "Please ensure that your kernel includes packet writing support,"
+ eerror "and if modular, ensure that the module is loaded."
+ return 1
+ fi
+}
+
+get_rw_devices() {
+ devices_raw=$(sed -re '/^drive name:/I!d; s/.*:\s+//' /proc/sys/dev/cdrom/info)
+ devices=($devices_raw)
+ devs=""
+
+ cdrw_caps=$(sed -re '/^Can write CD-RW:/I!d; s/.*:\s+//' /proc/sys/dev/cdrom/info)
+
+ count=0
+ for i in $cdrw_caps; do
+ [[ $i == 1 ]] && devs="${devs} ${devices[$count]}"
+ ((count++))
+ done
+
+ echo ${devs}
+}
+
+start() {
+ checkconfig || return 1
+
+ for i in $(get_rw_devices)
+ do
+ devnode="/dev/${i}"
+ [[ ! -e ${devnode} ]] && continue
+
+ /usr/bin/pktsetup ${i} ${devnode} > /dev/null
+ [[ ! -e /dev/pktcdvd/${i} ]] && continue
+ chmod 660 /dev/pktcdvd/${i}
+ chgrp cdrw /dev/pktcdvd/${i}
+ done
+}
+
+stop() {
+ checkconfig || return 1
+
+ for i in $(get_rw_devices)
+ do
+ /usr/bin/pktsetup -d ${i} > /dev/null
+ done
+}
+
diff --git a/sys-fs/udftools/udftools-1.0.0b-r5.ebuild b/sys-fs/udftools/udftools-1.0.0b-r5.ebuild
new file mode 100644
index 000000000000..486fce608db2
--- /dev/null
+++ b/sys-fs/udftools/udftools-1.0.0b-r5.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udftools/udftools-1.0.0b-r5.ebuild,v 1.1 2005/09/05 22:10:58 dsd Exp $
+
+inherit eutils
+
+MY_P="${P}3"
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Ben Fennema's tools for packet writing and the UDF filesystem"
+SRC_URI="mirror://sourceforge/linux-udf/${MY_P}.tar.gz
+ http://w1.894.telia.com/~u89404340/patches/packet/${MY_P}.patch.bz2"
+HOMEPAGE="http://sourceforge.net/projects/linux-udf/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="virtual/libc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # For new kernel packet writing driver
+ epatch ${WORKDIR}/${MY_P}.patch
+
+ # Fix CD blanking for 2.6.8 and newer
+ epatch ${FILESDIR}/cdrwtool-linux2.6-fix-v2.patch
+}
+
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc ChangeLog COPYING
+ newinitd ${FILESDIR}/pktcdvd.init pktcdvd
+}
+