- Remove trailing whitespaces. (From Jasper)
- Install daemon into ${LOCALBASE}/sbin. (From steven@) - Fix pkg/DESCR (From steven@) - Really fix the OSS mixer stuff. ok Tobias Ulmer (MAINTAINER) ok naddy@ (for the mixer stuff)
This commit is contained in:
parent
a47eb42d5a
commit
d6bab7a71c
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2006/06/14 12:37:52 bernd Exp $
|
||||
|
||||
COMMENT= "music player daemon"
|
||||
|
||||
DISTNAME= mpd-0.11.5
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= audio
|
||||
|
||||
HOMEPAGE= http://www.musicpd.org/
|
||||
@ -13,7 +14,7 @@ MAINTAINER= Tobias Ulmer <tobiasu@tmux.org>
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= c m pthread z ossaudio
|
||||
|
||||
|
@ -1,6 +1,15 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
$OpenBSD: patch-configure,v 1.2 2006/06/14 12:37:52 bernd Exp $
|
||||
--- configure.orig Tue Nov 2 05:39:55 2004
|
||||
+++ configure Tue Apr 4 16:00:51 2006
|
||||
+++ configure Fri May 26 17:47:58 2006
|
||||
@@ -494,7 +494,7 @@ x_libraries=NONE
|
||||
# and all the variables that are supposed to be based on exec_prefix
|
||||
# by default will actually change.
|
||||
# Use braces instead of parens because sh, perl, etc. also accept them.
|
||||
-bindir='${exec_prefix}/bin'
|
||||
+bindir='${exec_prefix}/sbin'
|
||||
sbindir='${exec_prefix}/sbin'
|
||||
libexecdir='${exec_prefix}/libexec'
|
||||
datadir='${prefix}/share'
|
||||
@@ -19274,7 +19274,7 @@ fi
|
||||
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
|
||||
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-doc_mpdconf_example,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
$OpenBSD: patch-doc_mpdconf_example,v 1.2 2006/06/14 12:37:52 bernd Exp $
|
||||
--- doc/mpdconf.example.orig Tue Nov 2 05:03:21 2004
|
||||
+++ doc/mpdconf.example Fri Apr 7 18:46:01 2006
|
||||
+++ doc/mpdconf.example Tue Jun 13 17:26:48 2006
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
##################### REQUIRED ###########################
|
||||
@ -43,7 +43,7 @@ $OpenBSD: patch-doc_mpdconf_example,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
-#mixer_control "PCM"
|
||||
+mixer_type "oss"
|
||||
+mixer_device "/dev/mixer"
|
||||
+mixer_control "master"
|
||||
+mixer_control "vol"
|
||||
#
|
||||
# Software Mixer
|
||||
#mixer_type "software"
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-src_volume_c,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
--- src/volume.c.orig Tue Apr 4 16:03:01 2006
|
||||
+++ src/volume.c Tue Apr 4 16:03:09 2006
|
||||
$OpenBSD: patch-src_volume_c,v 1.2 2006/06/14 12:37:52 bernd Exp $
|
||||
--- src/volume.c.orig Tue Nov 2 05:03:22 2004
|
||||
+++ src/volume.c Tue Jun 13 17:26:31 2006
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
@ -10,3 +10,12 @@ $OpenBSD: patch-src_volume_c,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
#endif
|
||||
#ifdef HAVE_ALSA
|
||||
#include <alsa/asoundlib.h>
|
||||
@@ -67,7 +67,7 @@ int volume_alsaSet = -1;
|
||||
int prepOssMixer(char * device) {
|
||||
int devmask = 0;
|
||||
|
||||
- if((volume_ossFd = open(device,O_RDONLY))<0) {
|
||||
+ if((volume_ossFd = open(device,O_RDWR))<0) {
|
||||
WARNING("unable to open oss mixer \"%s\"\n",device);
|
||||
return -1;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
Music Player Daemon allows remote access for playing music (mp3,
|
||||
ogg, flac, aac, mod and wav files) and managing playlists. MPD is
|
||||
designed for integrating a computer into a stereo system that
|
||||
provides control for music playback over a local network. It is
|
||||
also makes a great desktop music player and has serveral frontend
|
||||
options.
|
||||
provides control for music playback over a local network.
|
||||
It also makes a great desktop music player and has serveral
|
||||
frontend options.
|
||||
|
@ -7,6 +7,6 @@ otherwise MPD won't start.
|
||||
If you wish to have MPD started automatically at boot time,
|
||||
simply add the follow lines to /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/bin/mpd ]; then
|
||||
echo -n ' mpd'; ${PREFIX}/bin/mpd
|
||||
if [ -x ${PREFIX}/sbin/mpd ]; then
|
||||
echo -n ' mpd'; ${PREFIX}/sbin/mpd
|
||||
fi
|
||||
|
@ -1,8 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/05/13 09:52:49 bernd Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.2 2006/06/14 12:37:52 bernd Exp $
|
||||
@newgroup _mpd:560
|
||||
@newuser _mpd:560:560:daemon:Music Player Daemon:/var/empty:/sbin/nologin
|
||||
bin/mpd
|
||||
@man man/man1/mpd.1
|
||||
sbin/mpd
|
||||
share/doc/mpd/
|
||||
share/doc/mpd/COMMANDS
|
||||
share/doc/mpd/README
|
||||
|
Loading…
Reference in New Issue
Block a user