[arch-commits] Commit in oss/repos (18 files)

Kyle Keen kkeen at nymeria.archlinux.org
Thu Mar 14 22:32:51 UTC 2013


    Date: Thursday, March 14, 2013 @ 23:32:51
  Author: kkeen
Revision: 86304

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  oss/repos/community-testing-i686/
  oss/repos/community-testing-i686/PKGBUILD
    (from rev 86303, oss/trunk/PKGBUILD)
  oss/repos/community-testing-i686/linux-3.8.patch
    (from rev 86303, oss/trunk/linux-3.8.patch)
  oss/repos/community-testing-i686/oss.install
    (from rev 86303, oss/trunk/oss.install)
  oss/repos/community-testing-i686/oss.service
    (from rev 86303, oss/trunk/oss.service)
  oss/repos/community-testing-i686/rc-script
    (from rev 86303, oss/trunk/rc-script)
  oss/repos/community-testing-i686/remove-hal.patch
    (from rev 86303, oss/trunk/remove-hal.patch)
  oss/repos/community-testing-i686/rm-init-scripts.patch
    (from rev 86303, oss/trunk/rm-init-scripts.patch)
  oss/repos/community-testing-i686/soundon.patch
    (from rev 86303, oss/trunk/soundon.patch)
  oss/repos/community-testing-x86_64/
  oss/repos/community-testing-x86_64/PKGBUILD
    (from rev 86303, oss/trunk/PKGBUILD)
  oss/repos/community-testing-x86_64/linux-3.8.patch
    (from rev 86303, oss/trunk/linux-3.8.patch)
  oss/repos/community-testing-x86_64/oss.install
    (from rev 86303, oss/trunk/oss.install)
  oss/repos/community-testing-x86_64/oss.service
    (from rev 86303, oss/trunk/oss.service)
  oss/repos/community-testing-x86_64/rc-script
    (from rev 86303, oss/trunk/rc-script)
  oss/repos/community-testing-x86_64/remove-hal.patch
    (from rev 86303, oss/trunk/remove-hal.patch)
  oss/repos/community-testing-x86_64/rm-init-scripts.patch
    (from rev 86303, oss/trunk/rm-init-scripts.patch)
  oss/repos/community-testing-x86_64/soundon.patch
    (from rev 86303, oss/trunk/soundon.patch)

------------------------------------------------+
 community-testing-i686/PKGBUILD                |  120 +++++++++++++++++++++++
 community-testing-i686/linux-3.8.patch         |   40 +++++++
 community-testing-i686/oss.install             |   30 +++++
 community-testing-i686/oss.service             |   12 ++
 community-testing-i686/rc-script               |   30 +++++
 community-testing-i686/remove-hal.patch        |   20 +++
 community-testing-i686/rm-init-scripts.patch   |   52 +++++++++
 community-testing-i686/soundon.patch           |   28 +++++
 community-testing-x86_64/PKGBUILD              |  120 +++++++++++++++++++++++
 community-testing-x86_64/linux-3.8.patch       |   40 +++++++
 community-testing-x86_64/oss.install           |   30 +++++
 community-testing-x86_64/oss.service           |   12 ++
 community-testing-x86_64/rc-script             |   30 +++++
 community-testing-x86_64/remove-hal.patch      |   20 +++
 community-testing-x86_64/rm-init-scripts.patch |   52 +++++++++
 community-testing-x86_64/soundon.patch         |   28 +++++
 16 files changed, 664 insertions(+)

Copied: oss/repos/community-testing-i686/PKGBUILD (from rev 86303, oss/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,120 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase=oss
+pkgname=oss
+true && pkgname=(oss libflashsupport-oss)
+pkgver=4.2_2007
+pkgrel=3
+arch=('i686' 'x86_64')
+url="http://developer.opensound.com/"
+license=('GPL2')
+makedepends=('gtk2')
+source=("http://www.4front-tech.com/developer/sources/stable/gpl/oss-v${pkgver/_*}-build${pkgver/*_}-src-gpl.tar.bz2"
+	"rm-init-scripts.patch"
+	"rc-script"
+	"soundon.patch"
+	"remove-hal.patch"
+        "linux-3.8.patch"
+	"oss.service"
+	)
+md5sums=('26b9d6951f3eb2eac39a0f42f0dbdae7'
+         'b9a380a0ac8896390d71ac13676f27e1'
+         'cbcbce5c03b127df5eafa8faa091492c'
+         '65f07fe241bfbf912f76d8b6d8f276b5'
+         'cd7f1dc6166bba8c94d96f3a28e948a5'
+         'effecefb774f1d08ef9f0af0ad205c34'
+         '8db0255b380dc6672993e627d1cd8ca6')
+_dir=oss-v${pkgver/_*}-build${pkgver/*_}-src-gpl
+
+build() {
+	cd "${srcdir}/${_dir}"
+
+	# Avoid these flags conflicting with OSS build system.
+	unset CFLAGS
+	unset LDFLAGS
+	unset OSFLAGS
+	unset LIBRARIES
+	export NO_WARNING_CHECKS=yes
+
+	# Compile libflashsupport.so only in packaging time, so we avoid
+	# conflicts with other packages and ease package management.
+	msg "Building libflashsupport.so."
+	cd oss/lib
+	gcc -shared -fPIC -O2 -Wall -Werror flashsupport.c -o libflashsupport.so
+
+	msg "Preparing the build environment."
+	cd "${srcdir}"
+
+	# Create build directory and configure
+	rm -rf build
+	mkdir build && cd build
+	"${srcdir}/${_dir}/configure" --enable-libsalsa=NO --regparm
+
+	# ossvermagic hardcodes /lib/modules *grumble*
+	sed -i 's|/lib/modules|/usr&|' \
+			os_cmd/Linux/ossvermagic/ossvermagic.c
+
+        pushd "$srcdir/$_dir"
+	patch -p0 -i "${srcdir}/linux-3.8.patch"
+        popd
+
+	msg "Building OSS."
+	make build
+
+	msg "Patching init scripts."
+	cd "${srcdir}/build/prototype"
+	rm usr/lib/oss/etc/S89oss
+	patch -p0 -i "${srcdir}/rm-init-scripts.patch"
+	patch -p0 -i "${srcdir}/soundon.patch"
+	# remove hal dependency
+	patch -p0 -i "${srcdir}/remove-hal.patch"
+	rm -rf usr/lib/oss/scripts/oss_usb-create-devices usr/lib/oss/scripts/90-oss_usb-create-device.fdi
+
+	# fix kernel module directories
+	sed -i 's#/lib/modules/$KERNEL_VERSION/kernel/#/usr/lib/modules/$KERNEL_VERSION/extramodules/kernel/#g' usr/sbin/soundon
+	sed -i 's#/lib/modules/$UNAME/kernel/#/usr/lib/modules/$UNAME/extramodules/kernel/#g' usr/lib/oss/build/install.sh
+	sed -i 's#mkdir /lib/modules#mkdir -p /usr/lib/modules#' usr/lib/oss/build/install.sh
+	sed -i 's#mkdir \(/usr/lib/modules/$UNAME/extramodules/kernel/oss\)#mkdir -p \1#' usr/lib/oss/build/install.sh
+	sed -i 's#\([= ]\)/lib/modules#\1/usr/lib/modules#g' \
+		usr/lib/oss/build/install.sh \
+		usr/lib/oss/scripts/restore_drv.sh \
+		usr/lib/oss/scripts/setup-alsa.sh \
+		usr/lib/oss/scripts/remove_drv.sh \
+		usr/lib/oss/build/Makefile.tmpl \
+		usr/lib/oss/build/Makefile.osscore \
+		usr/lib/oss/cuckoo/Makefile
+}
+
+package_oss() {
+	pkgdesc="Open Sound System UNIX audio architecture"
+	depends=('gcc' 'make' 'linux-headers' 'libtool' 'sed')
+	optdepends=('gtk2: for graphical mixer (ossxmix)'
+	            'libflashsupport-oss: Adobe flash plugin support')
+	conflicts=('oss-linux' 'oss-linux-free' 'oss-testing')
+	backup=('usr/lib/oss/soundon.user')
+	install=oss.install
+
+	cd "${srcdir}/build/prototype"
+	cp -a * "${pkgdir}"
+
+	chmod -R a+r "${pkgdir}" # All files can have read permission (FS#13815)
+	find "${pkgdir}" -type d -exec chmod a+x '{}' \; # Make namcap happy
+	install -Dm755 "${srcdir}/rc-script" "${pkgdir}/etc/rc.d/oss"
+	install -Dm644 "$srcdir/oss.service" "$pkgdir/usr/lib/systemd/system/oss.service"
+}
+
+package_libflashsupport-oss() {
+	pkgdesc="Adobe flash plugin support lib (OSSv4)"
+	conflicts=('libflashsupport' 'libflashsupport-pulse' 'libflashsupport-oss')
+	depends=('oss')
+
+	cd "${srcdir}/${_dir}"
+
+	install -dm755 "$pkgdir/usr/lib"
+	ln -s oss/lib/libflashsupport.so "$pkgdir/usr/lib/libflashsupport.so"
+}
+

Copied: oss/repos/community-testing-i686/linux-3.8.patch (from rev 86303, oss/trunk/linux-3.8.patch)
===================================================================
--- community-testing-i686/linux-3.8.patch	                        (rev 0)
+++ community-testing-i686/linux-3.8.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,40 @@
+--- setup/Linux/oss/build/pci_wrapper.inc	2009-08-27 05:19:07.000000000 +0300
++++ setup/Linux/oss/build/pci_wrapper.inc	2013-02-08 13:56:10.519794975 +0200
+@@ -17,7 +17,11 @@
+ static dev_map_t dev_map[MAX_INSTANCE];
+ static int n_devmap = 0;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+ static int __devinit
++#else
++static int
++#endif
+ osspci_probe (struct pci_dev *pcidev, const struct pci_device_id *pciid)
+ {
+   oss_device_t *osdev;
+@@ -65,7 +69,11 @@
+   return 0;
+ }
+ 
+-static void __devexit
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
++static int __devexit
++#else
++static int
++#endif
+ osspci_remove (struct pci_dev *pcidev)
+ {
+   int i;
+@@ -80,10 +88,11 @@
+ 	pci_disable_device (dev_map[i].pcidev);
+ 	osdev_delete (osdev);
+ 
+-	return;
++	return 0;
+       }
+ 
+   printk (KERN_ALERT DRIVER_NICK ": Can't find the PCI device to detach\n");
++  return -EIO;
+ }
+ 
+ void

Copied: oss/repos/community-testing-i686/oss.install (from rev 86303, oss/trunk/oss.install)
===================================================================
--- community-testing-i686/oss.install	                        (rev 0)
+++ community-testing-i686/oss.install	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,30 @@
+post_install() {
+	echo "Running OSS install script..."
+	sh /usr/lib/oss/build/install.sh &>/dev/null
+	echo
+	echo " Note that OSS can't currently work together with kernel"
+	echo " ALSA modules, so they were moved out by the OSS install"
+	echo " scripts. If you want the ALSA kernel modules back, you can"
+	echo " just remove this package using pacman."
+}
+
+post_upgrade() {
+	echo "Running OSS update script..."
+	sh /usr/lib/oss/build/install.sh &>/dev/null
+
+	if [[ $(vercmp $2 4.2_2006) == "-1" ]]; then
+		echo "libflashsupport.so has been split into a seperate package."
+		echo "If you want flash to use oss, please install libflashsupport-oss"
+	fi
+}
+
+pre_remove() {
+	# Restore any replaced ALSA drivers.
+	sh /usr/lib/oss/scripts/restore_drv.sh
+}
+
+post_remove() {
+	echo " Open Sound System was now removed, and the ALSA kernel"
+	echo " modules were restored."
+}
+

Copied: oss/repos/community-testing-i686/oss.service (from rev 86303, oss/trunk/oss.service)
===================================================================
--- community-testing-i686/oss.service	                        (rev 0)
+++ community-testing-i686/oss.service	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Open Sound System v4
+Before=sound.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/soundon
+ExecStop=/usr/sbin/soundoff
+
+[Install]
+WantedBy=multi-user.target

Copied: oss/repos/community-testing-i686/rc-script (from rev 86303, oss/trunk/rc-script)
===================================================================
--- community-testing-i686/rc-script	                        (rev 0)
+++ community-testing-i686/rc-script	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,30 @@
+#!/bin/bash
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+	start)
+		stat_busy 'Starting Open Sound System'
+		if /usr/sbin/soundon; then
+			add_daemon oss
+			stat_done
+		else
+			stat_fail
+		fi
+		;;
+	stop)
+		stat_busy 'Stopping Open Sound System'
+		if /usr/sbin/soundoff; then
+			rm_daemon oss
+			stat_done
+		else
+			stat_fail
+		fi
+		;;
+	restart)
+		$0 stop
+		$0 start
+		;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+esac

Copied: oss/repos/community-testing-i686/remove-hal.patch (from rev 86303, oss/trunk/remove-hal.patch)
===================================================================
--- community-testing-i686/remove-hal.patch	                        (rev 0)
+++ community-testing-i686/remove-hal.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,20 @@
+Date: Tue Aug  2 16:37:31 CEST 2011
+Author: Florian Pritz <bluewind at xinu.at>
+This removes all hal dependencies
+
+References:
+http://www.archlinux.org/todo/92/
+
+--- usr/lib/oss/build/install_2011-08-02_162647.sh	2011-08-02 16:26:47.000000000 +0200
++++ usr/lib/oss/build/install.sh	2011-08-02 16:27:13.000000000 +0200
+@@ -336,10 +336,4 @@
+   echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
+ fi
+ 
+-# Hal 0.5.0+ hotplug
+-mkdir -p /usr/lib/hal/scripts
+-ln -sf $OSSLIBDIR/scripts/oss_usb-create-devices /usr/lib/hal/scripts/
+-mkdir -p /usr/share/hal/fdi/policy/20thirdparty/
+-ln -sf $OSSLIBDIR/scripts/90-oss_usb-create-device.fdi /usr/share/hal/fdi/policy/20thirdparty/
+-
+ exit 0

Copied: oss/repos/community-testing-i686/rm-init-scripts.patch (from rev 86303, oss/trunk/rm-init-scripts.patch)
===================================================================
--- community-testing-i686/rm-init-scripts.patch	                        (rev 0)
+++ community-testing-i686/rm-init-scripts.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,52 @@
+--- usr/lib/oss/build/install.sh.orig	2008-09-25 11:41:47.180167692 -0300
++++ usr/lib/oss/build/install.sh	2008-09-25 11:41:47.180167692 -0300
+@@ -290,38 +290,6 @@
+    echo 
+ fi
+ 
+-if ! test -d /etc/init.d
+-then
+-  mkdir /etc/init.d
+-fi
+-
+-rm -f /etc/init.d/oss /etc/rc.d/rc3.d/S89oss /etc/rc3.d/S89oss
+-cp -f $OSSLIBDIR/etc/S89oss /etc/init.d/oss
+-
+-chmod 744 /etc/init.d/oss
+-
+-if test -x /sbin/chkconfig
+-then
+-  /sbin/chkconfig oss on        > /dev/null 2>&1
+-else
+- if test -x /usr/sbin/update-rc.d
+- then
+-   /usr/sbin/update-rc.d oss defaults > /dev/null 2>&1
+- else
+-  if test -d etc/rc.d/rc3.d
+-  then
+-    rm -f /etc/rc.d/rc3.d/S89oss
+-    ln -s /etc/init.d/oss /etc/rc.d/rc3.d/S89oss
+-  else
+-    if test -d /etc/rc3.d
+-    then
+-      rm -f /etc/rc3.d/S89oss
+-      ln -s /etc/init.d/oss /etc/rc3.d/S89oss
+-    fi
+-  fi
+- fi
+-fi
+-
+ # Install ALSA interface module (Cuckoo)
+ #(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1
+ #if (cd $OSSLIBDIR/cuckoo && make install) > /var/log/cuckoo.log 2>&1
+--- usr/lib/oss/scripts/restore_drv.sh.orig	2008-09-25 11:41:47.210168487 -0300
++++ usr/lib/oss/scripts/restore_drv.sh	2008-09-25 11:41:47.210168487 -0300
+@@ -18,8 +18,6 @@
+   fi
+ fi
+ 
+-rm -f /etc/init.d/oss
+-
+ if ! test -d /lib/modules/`uname -r`/kernel/sound
+ then
+    if test -f /lib/modules/`uname -r`/sound-preoss.tar.bz2

Copied: oss/repos/community-testing-i686/soundon.patch (from rev 86303, oss/trunk/soundon.patch)
===================================================================
--- community-testing-i686/soundon.patch	                        (rev 0)
+++ community-testing-i686/soundon.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,28 @@
+--- usr/sbin/soundon.old	2009-09-04 06:35:26.000000000 +0100
++++ usr/sbin/soundon	2009-11-15 13:59:53.000000000 +0000
+@@ -255,7 +255,10 @@
+   then
+      if test "`uname -m` " = "x86_64 "
+      then
+-       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
++       # Fix for compatibility with Arch's directory structure
++       # Not that we use it, there is no $OSSLIBDIR/.libsalsa_installed
++       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib/libasound.so.2
++       #ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
+        #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
+      else
+        if test -s /lib/libasound.so.2
+@@ -278,8 +281,11 @@
+ then
+    if test "`uname -m` " = "x86_64 "
+    then
+-     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
+-     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
++     # Fix for compatibility with Arch's directory structure
++     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib
++     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib
++     #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
++     #ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
+    else
+      if test -s /lib/libasound.so.2
+      then

Copied: oss/repos/community-testing-x86_64/PKGBUILD (from rev 86303, oss/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,120 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase=oss
+pkgname=oss
+true && pkgname=(oss libflashsupport-oss)
+pkgver=4.2_2007
+pkgrel=3
+arch=('i686' 'x86_64')
+url="http://developer.opensound.com/"
+license=('GPL2')
+makedepends=('gtk2')
+source=("http://www.4front-tech.com/developer/sources/stable/gpl/oss-v${pkgver/_*}-build${pkgver/*_}-src-gpl.tar.bz2"
+	"rm-init-scripts.patch"
+	"rc-script"
+	"soundon.patch"
+	"remove-hal.patch"
+        "linux-3.8.patch"
+	"oss.service"
+	)
+md5sums=('26b9d6951f3eb2eac39a0f42f0dbdae7'
+         'b9a380a0ac8896390d71ac13676f27e1'
+         'cbcbce5c03b127df5eafa8faa091492c'
+         '65f07fe241bfbf912f76d8b6d8f276b5'
+         'cd7f1dc6166bba8c94d96f3a28e948a5'
+         'effecefb774f1d08ef9f0af0ad205c34'
+         '8db0255b380dc6672993e627d1cd8ca6')
+_dir=oss-v${pkgver/_*}-build${pkgver/*_}-src-gpl
+
+build() {
+	cd "${srcdir}/${_dir}"
+
+	# Avoid these flags conflicting with OSS build system.
+	unset CFLAGS
+	unset LDFLAGS
+	unset OSFLAGS
+	unset LIBRARIES
+	export NO_WARNING_CHECKS=yes
+
+	# Compile libflashsupport.so only in packaging time, so we avoid
+	# conflicts with other packages and ease package management.
+	msg "Building libflashsupport.so."
+	cd oss/lib
+	gcc -shared -fPIC -O2 -Wall -Werror flashsupport.c -o libflashsupport.so
+
+	msg "Preparing the build environment."
+	cd "${srcdir}"
+
+	# Create build directory and configure
+	rm -rf build
+	mkdir build && cd build
+	"${srcdir}/${_dir}/configure" --enable-libsalsa=NO --regparm
+
+	# ossvermagic hardcodes /lib/modules *grumble*
+	sed -i 's|/lib/modules|/usr&|' \
+			os_cmd/Linux/ossvermagic/ossvermagic.c
+
+        pushd "$srcdir/$_dir"
+	patch -p0 -i "${srcdir}/linux-3.8.patch"
+        popd
+
+	msg "Building OSS."
+	make build
+
+	msg "Patching init scripts."
+	cd "${srcdir}/build/prototype"
+	rm usr/lib/oss/etc/S89oss
+	patch -p0 -i "${srcdir}/rm-init-scripts.patch"
+	patch -p0 -i "${srcdir}/soundon.patch"
+	# remove hal dependency
+	patch -p0 -i "${srcdir}/remove-hal.patch"
+	rm -rf usr/lib/oss/scripts/oss_usb-create-devices usr/lib/oss/scripts/90-oss_usb-create-device.fdi
+
+	# fix kernel module directories
+	sed -i 's#/lib/modules/$KERNEL_VERSION/kernel/#/usr/lib/modules/$KERNEL_VERSION/extramodules/kernel/#g' usr/sbin/soundon
+	sed -i 's#/lib/modules/$UNAME/kernel/#/usr/lib/modules/$UNAME/extramodules/kernel/#g' usr/lib/oss/build/install.sh
+	sed -i 's#mkdir /lib/modules#mkdir -p /usr/lib/modules#' usr/lib/oss/build/install.sh
+	sed -i 's#mkdir \(/usr/lib/modules/$UNAME/extramodules/kernel/oss\)#mkdir -p \1#' usr/lib/oss/build/install.sh
+	sed -i 's#\([= ]\)/lib/modules#\1/usr/lib/modules#g' \
+		usr/lib/oss/build/install.sh \
+		usr/lib/oss/scripts/restore_drv.sh \
+		usr/lib/oss/scripts/setup-alsa.sh \
+		usr/lib/oss/scripts/remove_drv.sh \
+		usr/lib/oss/build/Makefile.tmpl \
+		usr/lib/oss/build/Makefile.osscore \
+		usr/lib/oss/cuckoo/Makefile
+}
+
+package_oss() {
+	pkgdesc="Open Sound System UNIX audio architecture"
+	depends=('gcc' 'make' 'linux-headers' 'libtool' 'sed')
+	optdepends=('gtk2: for graphical mixer (ossxmix)'
+	            'libflashsupport-oss: Adobe flash plugin support')
+	conflicts=('oss-linux' 'oss-linux-free' 'oss-testing')
+	backup=('usr/lib/oss/soundon.user')
+	install=oss.install
+
+	cd "${srcdir}/build/prototype"
+	cp -a * "${pkgdir}"
+
+	chmod -R a+r "${pkgdir}" # All files can have read permission (FS#13815)
+	find "${pkgdir}" -type d -exec chmod a+x '{}' \; # Make namcap happy
+	install -Dm755 "${srcdir}/rc-script" "${pkgdir}/etc/rc.d/oss"
+	install -Dm644 "$srcdir/oss.service" "$pkgdir/usr/lib/systemd/system/oss.service"
+}
+
+package_libflashsupport-oss() {
+	pkgdesc="Adobe flash plugin support lib (OSSv4)"
+	conflicts=('libflashsupport' 'libflashsupport-pulse' 'libflashsupport-oss')
+	depends=('oss')
+
+	cd "${srcdir}/${_dir}"
+
+	install -dm755 "$pkgdir/usr/lib"
+	ln -s oss/lib/libflashsupport.so "$pkgdir/usr/lib/libflashsupport.so"
+}
+

Copied: oss/repos/community-testing-x86_64/linux-3.8.patch (from rev 86303, oss/trunk/linux-3.8.patch)
===================================================================
--- community-testing-x86_64/linux-3.8.patch	                        (rev 0)
+++ community-testing-x86_64/linux-3.8.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,40 @@
+--- setup/Linux/oss/build/pci_wrapper.inc	2009-08-27 05:19:07.000000000 +0300
++++ setup/Linux/oss/build/pci_wrapper.inc	2013-02-08 13:56:10.519794975 +0200
+@@ -17,7 +17,11 @@
+ static dev_map_t dev_map[MAX_INSTANCE];
+ static int n_devmap = 0;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+ static int __devinit
++#else
++static int
++#endif
+ osspci_probe (struct pci_dev *pcidev, const struct pci_device_id *pciid)
+ {
+   oss_device_t *osdev;
+@@ -65,7 +69,11 @@
+   return 0;
+ }
+ 
+-static void __devexit
++#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
++static int __devexit
++#else
++static int
++#endif
+ osspci_remove (struct pci_dev *pcidev)
+ {
+   int i;
+@@ -80,10 +88,11 @@
+ 	pci_disable_device (dev_map[i].pcidev);
+ 	osdev_delete (osdev);
+ 
+-	return;
++	return 0;
+       }
+ 
+   printk (KERN_ALERT DRIVER_NICK ": Can't find the PCI device to detach\n");
++  return -EIO;
+ }
+ 
+ void

Copied: oss/repos/community-testing-x86_64/oss.install (from rev 86303, oss/trunk/oss.install)
===================================================================
--- community-testing-x86_64/oss.install	                        (rev 0)
+++ community-testing-x86_64/oss.install	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,30 @@
+post_install() {
+	echo "Running OSS install script..."
+	sh /usr/lib/oss/build/install.sh &>/dev/null
+	echo
+	echo " Note that OSS can't currently work together with kernel"
+	echo " ALSA modules, so they were moved out by the OSS install"
+	echo " scripts. If you want the ALSA kernel modules back, you can"
+	echo " just remove this package using pacman."
+}
+
+post_upgrade() {
+	echo "Running OSS update script..."
+	sh /usr/lib/oss/build/install.sh &>/dev/null
+
+	if [[ $(vercmp $2 4.2_2006) == "-1" ]]; then
+		echo "libflashsupport.so has been split into a seperate package."
+		echo "If you want flash to use oss, please install libflashsupport-oss"
+	fi
+}
+
+pre_remove() {
+	# Restore any replaced ALSA drivers.
+	sh /usr/lib/oss/scripts/restore_drv.sh
+}
+
+post_remove() {
+	echo " Open Sound System was now removed, and the ALSA kernel"
+	echo " modules were restored."
+}
+

Copied: oss/repos/community-testing-x86_64/oss.service (from rev 86303, oss/trunk/oss.service)
===================================================================
--- community-testing-x86_64/oss.service	                        (rev 0)
+++ community-testing-x86_64/oss.service	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Open Sound System v4
+Before=sound.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/soundon
+ExecStop=/usr/sbin/soundoff
+
+[Install]
+WantedBy=multi-user.target

Copied: oss/repos/community-testing-x86_64/rc-script (from rev 86303, oss/trunk/rc-script)
===================================================================
--- community-testing-x86_64/rc-script	                        (rev 0)
+++ community-testing-x86_64/rc-script	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,30 @@
+#!/bin/bash
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+	start)
+		stat_busy 'Starting Open Sound System'
+		if /usr/sbin/soundon; then
+			add_daemon oss
+			stat_done
+		else
+			stat_fail
+		fi
+		;;
+	stop)
+		stat_busy 'Stopping Open Sound System'
+		if /usr/sbin/soundoff; then
+			rm_daemon oss
+			stat_done
+		else
+			stat_fail
+		fi
+		;;
+	restart)
+		$0 stop
+		$0 start
+		;;
+	*)
+		echo "Usage: $0 {start|stop|restart}"
+esac

Copied: oss/repos/community-testing-x86_64/remove-hal.patch (from rev 86303, oss/trunk/remove-hal.patch)
===================================================================
--- community-testing-x86_64/remove-hal.patch	                        (rev 0)
+++ community-testing-x86_64/remove-hal.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,20 @@
+Date: Tue Aug  2 16:37:31 CEST 2011
+Author: Florian Pritz <bluewind at xinu.at>
+This removes all hal dependencies
+
+References:
+http://www.archlinux.org/todo/92/
+
+--- usr/lib/oss/build/install_2011-08-02_162647.sh	2011-08-02 16:26:47.000000000 +0200
++++ usr/lib/oss/build/install.sh	2011-08-02 16:27:13.000000000 +0200
+@@ -336,10 +336,4 @@
+   echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
+ fi
+ 
+-# Hal 0.5.0+ hotplug
+-mkdir -p /usr/lib/hal/scripts
+-ln -sf $OSSLIBDIR/scripts/oss_usb-create-devices /usr/lib/hal/scripts/
+-mkdir -p /usr/share/hal/fdi/policy/20thirdparty/
+-ln -sf $OSSLIBDIR/scripts/90-oss_usb-create-device.fdi /usr/share/hal/fdi/policy/20thirdparty/
+-
+ exit 0

Copied: oss/repos/community-testing-x86_64/rm-init-scripts.patch (from rev 86303, oss/trunk/rm-init-scripts.patch)
===================================================================
--- community-testing-x86_64/rm-init-scripts.patch	                        (rev 0)
+++ community-testing-x86_64/rm-init-scripts.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,52 @@
+--- usr/lib/oss/build/install.sh.orig	2008-09-25 11:41:47.180167692 -0300
++++ usr/lib/oss/build/install.sh	2008-09-25 11:41:47.180167692 -0300
+@@ -290,38 +290,6 @@
+    echo 
+ fi
+ 
+-if ! test -d /etc/init.d
+-then
+-  mkdir /etc/init.d
+-fi
+-
+-rm -f /etc/init.d/oss /etc/rc.d/rc3.d/S89oss /etc/rc3.d/S89oss
+-cp -f $OSSLIBDIR/etc/S89oss /etc/init.d/oss
+-
+-chmod 744 /etc/init.d/oss
+-
+-if test -x /sbin/chkconfig
+-then
+-  /sbin/chkconfig oss on        > /dev/null 2>&1
+-else
+- if test -x /usr/sbin/update-rc.d
+- then
+-   /usr/sbin/update-rc.d oss defaults > /dev/null 2>&1
+- else
+-  if test -d etc/rc.d/rc3.d
+-  then
+-    rm -f /etc/rc.d/rc3.d/S89oss
+-    ln -s /etc/init.d/oss /etc/rc.d/rc3.d/S89oss
+-  else
+-    if test -d /etc/rc3.d
+-    then
+-      rm -f /etc/rc3.d/S89oss
+-      ln -s /etc/init.d/oss /etc/rc3.d/S89oss
+-    fi
+-  fi
+- fi
+-fi
+-
+ # Install ALSA interface module (Cuckoo)
+ #(cd $OSSLIBDIR/cuckoo && make clean) > /dev/null 2>&1
+ #if (cd $OSSLIBDIR/cuckoo && make install) > /var/log/cuckoo.log 2>&1
+--- usr/lib/oss/scripts/restore_drv.sh.orig	2008-09-25 11:41:47.210168487 -0300
++++ usr/lib/oss/scripts/restore_drv.sh	2008-09-25 11:41:47.210168487 -0300
+@@ -18,8 +18,6 @@
+   fi
+ fi
+ 
+-rm -f /etc/init.d/oss
+-
+ if ! test -d /lib/modules/`uname -r`/kernel/sound
+ then
+    if test -f /lib/modules/`uname -r`/sound-preoss.tar.bz2

Copied: oss/repos/community-testing-x86_64/soundon.patch (from rev 86303, oss/trunk/soundon.patch)
===================================================================
--- community-testing-x86_64/soundon.patch	                        (rev 0)
+++ community-testing-x86_64/soundon.patch	2013-03-14 22:32:51 UTC (rev 86304)
@@ -0,0 +1,28 @@
+--- usr/sbin/soundon.old	2009-09-04 06:35:26.000000000 +0100
++++ usr/sbin/soundon	2009-11-15 13:59:53.000000000 +0000
+@@ -255,7 +255,10 @@
+   then
+      if test "`uname -m` " = "x86_64 "
+      then
+-       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
++       # Fix for compatibility with Arch's directory structure
++       # Not that we use it, there is no $OSSLIBDIR/.libsalsa_installed
++       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib/libasound.so.2
++       #ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
+        #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
+      else
+        if test -s /lib/libasound.so.2
+@@ -278,8 +281,11 @@
+ then
+    if test "`uname -m` " = "x86_64 "
+    then
+-     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
+-     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
++     # Fix for compatibility with Arch's directory structure
++     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib
++     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib
++     #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
++     #ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
+    else
+      if test -s /lib/libasound.so.2
+      then




More information about the arch-commits mailing list