View | Details | Raw Unified | Return to bug 169896 | Differences between
and this patch

Collapse All | Expand All

(-)audio/linux-c6-alsa-lib/Makefile (+8 lines)
Lines 11-16 COMMENT= Advanced Linux Sound Architecture librari Link Here
11
11
12
LICENSE=	GPLv3
12
LICENSE=	GPLv3
13
13
14
RUN_DEPENDS=	${LOCALBASE}/etc/asound.conf:${PORTSDIR}/audio/alsa-lib
15
14
CONFLICTS=	linux-alsa-lib-[0-9]* linux-f8-alsa-lib-[0-9]* linux-f10-alsa-lib-[0-9]*
16
CONFLICTS=	linux-alsa-lib-[0-9]* linux-f8-alsa-lib-[0-9]* linux-f10-alsa-lib-[0-9]*
15
17
16
BRANDELF_FILES=	usr/bin/aserver
18
BRANDELF_FILES=	usr/bin/aserver
Lines 21-27 USE_LINUX_RPM= yes Link Here
21
RPMVERSION=	3.el6
23
RPMVERSION=	3.el6
22
USE_LDCONFIG=	yes
24
USE_LDCONFIG=	yes
23
25
26
# We will use native configuration file, so delete a linux one
27
post-extract:
28
	@${RM} -r ${WRKSRC}/etc
29
24
post-install:
30
post-install:
31
	${MKDIR} ${STAGEDIR}${PREFIX}/etc
32
	${LN} -fs ${LOCALBASE}/etc/asound.conf ${STAGEDIR}${PREFIX}/etc
25
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-ac97.la
33
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-ac97.la
26
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-hda.la
34
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-hda.la
27
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-sbase.la
35
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-sbase.la
(-)audio/linux-c6-alsa-plugins-oss/Makefile (-10 / +3 lines)
Lines 25-39 RPMVERSION= 3.el6 Link Here
25
25
26
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
27
27
28
CONF_FILE=	etc/alsa/pcm/pcm-oss.conf
28
# We will use native configuration file, so delete a linux one
29
post-extract:
30
	@${RM} -r ${WRKSRC}/etc
29
31
30
post-patch:
31
	@${RM} ${WRKSRC}/${CONF_FILE}.orig
32
	@${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist
33
34
post-install:
35
	@if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \
36
		${CP} -p ${STAGEDIR}${PREFIX}/${CONF_FILE}-dist ${STAGEDIR}${PREFIX}/${CONF_FILE} ; \
37
	fi
38
39
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)audio/linux-c6-alsa-plugins-oss/files/patch-pcm-oss.conf (-21 lines)
Lines 1-21 Link Here
1
--- ./etc/alsa/pcm/pcm-oss.conf.orig	2010-11-11 02:07:08.000000000 +0200
2
+++ ./etc/alsa/pcm/pcm-oss.conf	2014-03-16 17:33:37.794567295 +0200
3
@@ -1,9 +1,17 @@
4
 # pcm-oss plugin configuration
5
 
6
-pcm.oss {
7
+pcm.!default {
8
 	type oss
9
 	device /dev/dsp
10
 	hint {
11
 		description "Open Sound System"
12
 	}
13
 }
14
+
15
+ctl.!default {
16
+	type oss
17
+	device /dev/mixer
18
+	hint {
19
+		description "Open Sound System"
20
+	}
21
+}
(-)audio/linux-c6-alsa-plugins-oss/pkg-deinstall (-16 lines)
Lines 1-16 Link Here
1
#!/bin/sh
2
3
case "$2" in
4
	POST-DEINSTALL)
5
		conf=${PKG_PREFIX}/etc/asound.conf
6
		if [ ! -f "$conf" ]; then
7
			exit 1
8
		fi
9
		grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new
10
		;;
11
	*)
12
		exit 0
13
		;;
14
esac
15
16
exit 0
(-)audio/linux-c6-alsa-plugins-oss/pkg-install (-18 lines)
Lines 1-18 Link Here
1
#!/bin/sh
2
3
case "$2" in
4
	POST-INSTALL)
5
		conf=${PKG_PREFIX}/etc/asound.conf
6
		if [ ! -f "$conf" ]; then
7
			exit 1
8
		fi
9
		awk '{print $0}; /files/ { print "\t\t\t\"/etc/alsa/pcm/pcm-oss.conf\""}' <$conf >/tmp/asound.conf.new
10
		mv /tmp/asound.conf.new $conf
11
		exit 0
12
		;;
13
	*)
14
		exit 0
15
		;;
16
esac
17
18
exit 0
(-)audio/linux-c6-alsa-plugins-oss/pkg-plist (-6 lines)
Lines 1-6 Link Here
1
@unexec if cmp -s %D/etc/alsa/pcm/pcm-oss.conf-dist %D/etc/alsa/pcm/pcm-oss.conf; then rm -f %D/etc/alsa/pcm/pcm-oss.conf; fi
2
etc/alsa/pcm/pcm-oss.conf-dist
3
@exec if [ ! -f %D/etc/alsa/pcm/pcm-oss.conf ] ; then cp -p %D/%F %B/pcm-oss.conf; fi
4
usr/lib/alsa-lib/libasound_module_ctl_oss.so
1
usr/lib/alsa-lib/libasound_module_ctl_oss.so
5
usr/lib/alsa-lib/libasound_module_pcm_oss.so
2
usr/lib/alsa-lib/libasound_module_pcm_oss.so
6
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
3
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
Lines 7-13 usr/share/doc/alsa-plugins-oss-1.0.21/COPYING Link Here
7
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL
4
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL
8
usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
5
usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
9
@dirrm usr/share/doc/alsa-plugins-oss-1.0.21
6
@dirrm usr/share/doc/alsa-plugins-oss-1.0.21
10
@dirrmtry etc/alsa/pcm
11
@dirrmtry etc/alsa
12
@dirrmtry usr/lib/alsa-lib
7
@dirrmtry usr/lib/alsa-lib
13
@unexec if [ -f %D/etc/asound.conf ]; then fgrep -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
(-)audio/linux-f10-alsa-lib/Makefile (-1 / +8 lines)
Lines 10-15 MASTER_SITES= CRITICAL/rpm/${LINUX_RPM_ARCH}/fedor Link Here
10
MAINTAINER=	emulation@FreeBSD.org
10
MAINTAINER=	emulation@FreeBSD.org
11
COMMENT=	Advanced Linux Sound Architecture libraries (Linux Fedora 10)
11
COMMENT=	Advanced Linux Sound Architecture libraries (Linux Fedora 10)
12
12
13
RUN_DEPENDS=	${LOCALBASE}/etc/asound.conf:${PORTSDIR}/audio/alsa-lib
14
13
CONFLICTS=	linux-alsa-lib-[0-9]* linux-f8-alsa-lib-[0-9]*
15
CONFLICTS=	linux-alsa-lib-[0-9]* linux-f8-alsa-lib-[0-9]*
14
16
15
ONLY_FOR_ARCHS=	i386 amd64
17
ONLY_FOR_ARCHS=	i386 amd64
Lines 20-29 RPMVERSION= 2.fc10 Link Here
20
BRANDELF_FILES=	usr/bin/aserver
22
BRANDELF_FILES=	usr/bin/aserver
21
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
22
24
25
# We will use native configuration file, so delete a linux one
26
post-extract:
27
	@${RM} -r ${WRKSRC}/etc
28
23
post-install:
29
post-install:
30
	${MKDIR} ${STAGEDIR}${PREFIX}/etc
31
	${LN} -fs ${LOCALBASE}/etc/asound.conf ${STAGEDIR}${PREFIX}/etc
24
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-ac97.la
32
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-ac97.la
25
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-hda.la
33
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-hda.la
26
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-sbase.la
34
	${RM} ${STAGEDIR}${PREFIX}/usr/lib/alsa-lib/smixer/smixer-sbase.la
27
35
28
29
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)audio/linux-f10-alsa-plugins-oss/Makefile (-8 / +3 lines)
Lines 18-30 RPMVERSION= 3.fc10 Link Here
18
SRC_DISTFILES=	${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX}
18
SRC_DISTFILES=	${PORTNAME:S/-oss//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX}
19
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
20
20
21
CONF_FILE=	etc/alsa/pcm/pcm-oss.conf
21
# We will use native configuration file, so delete a linux one
22
post-extract:
23
	@${RM} -r ${WRKSRC}/etc
22
24
23
post-patch:
24
	@${RM} ${WRKSRC}/${CONF_FILE}.orig
25
	@${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist
26
27
post-install:
28
	${MV} ${STAGEDIR}${PREFIX}/${CONF_FILE}-dist ${STAGEDIR}${PREFIX}/${CONF_FILE}.sample
29
30
.include <bsd.port.mk>
25
.include <bsd.port.mk>
(-)audio/linux-f10-alsa-plugins-oss/files/patch-pcm-oss.conf (-14 lines)
Lines 1-14 Link Here
1
--- etc/alsa/pcm/pcm-oss.conf.orig	2010-03-23 10:56:41.000000000 +0900
2
+++ etc/alsa/pcm/pcm-oss.conf	2010-03-23 10:57:30.000000000 +0900
3
@@ -7,3 +7,11 @@
4
 		description "Open Sound System"
5
 	}
6
 }
7
+
8
+ctl.oss {
9
+	type oss
10
+	device /dev/mixer
11
+	hint {
12
+		description "Open Sound System"
13
+	}
14
+}
(-)audio/linux-f10-alsa-plugins-oss/pkg-deinstall (-16 lines)
Lines 1-16 Link Here
1
#!/bin/sh
2
3
case "$2" in
4
	POST-DEINSTALL)
5
		conf=${PKG_PREFIX}/etc/asound.conf
6
		if [ ! -f "$conf" ]; then
7
			exit 1
8
		fi
9
		grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new
10
		;;
11
	*)
12
		exit 0
13
		;;
14
esac
15
16
exit 0
(-)audio/linux-f10-alsa-plugins-oss/pkg-install (-18 lines)
Lines 1-18 Link Here
1
#!/bin/sh
2
3
case "$2" in
4
	POST-INSTALL)
5
		conf=${PKG_PREFIX}/etc/asound.conf
6
		if [ ! -f "$conf" ]; then
7
			exit 1
8
		fi
9
		awk '{print $0}; /files/ { print "\t\t\t\"/etc/alsa/pcm/pcm-oss.conf\""}' <$conf >/tmp/asound.conf.new
10
		mv /tmp/asound.conf.new $conf
11
		exit 0
12
		;;
13
	*)
14
		exit 0
15
		;;
16
esac
17
18
exit 0
(-)audio/linux-f10-alsa-plugins-oss/pkg-plist (-4 lines)
Lines 1-4 Link Here
1
@sample etc/alsa/pcm/pcm-oss.conf.sample
2
usr/lib/alsa-lib/libasound_module_ctl_oss.so
1
usr/lib/alsa-lib/libasound_module_ctl_oss.so
3
usr/lib/alsa-lib/libasound_module_pcm_oss.so
2
usr/lib/alsa-lib/libasound_module_pcm_oss.so
4
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
3
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING
Lines 5-11 usr/share/doc/alsa-plugins-oss-1.0.21/COPYING Link Here
5
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL
4
usr/share/doc/alsa-plugins-oss-1.0.21/COPYING.GPL
6
usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
5
usr/share/doc/alsa-plugins-oss-1.0.21/README-pcm-oss
7
@dirrm usr/share/doc/alsa-plugins-oss-1.0.21
6
@dirrm usr/share/doc/alsa-plugins-oss-1.0.21
8
@dirrmtry etc/alsa/pcm
9
@dirrmtry etc/alsa
10
@dirrmtry usr/lib/alsa-lib
7
@dirrmtry usr/lib/alsa-lib
11
@unexec if [ -f %D/etc/asound.conf ]; then fgrep -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

Return to bug 169896