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@
This commit is contained in:
landry 2008-09-09 08:11:29 +00:00
parent 8767b29489
commit 3161d74a36

View File

@ -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 COMMENT= Music Player Daemon
DISTNAME= mpd-0.13.2 DISTNAME= mpd-0.13.2
PKGNAME= ${DISTNAME}p0
CATEGORIES= audio CATEGORIES= audio
HOMEPAGE= http://www.musicpd.org/ HOMEPAGE= http://www.musicpd.org/
MAINTAINER= Tobias Ulmer <tobiasu@tmux.org> MAINTAINER= Tobias Ulmer <tobiasu@tmux.org>
@ -41,9 +42,9 @@ CONFIGURE_ARGS+= --enable-ao \
--enable-mod \ --enable-mod \
--bindir=${PREFIX}/sbin \ --bindir=${PREFIX}/sbin \
--with-zeroconf=no --with-zeroconf=no
# OggFLAC and tremor tests # OggFLAC and tremor tests, initgroups(3)
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include" CPPFLAGS="-I${LOCALBASE}/include -D_BSD_SOURCE"
.if ${FLAVOR:L:Mtremor} .if ${FLAVOR:L:Mtremor}
CONFIGURE_ARGS+= --with-tremor \ CONFIGURE_ARGS+= --with-tremor \