From bkoenig@cs.tu-berlin.de  Sun Oct 16 19:54:56 2005
Return-Path: <bkoenig@cs.tu-berlin.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B505A16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Oct 2005 19:54:56 +0000 (GMT)
	(envelope-from bkoenig@cs.tu-berlin.de)
Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 54E5F43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 16 Oct 2005 19:54:56 +0000 (GMT)
	(envelope-from bkoenig@cs.tu-berlin.de)
Received: from eurystheus.local (port-212-202-37-245.dynamic.qsc.de [212.202.37.245])
	by efacilitas.de (Postfix) with ESMTP id EC9B74AD85;
	Sun, 16 Oct 2005 22:02:02 +0200 (CEST)
Received: from hoppel.local (eurystheus.local [192.168.1.67])
	by eurystheus.local (Postfix) with SMTP id 93C0D331FF0;
	Sun, 16 Oct 2005 21:54:02 +0200 (CEST)
Received: by hoppel.local (sSMTP sendmail emulation); Sun, 16 Oct 2005 21:54:02 +0200
Message-Id: <20051016195402.93C0D331FF0@eurystheus.local>
Date: Sun, 16 Oct 2005 21:54:02 +0200
From: "Bjrn Knig" <bkoenig@cs.tu-berlin.de>
Reply-To: Bjrn Knig <bkoenig@cs.tu-berlin.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: michaels@sdf.lonestar.org
Subject: Port audio/emu10kx: change location of snd_emu10kx.ko
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         87541
>Category:       ports
>Synopsis:       Port audio/emu10kx: change location of snd_emu10kx.ko
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 16 20:00:23 GMT 2005
>Closed-Date:    Fri Oct 21 22:36:56 GMT 2005
>Last-Modified:  Fri Oct 21 22:36:56 GMT 2005
>Originator:     Bjrn Knig
>Release:        FreeBSD 6.0-RC1 i386
>Organization:
>Environment:
>Description:
	The port 'audio/emu10kx' installs a kernel module in /boot/kernel. This
	location might be problematic insofar as the installation of a new kernel
	moves the file snd_emu10kx.ko to /boot/kernel.old. This requires the
	interaction of the user to ensure that sound will work after installing a
	new kernel or make a clean deinstallation of the module possible.
>How-To-Repeat:
>Fix:
	The patch below effects that the kernel module of this port will be installed
	in the more designated location /boot/modules.

--- emu10kx.diff begins here ---
--- Makefile.orig	Thu Oct 13 12:55:46 2005
+++ Makefile	Thu Oct 13 12:57:22 2005
@@ -22,6 +22,9 @@
 PLIST_FILES=	sbin/emuctrl
 WRKSRC=	${WRKDIR}/${DISTNAME}a
 
+do-install:
+	@${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} -DMODULES_WITH_WORLD install
+
 post-install:
 .if !defined(BATCH) && !defined(PACKAGE_BUILDING)
 	@${PKGINSTALL} ${PKGNAME} POST-INSTALL
--- pkg-deinstall.orig	Thu Oct 13 12:53:46 2005
+++ pkg-deinstall	Thu Oct 13 12:55:00 2005
@@ -19,7 +19,7 @@
 fi
 
 # Remove the driver
-rm /boot/kernel/$DRIVERNAME.ko
+rm /boot/modules/$DRIVERNAME.ko
 
 # Remove the driver from loader.conf
 grep ${DRIVERNAME}_load /boot/loader.conf > /dev/null 2>&1; RESULT=$?
--- emu10kx.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Oct 21 20:28:10 GMT 2005 
Responsible-Changed-Why:  
Talking with maintainer about this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87541 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Oct 21 22:36:49 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87541 
>Unformatted:
