diff options
author | Juergen Lock <nox@FreeBSD.org> | 2011-04-28 19:55:29 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2011-04-28 19:55:29 +0000 |
commit | a6a5e1ef70985919fdb698b34b4d53880ab1886e (patch) | |
tree | eab2b18e0f5fa32f1561820a9c7005dfd91ba439 /audio/linux-f10-alsa-plugins-oss | |
parent | 4c1882bbe4d69a809a0a1b95cba2cdcde0687144 (diff) | |
download | ports-a6a5e1ef70985919fdb698b34b4d53880ab1886e.tar.gz ports-a6a5e1ef70985919fdb698b34b4d53880ab1886e.zip |
Notes
Diffstat (limited to 'audio/linux-f10-alsa-plugins-oss')
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/Makefile | 32 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/distinfo.i386 | 4 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf | 14 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/pkg-deinstall | 16 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/pkg-descr | 3 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/pkg-install | 18 | ||||
-rw-r--r-- | audio/linux-f10-alsa-plugins-oss/pkg-plist | 11 |
7 files changed, 98 insertions, 0 deletions
diff --git a/audio/linux-f10-alsa-plugins-oss/Makefile b/audio/linux-f10-alsa-plugins-oss/Makefile new file mode 100644 index 000000000000..db5fd12d88b6 --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: audio/linux-f10-alsa-plugins-oss +# Date created: 2010-06-06 +# Whom: hashiz +# +# $FreeBSD$ +# + +PORTNAME= alsa-plugins-oss +PORTVERSION= 1.0.21 +PORTREVISION= 1 +CATEGORIES= audio linux +PKGNAMEPREFIX= linux-f10- +DISTNAME= ${PORTNAME}-${PORTVERSION}-${RPMVERSION} + +MAINTAINER= hashiz@meridiani.jp +COMMENT= OSS plugin for ALSA (Linux Fedora 10) + +ONLY_FOR_ARCHS= i386 amd64 +USE_LINUX_RPM= yes +USE_LINUX_APPS= alsalib +LINUX_DIST_VER= 10 +RPMVERSION= 3.fc10 +SRC_DISTFILES= ${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}.src.rpm +USE_LDCONFIG= yes + +post-patch: + ${RM} ${WRKDIR}/etc/alsa/pcm/pcm-oss.conf.orig + +post-install: + PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/audio/linux-f10-alsa-plugins-oss/distinfo.i386 b/audio/linux-f10-alsa-plugins-oss/distinfo.i386 new file mode 100644 index 000000000000..e0a53394cb0b --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/distinfo.i386 @@ -0,0 +1,4 @@ +SHA256 (rpm/i386/fedora/10/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm) = 60f61d38f02e9463b4f8b98f0fe2320e36207e740f72ee6b7d6b56553729638a +SIZE (rpm/i386/fedora/10/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm) = 29350 +SHA256 (rpm/i386/fedora/10/alsa-plugins-1.0.21-3.fc10.src.rpm) = 3a6d04b23d326e375f14dba73daf2c0d9e54ba149df8b431238b184dc4607467 +SIZE (rpm/i386/fedora/10/alsa-plugins-1.0.21-3.fc10.src.rpm) = 338350 diff --git a/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf b/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf new file mode 100644 index 000000000000..ca58f1b46e34 --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf @@ -0,0 +1,14 @@ +--- etc/alsa/pcm/pcm-oss.conf.orig 2010-03-23 10:56:41.000000000 +0900 ++++ etc/alsa/pcm/pcm-oss.conf 2010-03-23 10:57:30.000000000 +0900 +@@ -7,3 +7,11 @@ + description "Open Sound System" + } + } ++ ++ctl.oss { ++ type oss ++ device /dev/mixer ++ hint { ++ description "Open Sound System" ++ } ++} diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-deinstall b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall new file mode 100644 index 000000000000..22b3172b23f6 --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall @@ -0,0 +1,16 @@ +#!/bin/sh + +case "$2" in + POST-DEINSTALL) + conf=${PKG_PREFIX}/etc/asound.conf + if [ ! -f "$conf" ]; then + exit 1 + fi + grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new + ;; + *) + exit 0 + ;; +esac + +exit 0 diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-descr b/audio/linux-f10-alsa-plugins-oss/pkg-descr new file mode 100644 index 000000000000..75a3967e2bdf --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/pkg-descr @@ -0,0 +1,3 @@ +PulseAudio plugin for ALSA + +WWW: http://pulseaudio.org/ diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-install b/audio/linux-f10-alsa-plugins-oss/pkg-install new file mode 100644 index 000000000000..b77ca3d001c3 --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/pkg-install @@ -0,0 +1,18 @@ +#!/bin/sh + +case "$2" in + POST-INSTALL) + conf=${PKG_PREFIX}/etc/asound.conf + if [ ! -f "$conf" ]; then + exit 1 + fi + awk '{print $0}; /files/ { print "\t\t\t\"/etc/alsa/pcm/pcm-oss.conf\""}' <$conf >/tmp/asound.conf.new + mv /tmp/asound.conf.new $conf + exit 0 + ;; + *) + exit 0 + ;; +esac + +exit 0 diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-plist b/audio/linux-f10-alsa-plugins-oss/pkg-plist new file mode 100644 index 000000000000..424dd80d143f --- /dev/null +++ b/audio/linux-f10-alsa-plugins-oss/pkg-plist @@ -0,0 +1,11 @@ +etc/alsa/pcm/pcm-oss.conf +usr/lib/alsa-lib/libasound_module_ctl_oss.so +usr/lib/alsa-lib/libasound_module_pcm_oss.so +usr/share/doc/alsa-plugins-oss-1.0.21/COPYING +usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL +usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss +@dirrm usr/share/doc/alsa-plugins-oss-1.0.21 +@dirrmtry etc/alsa/pcm +@dirrmtry etc/alsa +@dirrmtry usr/lib/alsa-lib +@unexec if [ -f %D/etc/asound.conf ]; then grep -v '/etc/alsa/pcm/pcm-oss\.conf' <%D/etc/asound.conf >/tmp/asound.conf.new; mv /tmp/asound.conf.new %D/etc/asound.conf; fi |