From 3161d74a36de5d2a66ae305d5939fb7053159e9a Mon Sep 17 00:00:00 2001 From: landry Date: Tue, 9 Sep 2008 08:11:29 +0000 Subject: [PATCH] Add -D_BSD_SOURCE so that mpd calls initgroups(3) and sets additional groups when dropping privilege. This fixes long-standing permission problems when accessing music directory.. From Tobias Ulmer (MAINTAINER) on ports@, thanks! ok jasper@ --- audio/mpd/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/audio/mpd/Makefile b/audio/mpd/Makefile index e7c45c57816..7888bd10594 100644 --- a/audio/mpd/Makefile +++ b/audio/mpd/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.13 2008/07/15 08:40:49 bernd Exp $ +# $OpenBSD: Makefile,v 1.14 2008/09/09 08:11:29 landry Exp $ COMMENT= Music Player Daemon DISTNAME= mpd-0.13.2 +PKGNAME= ${DISTNAME}p0 CATEGORIES= audio HOMEPAGE= http://www.musicpd.org/ MAINTAINER= Tobias Ulmer @@ -41,9 +42,9 @@ CONFIGURE_ARGS+= --enable-ao \ --enable-mod \ --bindir=${PREFIX}/sbin \ --with-zeroconf=no -# OggFLAC and tremor tests +# OggFLAC and tremor tests, initgroups(3) CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ - CPPFLAGS="-I${LOCALBASE}/include" + CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE" .if ${FLAVOR:L:Mtremor} CONFIGURE_ARGS+= --with-tremor \