diff options
author | Daniel Drake <dsd@gentoo.org> | 2005-09-05 22:10:58 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2005-09-05 22:10:58 +0000 |
commit | 977fb35c1e564d7ea9f60633bd11390854b95ab4 (patch) | |
tree | e529d10a34e96c64d0d013722649f1ad58957495 /sys-fs | |
parent | Update the x509 patches. (diff) | |
download | historical-977fb35c1e564d7ea9f60633bd11390854b95ab4.tar.gz historical-977fb35c1e564d7ea9f60633bd11390854b95ab4.tar.bz2 historical-977fb35c1e564d7ea9f60633bd11390854b95ab4.zip |
Add pktcdvd init script, based off work by John Ross Hunt and Eugeny in bug #77726
Package-Manager: portage-1.589-cvs
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udftools/ChangeLog | 9 | ||||
-rw-r--r-- | sys-fs/udftools/Manifest | 13 | ||||
-rw-r--r-- | sys-fs/udftools/files/digest-udftools-1.0.0b-r5 | 2 | ||||
-rw-r--r-- | sys-fs/udftools/files/pktcdvd.init | 58 | ||||
-rw-r--r-- | sys-fs/udftools/udftools-1.0.0b-r5.ebuild | 38 |
5 files changed, 114 insertions, 6 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..d52af43d84f9 100644 --- a/sys-fs/udftools/Manifest +++ b/sys-fs/udftools/Manifest @@ -1,15 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +MD5 7c92449b3ff2439b0460cd7fe575601c udftools-1.0.0b-r5.ebuild 934 MD5 5985be441863596e59cc8b64f5fa6855 udftools-1.0.0b-r4.ebuild 892 -MD5 1e6b953a6b6844d30e71d399146ec8d4 ChangeLog 1848 +MD5 e7be0011a5f1bcd9f11b997b20ad62fe ChangeLog 2068 MD5 0cf47a30a6ac05387d56c265d786ade1 metadata.xml 249 +MD5 72f421d199c391071d3271f025f9ef4f files/pktcdvd.init 1313 MD5 3e4db84bced51283c2de39869e96e554 files/cdrwtool-linux2.6-fix-v2.patch 876 MD5 d52ea5d393bd61a45f983ebc01703d93 files/digest-udftools-1.0.0b-r4 137 +MD5 d52ea5d393bd61a45f983ebc01703d93 files/digest-udftools-1.0.0b-r5 137 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.6 (GNU/Linux) +Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFB1/uQiJcSIUGNthERAgpkAJ9Uh0MGYrMJ+ledhrhpcGSnNiGQSQCdErJF -Zao3G27paJvQS2utsj4kMig= -=42d1 +iD8DBQFDHMO4TOXg++0VvJQRAnPtAJ9CL0jTbhm7pjltaxjkRGEia5SkWACeJHqA +4B6w+2m+VJUYnSredpzMbi0= +=Rnri -----END PGP SIGNATURE----- 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 +} + |