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
commitfc057be58122036eaf5a415df3bb0014c1ff8b96 (patch)
treee3f60372755d9698b8e3dc49cbaeeb8a765dea54 /app-cdr/cdrw-base
parentInitial commit of a build that adds devfs.d/cdrw and modules.d/cdrw configura... (diff)
downloadgentoo-2-fc057be58122036eaf5a415df3bb0014c1ff8b96.tar.gz
gentoo-2-fc057be58122036eaf5a415df3bb0014c1ff8b96.tar.bz2
gentoo-2-fc057be58122036eaf5a415df3bb0014c1ff8b96.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/ChangeLog9
-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
7 files changed, 60 insertions, 2 deletions
diff --git a/app-cdr/cdrw-base/ChangeLog b/app-cdr/cdrw-base/ChangeLog
new file mode 100644
index 000000000000..93158b78018e
--- /dev/null
+++ b/app-cdr/cdrw-base/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-cdr/cdrw-base
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrw-base/ChangeLog,v 1.1 2003/09/22 21:04:50 spider Exp $
+
+*cdrw-base-0.1 (22 Sep 2003)
+ 22 Sep 2003; Spider <spider@gentoo.org> *
+ initial build to make system configurations that allow users who are members of the group
+ cdrw access cd recording devices
+
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>