From 94c0a98e7fe4d8d013fb4af0ed03588d714345b8 Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sun, 23 Nov 2008 12:49:40 +0000 Subject: [PATCH] Stefan Fiedler: split alsa into alsa-{lib,tools,utils,oss} add alsa-{firmware,plugins} [2008101921243728157] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9156 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/alsa-firmware/alsa-firmware.desc | 54 +++++++++++++++++++ package/base/alsa-lib/alsa-lib.conf | 44 +++++++++++++++ package/base/alsa-lib/alsa-lib.desc | 54 +++++++++++++++++++ package/base/alsa-oss/alsa-oss.desc | 54 +++++++++++++++++++ package/base/alsa-plugins/alsa-plugins.desc | 54 +++++++++++++++++++ package/base/alsa-tools/alsa-tools.conf | 36 +++++++++++++ package/base/alsa-tools/alsa-tools.desc | 54 +++++++++++++++++++ package/base/alsa-utils/alsa-utils.conf | 24 +++++++++ package/base/alsa-utils/alsa-utils.desc | 54 +++++++++++++++++++ package/base/alsa-utils/alsa-utils.desktop | 9 ++++ package/base/alsa-utils/alsa-utils.init | 44 +++++++++++++++ 11 files changed, 481 insertions(+) create mode 100644 package/base/alsa-firmware/alsa-firmware.desc create mode 100644 package/base/alsa-lib/alsa-lib.conf create mode 100644 package/base/alsa-lib/alsa-lib.desc create mode 100644 package/base/alsa-oss/alsa-oss.desc create mode 100644 package/base/alsa-plugins/alsa-plugins.desc create mode 100644 package/base/alsa-tools/alsa-tools.conf create mode 100644 package/base/alsa-tools/alsa-tools.desc create mode 100644 package/base/alsa-utils/alsa-utils.conf create mode 100644 package/base/alsa-utils/alsa-utils.desc create mode 100644 package/base/alsa-utils/alsa-utils.desktop create mode 100644 package/base/alsa-utils/alsa-utils.init diff --git a/package/base/alsa-firmware/alsa-firmware.desc b/package/base/alsa-firmware/alsa-firmware.desc new file mode 100644 index 000000000..98bff2b0d --- /dev/null +++ b/package/base/alsa-firmware/alsa-firmware.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA firmware. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17 +[P] X --?--5---9 109.800 + +[D] 2720667941 alsa-firmware-1.0.17.tar.bz2 ftp://ftp.alsa-project.org/pub/firmware/ diff --git a/package/base/alsa-lib/alsa-lib.conf b/package/base/alsa-lib/alsa-lib.conf new file mode 100644 index 000000000..c3755b794 --- /dev/null +++ b/package/base/alsa-lib/alsa-lib.conf @@ -0,0 +1,44 @@ +#!/bin/bash +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/base/alsa/alsa.conf +# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +hook_add postinstall 5 "alsa_lib_postinstall" +alsa_lib_postinstall() { + if [ -d $root/etc/devfsd.d ] ; then + cat <<- EOT > $root/etc/devfsd.d/alsa + LOOKUP snd/* MODLOAD + LOOKUP sound/* MODLOAD + + REGISTER snd/.* PERMISSIONS root.sound 666 + REGISTER sound/.* PERMISSIONS root.sound 666 + + REGISTER snd/.* MKOLDCOMPAT + REGISTER sound/.* MKOLDCOMPAT + UNREGISTER snd/.* RMOLDCOMPAT + UNREGISTER sound/.* RMOLDCOMPAT + EOT + fi +} + +# auto-create missing *.a files +autoso2a=1 + diff --git a/package/base/alsa-lib/alsa-lib.desc b/package/base/alsa-lib/alsa-lib.desc new file mode 100644 index 000000000..8a960d139 --- /dev/null +++ b/package/base/alsa-lib/alsa-lib.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA libraries. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17a +[P] X --?--5---9 109.750 + +[D] 3576842145 alsa-lib-1.0.17a.tar.bz2 ftp://ftp.alsa-project.org/pub/lib/ diff --git a/package/base/alsa-oss/alsa-oss.desc b/package/base/alsa-oss/alsa-oss.desc new file mode 100644 index 000000000..dcbb9553e --- /dev/null +++ b/package/base/alsa-oss/alsa-oss.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA OSS compatibilty library. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17 +[P] X --?--5---9 109.800 + +[D] 3786871158 alsa-oss-1.0.17.tar.bz2 ftp://ftp.alsa-project.org/pub/oss-lib/ diff --git a/package/base/alsa-plugins/alsa-plugins.desc b/package/base/alsa-plugins/alsa-plugins.desc new file mode 100644 index 000000000..12e8c875d --- /dev/null +++ b/package/base/alsa-plugins/alsa-plugins.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA plugins. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17 +[P] X --?--5---9 109.800 + +[D] 1949579878 alsa-plugins-1.0.17.tar.bz2 ftp://ftp.alsa-project.org/pub/plugins/ diff --git a/package/base/alsa-tools/alsa-tools.conf b/package/base/alsa-tools/alsa-tools.conf new file mode 100644 index 000000000..f63ac1f3c --- /dev/null +++ b/package/base/alsa-tools/alsa-tools.conf @@ -0,0 +1,36 @@ +#!/bin/bash +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/base/alsa/alsa.conf +# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +custmain="alsa_tools_custmain" +alsa_tools_custmain() { + for x in * ; do + [ -f "$x/configure" ] || continue + + ( + cd $x + eval_config_command $( eval echo $confopt ) + eval $MAKE $makeopt + eval $MAKE $makeinstopt + ) + done +} diff --git a/package/base/alsa-tools/alsa-tools.desc b/package/base/alsa-tools/alsa-tools.desc new file mode 100644 index 000000000..ce4e1b11c --- /dev/null +++ b/package/base/alsa-tools/alsa-tools.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA tools. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17 +[P] X --?--5---9 109.800 + +[D] 559475301 alsa-tools-1.0.17.tar.bz2 ftp://ftp.alsa-project.org/pub/tools/ diff --git a/package/base/alsa-utils/alsa-utils.conf b/package/base/alsa-utils/alsa-utils.conf new file mode 100644 index 000000000..3b83edc46 --- /dev/null +++ b/package/base/alsa-utils/alsa-utils.conf @@ -0,0 +1,24 @@ +#!/bin/bash +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/base/alsa/alsa.conf +# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- + +hook_add postinstall 5 "install_init $xpkg $confdir/$xpkg.init" diff --git a/package/base/alsa-utils/alsa-utils.desc b/package/base/alsa-utils/alsa-utils.desc new file mode 100644 index 000000000..1e2422007 --- /dev/null +++ b/package/base/alsa-utils/alsa-utils.desc @@ -0,0 +1,54 @@ + +[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- +[COPY] +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] Please add additional copyright information _after_ the line containing +[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +[COPY] +[COPY] ROCK Linux: rock-src/package/base/alsa/alsa.desc +[COPY] ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; either version 2 of the License, or +[COPY] (at your option) any later version. A copy of the GNU General Public +[COPY] License can be found at Documentation/COPYING. +[COPY] +[COPY] Many people helped and are helping developing ROCK Linux. Please +[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM +[COPY] file for details. +[COPY] +[COPY] --- ROCK-COPYRIGHT-NOTE-END --- + +[I] Advanced Linux Sound Architecture + +[T] The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI +[T] functionality to the Linux operating system. ALSA has the following +[T] significant features: +[T] +[T] * Efficient support for all types of audio interfaces, from consumer sound +[T] cards to professional multichannel audio interfaces. +[T] * Fully modularized sound drivers. +[T] * SMP and thread-safe design. +[T] * User space library (alsa-lib) to simplify application programming and +[T] provide higher level functionality. +[T] * Support for the older Open Sound System (OSS) API, providing binary +[T] * compatibility for most OSS programs. +[T] +[T] This package includes the ALSA utilities. + +[U] http://www.alsa-project.org + +[A] Jaroslav Kysela {Maintainer} +[M] The ROCK Linux Project + +[C] base/system base/kernel +[F] CORE + +[L] GPL +[S] Stable +[V] 1.0.17 +[P] X --?--5---9 109.800 + +[D] 80478971 alsa-utils-1.0.17.tar.bz2 ftp://ftp.alsa-project.org/pub/utils/ diff --git a/package/base/alsa-utils/alsa-utils.desktop b/package/base/alsa-utils/alsa-utils.desktop new file mode 100644 index 000000000..5c52c9d50 --- /dev/null +++ b/package/base/alsa-utils/alsa-utils.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=ALSA Mixer +Comment=Mixer application for ALSA +Exec=alsamixer +Terminal=true +Type=Application +Categories=Audio;Mixer +X-ROCK-Name=alsa diff --git a/package/base/alsa-utils/alsa-utils.init b/package/base/alsa-utils/alsa-utils.init new file mode 100644 index 000000000..bba6a4ab3 --- /dev/null +++ b/package/base/alsa-utils/alsa-utils.init @@ -0,0 +1,44 @@ +#!/bin/sh +# +# --- ROCK-COPYRIGHT-NOTE-BEGIN --- +# +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# Please add additional copyright information _after_ the line containing +# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by +# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! +# +# ROCK Linux: rock-src/package/base/alsa/alsa.init +# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. A copy of the GNU General Public +# License can be found at Documentation/COPYING. +# +# Many people helped and are helping developing ROCK Linux. Please +# have a look at http://www.rocklinux.org/ and the Documentation/TEAM +# file for details. +# +# --- ROCK-COPYRIGHT-NOTE-END --- +# +# Desc: ALSA Sound Mixer Loader +# Runlevel: 75 rcX rc2 rc3 rc4 rc5 +# + +main_begin + + block_begin(start, `Initializing ALSA mixer.') + if [ -f /etc/asound.state ] ; then + check(`D_prefix/sbin/alsactl restore') + else + echo "No saved state for audio devices ..." + fi + block_end + + block_begin(stop, `Saving ALSA mixer settings.') + check(`D_prefix/sbin/alsactl store') + block_end + +main_end +