From owner-freebsd-emulation@FreeBSD.ORG Fri Apr 29 21:25:16 2011 Return-Path: Delivered-To: emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74A3E106564A; Fri, 29 Apr 2011 21:25:16 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 210728FC0C; Fri, 29 Apr 2011 21:25:15 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id F41441E002BE; Fri, 29 Apr 2011 23:25:14 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p3TLN8qZ098570; Fri, 29 Apr 2011 23:23:08 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p3TLN6lO098561; Fri, 29 Apr 2011 23:23:06 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 29 Apr 2011 23:23:06 +0200 To: Andriy Gapon Message-ID: <20110429212306.GA43822@triton8.kn-bremen.de> References: <4DB72341.7060201@FreeBSD.org> <20110426202349.GA14855@triton8.kn-bremen.de> <4DB7BC6A.7060207@FreeBSD.org> <20110427163047.GA47520@triton8.kn-bremen.de> <7d7a2fab-7c4e-44ce-bdf2-93811c40a4fe@email.android.com> <20110428193351.GA8814@triton8.kn-bremen.de> <68864477@h30.sp.ipt.ru> <20110428220114.00004b22@unknown> <20110428201939.GA16556@triton8.kn-bremen.de> <4DBA4F77.1000409@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DBA4F77.1000409@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Sat, 30 Apr 2011 02:09:14 +0000 Cc: netchild@FreeBSD.org, emulation@FreeBSD.org, Juergen Lock , HASHI Hiroaki , multimedia@FreeBSD.org, Alexander Leidinger , Ion-Mihai Tetcu , fluffy@FreeBSD.org Subject: Re: audio/linux-f10-alsa-plugins-oss X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 21:25:16 -0000 On Fri, Apr 29, 2011 at 08:41:11AM +0300, Andriy Gapon wrote: > > There is another thing that I've just noticed - wouldn't the port overwrite a > custom pcm-oss.conf (if any)? > That is true... I guess I didn't stumble across this because I edited the /compat/linux/etc/asound.conf similar to the one below /usr/local/etc instead of editing the pcm-oss.conf this port installs. > I think it would be nice to do the usual .conf-dist vs .conf dance here. > E.g. something like: > CONF_FILE= etc/alsa/pcm/pcm-oss.conf > > post-patch: > @${RM} ${WRKDIR}/${CONF_FILE}.orig > @${MV} ${WRKDIR}/${CONF_FILE} ${WRKDIR}/${CONF_FILE}-dist > > post-install: > @if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \ > ${CP} -p ${PREFIX}/${CONF_FILE}-dist ${PREFIX}/${CONF_FILE} ; \ > fi > PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL > > > And in pkg-plist: > @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 > etc/alsa/pcm/pcm-oss.conf-dist > @exec if [ ! -f %D/etc/alsa/pcm/pcm-oss.conf ] ; then cp -p %D/%F %B/client.conf; fi > > > What do you think? I think now that the port is committed it's the maintainer's call, so I Cc'd him. :) Thanx, Juergen