summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD.M.D. Ljungmark <spider@gentoo.org>2003-09-22 21:04:55 +0000
committerD.M.D. Ljungmark <spider@gentoo.org>2003-09-22 21:04:55 +0000
commit79777185e36622a9db665e22592ab62ff10944ff (patch)
treee9e684f1f7ce75b4924a698619aacb4113301581 /app-cdr/cdrw-base
parentInitial commit of a build that adds devfs.d/cdrw and modules.d/cdrw configura... (diff)
downloadhistorical-79777185e36622a9db665e22592ab62ff10944ff.tar.gz
historical-79777185e36622a9db665e22592ab62ff10944ff.tar.bz2
historical-79777185e36622a9db665e22592ab62ff10944ff.zip
Initial commit of a build that adds devfs.d/cdrw and modules.d/cdrw configuration to ease cd recording.
Diffstat (limited to 'app-cdr/cdrw-base')
-rw-r--r--app-cdr/cdrw-base/Manifest4
-rw-r--r--app-cdr/cdrw-base/cdrw-base-0.1.ebuild24
-rw-r--r--app-cdr/cdrw-base/files/devfs-0.111
-rw-r--r--app-cdr/cdrw-base/files/digest-cdrw-base-0.10
-rw-r--r--app-cdr/cdrw-base/files/modules-0.15
-rw-r--r--app-cdr/cdrw-base/metadata.xml9
6 files changed, 51 insertions, 2 deletions
diff --git a/app-cdr/cdrw-base/Manifest b/app-cdr/cdrw-base/Manifest
index 7de24998711d..210568093cac 100644
--- a/app-cdr/cdrw-base/Manifest
+++ b/app-cdr/cdrw-base/Manifest
@@ -1,6 +1,6 @@
MD5 bece66eac9cbef2bdae7ac13f2da5044 metadata.xml 251
-MD5 a1851b82f7db5135d93a03c20daa5f36 ChangeLog 327
-MD5 1aa6966afc8a1d3ad3c3def6bafc0450 cdrw-base-0.1.ebuild 600
+MD5 61b700fa333365b653ae5c6f8c40bc44 ChangeLog 417
+MD5 567d23fd61dffe93a44ea463bd3d69dc cdrw-base-0.1.ebuild 667
MD5 eb05088e12e351f611c0d01bc5f5be78 files/modules-0.1 229
MD5 0a031f31c753185c00153804aabfe8b0 files/devfs-0.1 529
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-cdrw-base-0.1 0
diff --git a/app-cdr/cdrw-base/cdrw-base-0.1.ebuild b/app-cdr/cdrw-base/cdrw-base-0.1.ebuild
new file mode 100644
index 000000000000..5e9bdef17678
--- /dev/null
+++ b/app-cdr/cdrw-base/cdrw-base-0.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2003 DmD Ljungmark ( spider@gentoo.org )
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrw-base/cdrw-base-0.1.ebuild,v 1.1 2003/09/22 21:04:50 spider Exp $
+
+DESCRIPTION="Configuraiton files to make cdrecording simpler"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64"
+IUSE=""
+DEPEND="sys-fs/devfsd"
+S=${WORKDIR}/${P}
+
+
+src_compile () {
+ echo ""
+}
+
+src_install() {
+ dodir /etc/devfs.d/
+ dodir /etc/modules.d/
+ cp ${FILESDIR}/devfs-${PV} ${D}/etc/devfs.d/cdrw
+ cp ${FILESDIR}/modules-${PV} ${D}/etc/modules.d/cdrw
+}
diff --git a/app-cdr/cdrw-base/files/devfs-0.1 b/app-cdr/cdrw-base/files/devfs-0.1
new file mode 100644
index 000000000000..4b55071ca55b
--- /dev/null
+++ b/app-cdr/cdrw-base/files/devfs-0.1
@@ -0,0 +1,11 @@
+# Give the cdrw group write permissions to /dev/sg0
+# This is done to have non root user use the burner (scan the scsi bus)
+REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.cdrw 660
+
+
+## Cosmetic change :
+# Create /dev/cdrw for the first cdrom on the scsi bus
+# (change 'sr0' to suite your setup)
+LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink sr0 cdrw
+REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrw
+UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrw
diff --git a/app-cdr/cdrw-base/files/digest-cdrw-base-0.1 b/app-cdr/cdrw-base/files/digest-cdrw-base-0.1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/app-cdr/cdrw-base/files/digest-cdrw-base-0.1
diff --git a/app-cdr/cdrw-base/files/modules-0.1 b/app-cdr/cdrw-base/files/modules-0.1
new file mode 100644
index 000000000000..bb1b92743242
--- /dev/null
+++ b/app-cdr/cdrw-base/files/modules-0.1
@@ -0,0 +1,5 @@
+# cdrw support.
+# make sure that we load the scsi emulation for the generic scsi drivers
+probeall /dev/sg sg scsi_mod sr_mod ide-scsi
+alias /dev/sg* /dev/sg
+alias /dev/scsi/*/generic /dev/sg
diff --git a/app-cdr/cdrw-base/metadata.xml b/app-cdr/cdrw-base/metadata.xml
new file mode 100644
index 000000000000..eb642c36ae9f
--- /dev/null
+++ b/app-cdr/cdrw-base/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>spider@gentoo.org</email>
+ <name>DmD Ljungmark</name>
+</maintainer>
+</pkgmetadata>